From 562b6adf4cea7dce399cccc4c292b50f0c41ee03 Mon Sep 17 00:00:00 2001 From: komal Date: Thu, 11 Jun 2020 11:57:04 -0700 Subject: [PATCH 01/25] Use schema-based codegen for python --- provider/cmd/pulumi-gen-kubernetes/main.go | 81 ++++++---------------- provider/pkg/gen/schema.go | 17 ++++- 2 files changed, 38 insertions(+), 60 deletions(-) diff --git a/provider/cmd/pulumi-gen-kubernetes/main.go b/provider/cmd/pulumi-gen-kubernetes/main.go index 8c9b3977f9..f87a796d4b 100644 --- a/provider/cmd/pulumi-gen-kubernetes/main.go +++ b/provider/cmd/pulumi-gen-kubernetes/main.go @@ -35,6 +35,7 @@ import ( dotnetgen "github.com/pulumi/pulumi/pkg/v2/codegen/dotnet" gogen "github.com/pulumi/pulumi/pkg/v2/codegen/go" nodejsgen "github.com/pulumi/pulumi/pkg/v2/codegen/nodejs" + pythongen "github.com/pulumi/pulumi/pkg/v2/codegen/python" "github.com/pulumi/pulumi/pkg/v2/codegen/schema" "github.com/pulumi/pulumi/sdk/v2/go/common/util/contract" ) @@ -111,7 +112,7 @@ func main() { writeNodeJSClient(pkg, outdir, templateDir) case Python: templateDir := path.Join(TemplateDir, "python-templates") - writePythonClient(data, outdir, templateDir) + writePythonClient(pkg, outdir, templateDir) case DotNet: templateDir := path.Join(TemplateDir, "dotnet-templates") writeDotnetClient(pkg, data, outdir, templateDir) @@ -173,67 +174,31 @@ func writeNodeJSClient(pkg *schema.Package, outdir, templateDir string) { mustWriteFiles(outdir, files) } -func writePythonClient(data map[string]interface{}, outdir, templateDir string) { - sdkDir := filepath.Join(outdir, "pulumi_kubernetes") - - err := gen.PythonClient(data, templateDir, - func(initPy string) error { - return ioutil.WriteFile(filepath.Join(sdkDir, "__init__.py"), []byte(initPy), 0777) - }, - func(group, initPy string) error { - destDir := filepath.Join(sdkDir, group) - - err := os.MkdirAll(destDir, 0700) - if err != nil { - return err - } - return ioutil.WriteFile(filepath.Join(destDir, "__init__.py"), []byte(initPy), 0777) - }, - func(crBytes string) error { - destDir := filepath.Join(sdkDir, "apiextensions") - - err := os.MkdirAll(destDir, 0700) - if err != nil { - return err - } - - return ioutil.WriteFile(filepath.Join(destDir, "CustomResource.py"), []byte(crBytes), 0777) - }, - func(group, version, initPy string) error { - destDir := filepath.Join(sdkDir, group, version) - - err := os.MkdirAll(destDir, 0700) - if err != nil { - return err - } - - return ioutil.WriteFile(filepath.Join(destDir, "__init__.py"), []byte(initPy), 0777) - }, - func(group, version, kind, kindPy string) error { - destDir := filepath.Join(sdkDir, group, version, fmt.Sprintf("%s.py", kind)) - return ioutil.WriteFile(destDir, []byte(kindPy), 0777) - }, - func(casingPy string) error { - destDir := filepath.Join(sdkDir, "tables.py") - return ioutil.WriteFile(destDir, []byte(casingPy), 0777) - }, - func(yamlPy string) error { - destDir := filepath.Join(sdkDir, "yaml.py") - return ioutil.WriteFile(destDir, []byte(yamlPy), 0777) - }) +func writePythonClient(pkg *schema.Package, outdir string, templateDir string) { + //resources, err := pythongen.LanguageResources("pulumigen", pkg) + //if err != nil { + // panic(err) + //} + // + //templateResources := gen.TemplateResources{} + //for _, resource := range resources { + // r := gen.TemplateResource{ + // Name: resource.Name, + // Package: resource.Package, + // Token: resource.Token, + // } + // templateResources.Resources = append(templateResources.Resources, r) + //} + //sort.Slice(templateResources.Resources, func(i, j int) bool { + // return templateResources.Resources[i].Token < templateResources.Resources[j].Token + //}) + + files, err := pythongen.GeneratePackage("pulumigen", pkg, nil) if err != nil { panic(err) } - err = CopyDir(filepath.Join(templateDir, "helm"), filepath.Join(sdkDir, "helm")) - if err != nil { - panic(err) - } - - err = CopyFile(filepath.Join(templateDir, "README.md"), filepath.Join(sdkDir, "README.md")) - if err != nil { - panic(err) - } + mustWriteFiles(outdir, files) } func writeDotnetClient(pkg *schema.Package, data map[string]interface{}, outdir, templateDir string) { diff --git a/provider/pkg/gen/schema.go b/provider/pkg/gen/schema.go index 7b9a01bdda..b71d79ffa0 100644 --- a/provider/pkg/gen/schema.go +++ b/provider/pkg/gen/schema.go @@ -258,9 +258,22 @@ Use the navigation below to see detailed documentation for each of the supported "pulumi": ">=2.0.0,<3.0.0", "requests": ">=2.21.0,<2.22.0", "pyyaml": ">=5.1,<5.2", - "semver": ">=2.8.1", - "parver": ">=0.2.1", }, + "moduleNameOverrides": modToPkg, + "compatibility": kubernetes20, + "readme": `The Kubernetes provider package offers support for all Kubernetes resources and their properties. +Resources are exposed as types from modules based on Kubernetes API groups such as 'apps', 'core', +'rbac', and 'storage', among many others. Additionally, support for deploying Helm charts ('helm') +and YAML files ('yaml') is available in this package. Using this package allows you to +programmatically declare instances of any Kubernetes resources and any supported resource version +using infrastructure as code, which Pulumi then uses to drive the Kubernetes API. + +If this is your first time using this package, these two resources may be helpful: + +* [Kubernetes Getting Started Guide](https://www.pulumi.com/docs/quickstart/kubernetes/): Get up and running quickly. +* [Kubernetes Pulumi Setup Documentation](https://www.pulumi.com/docs/quickstart/kubernetes/configure/): How to configure Pulumi + for use with your Kubernetes cluster. +`, }) return pkg From c70e42111289d2235b8fe718ba05db5800d3ad9b Mon Sep 17 00:00:00 2001 From: komal Date: Thu, 11 Jun 2020 14:10:50 -0700 Subject: [PATCH 02/25] Codegen changes --- sdk/python/pulumi_kubernetes/__init__.py | 42 +- .../admissionregistration/__init__.py | 11 +- .../v1/MutatingWebhookConfiguration.py | 114 -- .../v1/MutatingWebhookConfigurationList.py | 110 -- .../v1/ValidatingWebhookConfiguration.py | 114 -- .../v1/ValidatingWebhookConfigurationList.py | 110 -- .../admissionregistration/v1/__init__.py | 10 +- .../v1/mutating_webhook_configuration.py | 373 +++++ .../v1/mutating_webhook_configuration_list.py | 395 ++++++ .../v1/validating_webhook_configuration.py | 359 +++++ .../validating_webhook_configuration_list.py | 381 +++++ .../v1beta1/MutatingWebhookConfiguration.py | 115 -- .../MutatingWebhookConfigurationList.py | 110 -- .../v1beta1/ValidatingWebhookConfiguration.py | 115 -- .../ValidatingWebhookConfigurationList.py | 110 -- .../admissionregistration/v1beta1/__init__.py | 10 +- .../v1beta1/mutating_webhook_configuration.py | 373 +++++ .../mutating_webhook_configuration_list.py | 395 ++++++ .../validating_webhook_configuration.py | 359 +++++ .../validating_webhook_configuration_list.py | 381 +++++ .../apiextensions/__init__.py | 13 +- .../v1/CustomResourceDefinition.py | 117 -- .../v1/CustomResourceDefinitionList.py | 106 -- .../apiextensions/v1/__init__.py | 6 +- .../v1/custom_resource_definition.py | 444 ++++++ .../v1/custom_resource_definition_list.py | 505 +++++++ .../v1beta1/CustomResourceDefinition.py | 118 -- .../v1beta1/CustomResourceDefinitionList.py | 106 -- .../apiextensions/v1beta1/__init__.py | 6 +- .../v1beta1/custom_resource_definition.py | 450 ++++++ .../custom_resource_definition_list.py | 511 +++++++ .../apiregistration/__init__.py | 11 +- .../apiregistration/v1/APIService.py | 116 -- .../apiregistration/v1/APIServiceList.py | 109 -- .../apiregistration/v1/__init__.py | 6 +- .../apiregistration/v1/api_service.py | 170 +++ .../apiregistration/v1/api_service_list.py | 165 +++ .../apiregistration/v1beta1/APIService.py | 116 -- .../apiregistration/v1beta1/APIServiceList.py | 109 -- .../apiregistration/v1beta1/__init__.py | 6 +- .../apiregistration/v1beta1/api_service.py | 170 +++ .../v1beta1/api_service_list.py | 165 +++ sdk/python/pulumi_kubernetes/apps/__init__.py | 12 +- .../apps/v1/ControllerRevision.py | 130 -- .../apps/v1/ControllerRevisionList.py | 110 -- .../pulumi_kubernetes/apps/v1/DaemonSet.py | 123 -- .../apps/v1/DaemonSetList.py | 110 -- .../pulumi_kubernetes/apps/v1/Deployment.py | 140 -- .../apps/v1/DeploymentList.py | 108 -- .../pulumi_kubernetes/apps/v1/ReplicaSet.py | 125 -- .../apps/v1/ReplicaSetList.py | 112 -- .../pulumi_kubernetes/apps/v1/StatefulSet.py | 133 -- .../apps/v1/StatefulSetList.py | 104 -- .../pulumi_kubernetes/apps/v1/__init__.py | 22 +- .../apps/v1/controller_revision.py | 192 +++ .../apps/v1/controller_revision_list.py | 211 +++ .../pulumi_kubernetes/apps/v1/daemon_set.py | 1203 ++++++++++++++++ .../apps/v1/daemon_set_list.py | 1193 ++++++++++++++++ .../pulumi_kubernetes/apps/v1/deployment.py | 1232 ++++++++++++++++ .../apps/v1/deployment_list.py | 1199 ++++++++++++++++ .../pulumi_kubernetes/apps/v1/replica_set.py | 1187 ++++++++++++++++ .../apps/v1/replica_set_list.py | 1173 ++++++++++++++++ .../pulumi_kubernetes/apps/v1/stateful_set.py | 1232 ++++++++++++++++ .../apps/v1/stateful_set_list.py | 667 +++++++++ .../apps/v1beta1/ControllerRevision.py | 133 -- .../apps/v1beta1/ControllerRevisionList.py | 110 -- .../apps/v1beta1/Deployment.py | 143 -- .../apps/v1beta1/DeploymentList.py | 108 -- .../apps/v1beta1/StatefulSet.py | 136 -- .../apps/v1beta1/StatefulSetList.py | 104 -- .../apps/v1beta1/__init__.py | 14 +- .../apps/v1beta1/controller_revision.py | 195 +++ .../apps/v1beta1/controller_revision_list.py | 211 +++ .../apps/v1beta1/deployment.py | 1241 +++++++++++++++++ .../apps/v1beta1/deployment_list.py | 1205 ++++++++++++++++ .../apps/v1beta1/stateful_set.py | 1235 ++++++++++++++++ .../apps/v1beta1/stateful_set_list.py | 667 +++++++++ .../apps/v1beta2/ControllerRevision.py | 133 -- .../apps/v1beta2/ControllerRevisionList.py | 110 -- .../apps/v1beta2/DaemonSet.py | 126 -- .../apps/v1beta2/DaemonSetList.py | 110 -- .../apps/v1beta2/Deployment.py | 143 -- .../apps/v1beta2/DeploymentList.py | 108 -- .../apps/v1beta2/ReplicaSet.py | 128 -- .../apps/v1beta2/ReplicaSetList.py | 112 -- .../apps/v1beta2/StatefulSet.py | 136 -- .../apps/v1beta2/StatefulSetList.py | 104 -- .../apps/v1beta2/__init__.py | 22 +- .../apps/v1beta2/controller_revision.py | 195 +++ .../apps/v1beta2/controller_revision_list.py | 211 +++ .../apps/v1beta2/daemon_set.py | 1206 ++++++++++++++++ .../apps/v1beta2/daemon_set_list.py | 1193 ++++++++++++++++ .../apps/v1beta2/deployment.py | 1235 ++++++++++++++++ .../apps/v1beta2/deployment_list.py | 1199 ++++++++++++++++ .../apps/v1beta2/replica_set.py | 1190 ++++++++++++++++ .../apps/v1beta2/replica_set_list.py | 1173 ++++++++++++++++ .../apps/v1beta2/stateful_set.py | 1235 ++++++++++++++++ .../apps/v1beta2/stateful_set_list.py | 667 +++++++++ .../auditregistration/__init__.py | 10 +- .../auditregistration/v1alpha1/AuditSink.py | 104 -- .../v1alpha1/AuditSinkList.py | 106 -- .../auditregistration/v1alpha1/__init__.py | 6 +- .../auditregistration/v1alpha1/audit_sink.py | 195 +++ .../v1alpha1/audit_sink_list.py | 259 ++++ .../authentication/__init__.py | 11 +- .../authentication/v1/TokenRequest.py | 107 -- .../authentication/v1/TokenReview.py | 117 -- .../authentication/v1/__init__.py | 6 +- .../authentication/v1/token_request.py | 143 ++ .../authentication/v1/token_review.py | 156 +++ .../authentication/v1beta1/TokenReview.py | 117 -- .../authentication/v1beta1/__init__.py | 4 +- .../authentication/v1beta1/token_review.py | 156 +++ .../authorization/__init__.py | 11 +- .../v1/LocalSubjectAccessReview.py | 120 -- .../v1/SelfSubjectAccessReview.py | 119 -- .../v1/SelfSubjectRulesReview.py | 123 -- .../authorization/v1/SubjectAccessReview.py | 116 -- .../authorization/v1/__init__.py | 10 +- .../v1/local_subject_access_review.py | 182 +++ .../v1/self_subject_access_review.py | 172 +++ .../v1/self_subject_rules_review.py | 158 +++ .../authorization/v1/subject_access_review.py | 182 +++ .../v1beta1/LocalSubjectAccessReview.py | 120 -- .../v1beta1/SelfSubjectAccessReview.py | 119 -- .../v1beta1/SelfSubjectRulesReview.py | 123 -- .../v1beta1/SubjectAccessReview.py | 116 -- .../authorization/v1beta1/__init__.py | 10 +- .../v1beta1/local_subject_access_review.py | 182 +++ .../v1beta1/self_subject_access_review.py | 172 +++ .../v1beta1/self_subject_rules_review.py | 158 +++ .../v1beta1/subject_access_review.py | 182 +++ .../pulumi_kubernetes/autoscaling/__init__.py | 12 +- .../autoscaling/v1/HorizontalPodAutoscaler.py | 121 -- .../v1/HorizontalPodAutoscalerList.py | 108 -- .../autoscaling/v1/__init__.py | 6 +- .../v1/horizontal_pod_autoscaler.py | 213 +++ .../v1/horizontal_pod_autoscaler_list.py | 239 ++++ .../v2beta1/HorizontalPodAutoscaler.py | 123 -- .../v2beta1/HorizontalPodAutoscalerList.py | 108 -- .../autoscaling/v2beta1/__init__.py | 6 +- .../v2beta1/horizontal_pod_autoscaler.py | 318 +++++ .../v2beta1/horizontal_pod_autoscaler_list.py | 367 +++++ .../v2beta2/HorizontalPodAutoscaler.py | 123 -- .../v2beta2/HorizontalPodAutoscalerList.py | 108 -- .../autoscaling/v2beta2/__init__.py | 6 +- .../v2beta2/horizontal_pod_autoscaler.py | 349 +++++ .../v2beta2/horizontal_pod_autoscaler_list.py | 393 ++++++ .../pulumi_kubernetes/batch/__init__.py | 12 +- sdk/python/pulumi_kubernetes/batch/v1/Job.py | 131 -- .../pulumi_kubernetes/batch/v1/JobList.py | 110 -- .../pulumi_kubernetes/batch/v1/__init__.py | 6 +- sdk/python/pulumi_kubernetes/batch/v1/job.py | 1211 ++++++++++++++++ .../pulumi_kubernetes/batch/v1/job_list.py | 1185 ++++++++++++++++ .../batch/v1beta1/CronJob.py | 122 -- .../batch/v1beta1/CronJobList.py | 110 -- .../batch/v1beta1/__init__.py | 6 +- .../batch/v1beta1/cron_job.py | 1215 ++++++++++++++++ .../batch/v1beta1/cron_job_list.py | 1199 ++++++++++++++++ .../batch/v2alpha1/CronJob.py | 122 -- .../batch/v2alpha1/CronJobList.py | 110 -- .../batch/v2alpha1/__init__.py | 6 +- .../batch/v2alpha1/cron_job.py | 1215 ++++++++++++++++ .../batch/v2alpha1/cron_job_list.py | 1199 ++++++++++++++++ .../certificates/__init__.py | 10 +- .../v1beta1/CertificateSigningRequest.py | 109 -- .../v1beta1/CertificateSigningRequestList.py | 104 -- .../certificates/v1beta1/__init__.py | 6 +- .../v1beta1/certificate_signing_request.py | 174 +++ .../certificate_signing_request_list.py | 166 +++ .../coordination/__init__.py | 11 +- .../coordination/v1/Lease.py | 115 -- .../coordination/v1/LeaseList.py | 110 -- .../coordination/v1/__init__.py | 6 +- .../coordination/v1/lease.py | 197 +++ .../coordination/v1/lease_list.py | 219 +++ .../coordination/v1beta1/Lease.py | 115 -- .../coordination/v1beta1/LeaseList.py | 110 -- .../coordination/v1beta1/__init__.py | 6 +- .../coordination/v1beta1/lease.py | 197 +++ .../coordination/v1beta1/lease_list.py | 219 +++ sdk/python/pulumi_kubernetes/core/__init__.py | 10 +- .../pulumi_kubernetes/core/v1/Binding.py | 111 -- .../core/v1/ComponentStatus.py | 108 -- .../core/v1/ComponentStatusList.py | 110 -- .../pulumi_kubernetes/core/v1/ConfigMap.py | 140 -- .../core/v1/ConfigMapList.py | 110 -- .../pulumi_kubernetes/core/v1/Endpoints.py | 129 -- .../core/v1/EndpointsList.py | 110 -- sdk/python/pulumi_kubernetes/core/v1/Event.py | 211 --- .../pulumi_kubernetes/core/v1/EventList.py | 110 -- .../pulumi_kubernetes/core/v1/LimitRange.py | 110 -- .../core/v1/LimitRangeList.py | 112 -- .../pulumi_kubernetes/core/v1/Namespace.py | 116 -- .../core/v1/NamespaceList.py | 112 -- sdk/python/pulumi_kubernetes/core/v1/Node.py | 117 -- .../pulumi_kubernetes/core/v1/NodeList.py | 110 -- .../core/v1/PersistentVolume.py | 120 -- .../core/v1/PersistentVolumeClaim.py | 117 -- .../core/v1/PersistentVolumeClaimList.py | 112 -- .../core/v1/PersistentVolumeList.py | 112 -- sdk/python/pulumi_kubernetes/core/v1/Pod.py | 133 -- .../pulumi_kubernetes/core/v1/PodList.py | 112 -- .../pulumi_kubernetes/core/v1/PodTemplate.py | 110 -- .../core/v1/PodTemplateList.py | 110 -- .../core/v1/ReplicationController.py | 121 -- .../core/v1/ReplicationControllerList.py | 112 -- .../core/v1/ResourceQuota.py | 116 -- .../core/v1/ResourceQuotaList.py | 112 -- .../pulumi_kubernetes/core/v1/Secret.py | 161 --- .../pulumi_kubernetes/core/v1/SecretList.py | 112 -- .../pulumi_kubernetes/core/v1/Service.py | 143 -- .../core/v1/ServiceAccount.py | 135 -- .../core/v1/ServiceAccountList.py | 112 -- .../pulumi_kubernetes/core/v1/ServiceList.py | 110 -- .../pulumi_kubernetes/core/v1/__init__.py | 68 +- .../pulumi_kubernetes/core/v1/binding.py | 201 +++ .../core/v1/component_status.py | 193 +++ .../core/v1/component_status_list.py | 217 +++ .../pulumi_kubernetes/core/v1/config_map.py | 194 +++ .../core/v1/config_map_list.py | 211 +++ .../pulumi_kubernetes/core/v1/endpoints.py | 234 ++++ .../core/v1/endpoints_list.py | 247 ++++ sdk/python/pulumi_kubernetes/core/v1/event.py | 306 ++++ .../pulumi_kubernetes/core/v1/event_list.py | 265 ++++ .../pulumi_kubernetes/core/v1/limit_range.py | 199 +++ .../core/v1/limit_range_list.py | 223 +++ .../pulumi_kubernetes/core/v1/namespace.py | 200 +++ .../core/v1/namespace_list.py | 231 +++ sdk/python/pulumi_kubernetes/core/v1/node.py | 281 ++++ .../pulumi_kubernetes/core/v1/node_list.py | 343 +++++ .../core/v1/persistent_volume.py | 553 ++++++++ .../core/v1/persistent_volume_claim.py | 243 ++++ .../core/v1/persistent_volume_claim_list.py | 277 ++++ .../core/v1/persistent_volume_list.py | 579 ++++++++ sdk/python/pulumi_kubernetes/core/v1/pod.py | 1181 ++++++++++++++++ .../pulumi_kubernetes/core/v1/pod_list.py | 1241 +++++++++++++++++ .../pulumi_kubernetes/core/v1/pod_template.py | 1160 +++++++++++++++ .../core/v1/pod_template_list.py | 1137 +++++++++++++++ .../core/v1/replication_controller.py | 1185 ++++++++++++++++ .../core/v1/replication_controller_list.py | 1173 ++++++++++++++++ .../core/v1/resource_quota.py | 208 +++ .../core/v1/resource_quota_list.py | 233 ++++ .../pulumi_kubernetes/core/v1/secret.py | 210 +++ .../pulumi_kubernetes/core/v1/secret_list.py | 215 +++ .../pulumi_kubernetes/core/v1/service.py | 269 ++++ .../core/v1/service_account.py | 216 +++ .../core/v1/service_account_list.py | 231 +++ .../pulumi_kubernetes/core/v1/service_list.py | 271 ++++ .../pulumi_kubernetes/discovery/__init__.py | 10 +- .../discovery/v1beta1/EndpointSlice.py | 141 -- .../discovery/v1beta1/EndpointSliceList.py | 108 -- .../discovery/v1beta1/__init__.py | 6 +- .../discovery/v1beta1/endpoint_slice.py | 254 ++++ .../discovery/v1beta1/endpoint_slice_list.py | 265 ++++ .../pulumi_kubernetes/events/__init__.py | 10 +- .../pulumi_kubernetes/events/v1beta1/Event.py | 212 --- .../events/v1beta1/EventList.py | 110 -- .../events/v1beta1/__init__.py | 6 +- .../pulumi_kubernetes/events/v1beta1/event.py | 254 ++++ .../events/v1beta1/event_list.py | 265 ++++ .../pulumi_kubernetes/extensions/__init__.py | 10 +- .../extensions/v1beta1/DaemonSet.py | 126 -- .../extensions/v1beta1/DaemonSetList.py | 110 -- .../extensions/v1beta1/Deployment.py | 143 -- .../extensions/v1beta1/DeploymentList.py | 108 -- .../extensions/v1beta1/Ingress.py | 140 -- .../extensions/v1beta1/IngressList.py | 110 -- .../extensions/v1beta1/NetworkPolicy.py | 115 -- .../extensions/v1beta1/NetworkPolicyList.py | 111 -- .../extensions/v1beta1/PodSecurityPolicy.py | 115 -- .../v1beta1/PodSecurityPolicyList.py | 111 -- .../extensions/v1beta1/ReplicaSet.py | 128 -- .../extensions/v1beta1/ReplicaSetList.py | 112 -- .../extensions/v1beta1/__init__.py | 26 +- .../extensions/v1beta1/daemon_set.py | 1208 ++++++++++++++++ .../extensions/v1beta1/daemon_set_list.py | 1195 ++++++++++++++++ .../extensions/v1beta1/deployment.py | 1241 +++++++++++++++++ .../extensions/v1beta1/deployment_list.py | 1205 ++++++++++++++++ .../extensions/v1beta1/ingress.py | 289 ++++ .../extensions/v1beta1/ingress_list.py | 297 ++++ .../extensions/v1beta1/network_policy.py | 247 ++++ .../extensions/v1beta1/network_policy_list.py | 269 ++++ .../extensions/v1beta1/pod_security_policy.py | 317 +++++ .../v1beta1/pod_security_policy_list.py | 339 +++++ .../extensions/v1beta1/replica_set.py | 1190 ++++++++++++++++ .../extensions/v1beta1/replica_set_list.py | 1173 ++++++++++++++++ .../pulumi_kubernetes/flowcontrol/__init__.py | 10 +- .../flowcontrol/v1alpha1/FlowSchema.py | 118 -- .../flowcontrol/v1alpha1/FlowSchemaList.py | 110 -- .../v1alpha1/PriorityLevelConfiguration.py | 117 -- .../PriorityLevelConfigurationList.py | 110 -- .../flowcontrol/v1alpha1/__init__.py | 10 +- .../flowcontrol/v1alpha1/flow_schema.py | 268 ++++ .../flowcontrol/v1alpha1/flow_schema_list.py | 297 ++++ .../v1alpha1/priority_level_configuration.py | 226 +++ .../priority_level_configuration_list.py | 255 ++++ sdk/python/pulumi_kubernetes/meta/__init__.py | 10 +- .../pulumi_kubernetes/meta/v1/Status.py | 143 -- .../pulumi_kubernetes/meta/v1/__init__.py | 4 +- .../pulumi_kubernetes/meta/v1/status.py | 156 +++ .../pulumi_kubernetes/networking/__init__.py | 11 +- .../networking/v1/NetworkPolicy.py | 113 -- .../networking/v1/NetworkPolicyList.py | 110 -- .../networking/v1/__init__.py | 6 +- .../networking/v1/network_policy.py | 247 ++++ .../networking/v1/network_policy_list.py | 269 ++++ .../networking/v1beta1/Ingress.py | 137 -- .../networking/v1beta1/IngressClass.py | 114 -- .../networking/v1beta1/IngressClassList.py | 108 -- .../networking/v1beta1/IngressList.py | 110 -- .../networking/v1beta1/__init__.py | 10 +- .../networking/v1beta1/ingress.py | 286 ++++ .../networking/v1beta1/ingress_class.py | 195 +++ .../networking/v1beta1/ingress_class_list.py | 219 +++ .../networking/v1beta1/ingress_list.py | 297 ++++ sdk/python/pulumi_kubernetes/node/__init__.py | 11 +- .../node/v1alpha1/RuntimeClass.py | 121 -- .../node/v1alpha1/RuntimeClassList.py | 110 -- .../node/v1alpha1/__init__.py | 6 +- .../node/v1alpha1/runtime_class.py | 213 +++ .../node/v1alpha1/runtime_class_list.py | 233 ++++ .../node/v1beta1/RuntimeClass.py | 155 -- .../node/v1beta1/RuntimeClassList.py | 110 -- .../node/v1beta1/__init__.py | 6 +- .../node/v1beta1/runtime_class.py | 220 +++ .../node/v1beta1/runtime_class_list.py | 231 +++ .../pulumi_kubernetes/policy/__init__.py | 10 +- .../policy/v1beta1/PodDisruptionBudget.py | 110 -- .../policy/v1beta1/PodDisruptionBudgetList.py | 104 -- .../policy/v1beta1/PodSecurityPolicy.py | 114 -- .../policy/v1beta1/PodSecurityPolicyList.py | 110 -- .../policy/v1beta1/__init__.py | 10 +- .../policy/v1beta1/pod_disruption_budget.py | 164 +++ .../v1beta1/pod_disruption_budget_list.py | 161 +++ .../policy/v1beta1/pod_security_policy.py | 317 +++++ .../v1beta1/pod_security_policy_list.py | 339 +++++ sdk/python/pulumi_kubernetes/provider.py | 129 +- sdk/python/pulumi_kubernetes/rbac/__init__.py | 12 +- .../pulumi_kubernetes/rbac/v1/ClusterRole.py | 124 -- .../rbac/v1/ClusterRoleBinding.py | 124 -- .../rbac/v1/ClusterRoleBindingList.py | 108 -- .../rbac/v1/ClusterRoleList.py | 108 -- sdk/python/pulumi_kubernetes/rbac/v1/Role.py | 113 -- .../pulumi_kubernetes/rbac/v1/RoleBinding.py | 126 -- .../rbac/v1/RoleBindingList.py | 108 -- .../pulumi_kubernetes/rbac/v1/RoleList.py | 108 -- .../pulumi_kubernetes/rbac/v1/__init__.py | 18 +- .../pulumi_kubernetes/rbac/v1/cluster_role.py | 220 +++ .../rbac/v1/cluster_role_binding.py | 212 +++ .../rbac/v1/cluster_role_binding_list.py | 227 +++ .../rbac/v1/cluster_role_list.py | 237 ++++ sdk/python/pulumi_kubernetes/rbac/v1/role.py | 197 +++ .../pulumi_kubernetes/rbac/v1/role_binding.py | 212 +++ .../rbac/v1/role_binding_list.py | 227 +++ .../pulumi_kubernetes/rbac/v1/role_list.py | 219 +++ .../rbac/v1alpha1/ClusterRole.py | 125 -- .../rbac/v1alpha1/ClusterRoleBinding.py | 125 -- .../rbac/v1alpha1/ClusterRoleBindingList.py | 109 -- .../rbac/v1alpha1/ClusterRoleList.py | 109 -- .../pulumi_kubernetes/rbac/v1alpha1/Role.py | 114 -- .../rbac/v1alpha1/RoleBinding.py | 127 -- .../rbac/v1alpha1/RoleBindingList.py | 109 -- .../rbac/v1alpha1/RoleList.py | 109 -- .../rbac/v1alpha1/__init__.py | 18 +- .../rbac/v1alpha1/cluster_role.py | 220 +++ .../rbac/v1alpha1/cluster_role_binding.py | 212 +++ .../v1alpha1/cluster_role_binding_list.py | 227 +++ .../rbac/v1alpha1/cluster_role_list.py | 237 ++++ .../pulumi_kubernetes/rbac/v1alpha1/role.py | 197 +++ .../rbac/v1alpha1/role_binding.py | 212 +++ .../rbac/v1alpha1/role_binding_list.py | 227 +++ .../rbac/v1alpha1/role_list.py | 219 +++ .../rbac/v1beta1/ClusterRole.py | 125 -- .../rbac/v1beta1/ClusterRoleBinding.py | 125 -- .../rbac/v1beta1/ClusterRoleBindingList.py | 109 -- .../rbac/v1beta1/ClusterRoleList.py | 109 -- .../pulumi_kubernetes/rbac/v1beta1/Role.py | 114 -- .../rbac/v1beta1/RoleBinding.py | 127 -- .../rbac/v1beta1/RoleBindingList.py | 109 -- .../rbac/v1beta1/RoleList.py | 109 -- .../rbac/v1beta1/__init__.py | 18 +- .../rbac/v1beta1/cluster_role.py | 220 +++ .../rbac/v1beta1/cluster_role_binding.py | 212 +++ .../rbac/v1beta1/cluster_role_binding_list.py | 227 +++ .../rbac/v1beta1/cluster_role_list.py | 237 ++++ .../pulumi_kubernetes/rbac/v1beta1/role.py | 197 +++ .../rbac/v1beta1/role_binding.py | 212 +++ .../rbac/v1beta1/role_binding_list.py | 227 +++ .../rbac/v1beta1/role_list.py | 219 +++ .../pulumi_kubernetes/scheduling/__init__.py | 12 +- .../scheduling/v1/PriorityClass.py | 155 -- .../scheduling/v1/PriorityClassList.py | 110 -- .../scheduling/v1/__init__.py | 6 +- .../scheduling/v1/priority_class.py | 204 +++ .../scheduling/v1/priority_class_list.py | 215 +++ .../scheduling/v1alpha1/PriorityClass.py | 156 --- .../scheduling/v1alpha1/PriorityClassList.py | 110 -- .../scheduling/v1alpha1/__init__.py | 6 +- .../scheduling/v1alpha1/priority_class.py | 204 +++ .../v1alpha1/priority_class_list.py | 215 +++ .../scheduling/v1beta1/PriorityClass.py | 156 --- .../scheduling/v1beta1/PriorityClassList.py | 110 -- .../scheduling/v1beta1/__init__.py | 6 +- .../scheduling/v1beta1/priority_class.py | 204 +++ .../scheduling/v1beta1/priority_class_list.py | 215 +++ .../pulumi_kubernetes/settings/__init__.py | 10 +- .../settings/v1alpha1/PodPreset.py | 102 -- .../settings/v1alpha1/PodPresetList.py | 110 -- .../settings/v1alpha1/__init__.py | 6 +- .../settings/v1alpha1/pod_preset.py | 384 +++++ .../settings/v1alpha1/pod_preset_list.py | 715 ++++++++++ .../pulumi_kubernetes/storage/__init__.py | 12 +- .../pulumi_kubernetes/storage/v1/CSIDriver.py | 125 -- .../storage/v1/CSIDriverList.py | 110 -- .../pulumi_kubernetes/storage/v1/CSINode.py | 119 -- .../storage/v1/CSINodeList.py | 110 -- .../storage/v1/StorageClass.py | 179 --- .../storage/v1/StorageClassList.py | 110 -- .../storage/v1/VolumeAttachment.py | 126 -- .../storage/v1/VolumeAttachmentList.py | 110 -- .../pulumi_kubernetes/storage/v1/__init__.py | 18 +- .../storage/v1/csi_driver.py | 201 +++ .../storage/v1/csi_driver_list.py | 221 +++ .../pulumi_kubernetes/storage/v1/csi_node.py | 203 +++ .../storage/v1/csi_node_list.py | 223 +++ .../storage/v1/storage_class.py | 233 ++++ .../storage/v1/storage_class_list.py | 229 +++ .../storage/v1/volume_attachment.py | 575 ++++++++ .../storage/v1/volume_attachment_list.py | 599 ++++++++ .../storage/v1alpha1/VolumeAttachment.py | 126 -- .../storage/v1alpha1/VolumeAttachmentList.py | 110 -- .../storage/v1alpha1/__init__.py | 6 +- .../storage/v1alpha1/volume_attachment.py | 575 ++++++++ .../v1alpha1/volume_attachment_list.py | 599 ++++++++ .../storage/v1beta1/CSIDriver.py | 128 -- .../storage/v1beta1/CSIDriverList.py | 110 -- .../storage/v1beta1/CSINode.py | 121 -- .../storage/v1beta1/CSINodeList.py | 110 -- .../storage/v1beta1/StorageClass.py | 179 --- .../storage/v1beta1/StorageClassList.py | 110 -- .../storage/v1beta1/VolumeAttachment.py | 126 -- .../storage/v1beta1/VolumeAttachmentList.py | 110 -- .../storage/v1beta1/__init__.py | 18 +- .../storage/v1beta1/csi_driver.py | 201 +++ .../storage/v1beta1/csi_driver_list.py | 221 +++ .../storage/v1beta1/csi_node.py | 206 +++ .../storage/v1beta1/csi_node_list.py | 223 +++ .../storage/v1beta1/storage_class.py | 233 ++++ .../storage/v1beta1/storage_class_list.py | 229 +++ .../storage/v1beta1/volume_attachment.py | 575 ++++++++ .../storage/v1beta1/volume_attachment_list.py | 599 ++++++++ sdk/python/pulumi_kubernetes/tables.py | 928 +++++------- sdk/python/pulumi_kubernetes/utilities.py | 83 ++ sdk/python/setup.py | 27 +- 455 files changed, 85298 insertions(+), 23741 deletions(-) mode change 100755 => 100644 sdk/python/pulumi_kubernetes/__init__.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/admissionregistration/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py delete mode 100755 sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py delete mode 100755 sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py delete mode 100755 sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py delete mode 100755 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py delete mode 100755 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py delete mode 100755 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py delete mode 100755 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/apiextensions/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py delete mode 100755 sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py create mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py delete mode 100755 sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py delete mode 100755 sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py create mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/apiregistration/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py delete mode 100755 sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py create mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py delete mode 100755 sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py delete mode 100755 sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py create mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/apps/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1/Deployment.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/apps/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/deployment.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/replica_set.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py delete mode 100755 sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/auditregistration/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py delete mode 100755 sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py create mode 100644 sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/authentication/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py delete mode 100755 sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/authentication/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/authentication/v1/token_request.py create mode 100644 sdk/python/pulumi_kubernetes/authentication/v1/token_review.py delete mode 100755 sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/authorization/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py delete mode 100755 sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py delete mode 100755 sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py delete mode 100755 sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/authorization/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py delete mode 100755 sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py delete mode 100755 sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py delete mode 100755 sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py delete mode 100755 sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/autoscaling/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py delete mode 100755 sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py delete mode 100755 sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py delete mode 100755 sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py delete mode 100755 sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py delete mode 100755 sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/batch/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/batch/v1/Job.py delete mode 100755 sdk/python/pulumi_kubernetes/batch/v1/JobList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/batch/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v1/job.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v1/job_list.py delete mode 100755 sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py delete mode 100755 sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py delete mode 100755 sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py delete mode 100755 sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/certificates/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py delete mode 100755 sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py create mode 100644 sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/coordination/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/coordination/v1/Lease.py delete mode 100755 sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/coordination/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/coordination/v1/lease.py create mode 100644 sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py delete mode 100755 sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py delete mode 100755 sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py create mode 100644 sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/core/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/Binding.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/Endpoints.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/Event.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/EventList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/LimitRange.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/Namespace.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/Node.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/NodeList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/Pod.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/PodList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/Secret.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/SecretList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/Service.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py delete mode 100755 sdk/python/pulumi_kubernetes/core/v1/ServiceList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/core/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/binding.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/component_status.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/component_status_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/config_map.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/config_map_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/endpoints.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/event.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/event_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/limit_range.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/namespace.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/namespace_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/node.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/node_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/pod.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/pod_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/pod_template.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/replication_controller.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/resource_quota.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/secret.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/secret_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/service.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/service_account.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/service_account_list.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/service_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/discovery/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py delete mode 100755 sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py create mode 100644 sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/events/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/events/v1beta1/Event.py delete mode 100755 sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/events/v1beta1/event.py create mode 100644 sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/extensions/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py delete mode 100755 sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py delete mode 100755 sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py delete mode 100755 sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py delete mode 100755 sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py delete mode 100755 sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py delete mode 100755 sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py delete mode 100755 sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py delete mode 100755 sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py delete mode 100755 sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py delete mode 100755 sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py delete mode 100755 sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/flowcontrol/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py delete mode 100755 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py delete mode 100755 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py delete mode 100755 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py create mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py create mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py create mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/meta/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/meta/v1/Status.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/meta/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/meta/v1/status.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/networking/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py delete mode 100755 sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/networking/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1/network_policy.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py delete mode 100755 sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py delete mode 100755 sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py delete mode 100755 sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py delete mode 100755 sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/node/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py delete mode 100755 sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py create mode 100644 sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py delete mode 100755 sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py delete mode 100755 sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py create mode 100644 sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/policy/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py delete mode 100755 sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py delete mode 100755 sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py delete mode 100755 sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py create mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py create mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py create mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/rbac/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1/Role.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/rbac/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/role.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/role_list.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py delete mode 100755 sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/scheduling/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py delete mode 100755 sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py delete mode 100755 sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py delete mode 100755 sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py delete mode 100755 sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py delete mode 100755 sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/settings/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py delete mode 100755 sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py create mode 100644 sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/storage/__init__.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1/CSINode.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/storage/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/csi_node.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/storage_class.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py delete mode 100755 sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py create mode 100644 sdk/python/pulumi_kubernetes/utilities.py diff --git a/sdk/python/pulumi_kubernetes/__init__.py b/sdk/python/pulumi_kubernetes/__init__.py old mode 100755 new mode 100644 index 3291074a71..02fcbd487f --- a/sdk/python/pulumi_kubernetes/__init__.py +++ b/sdk/python/pulumi_kubernetes/__init__.py @@ -1,39 +1,13 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "admissionregistration", - "apiextensions", - "apiregistration", - "apps", - "auditregistration", - "authentication", - "authorization", - "autoscaling", - "batch", - "certificates", - "coordination", - "core", - "discovery", - "events", - "extensions", - "flowcontrol", - "meta", - "networking", - "node", - "policy", - "rbac", - "scheduling", - "settings", - "storage", - "helm", - "provider", - "yaml", -] +__all__ = ['admissionregistration', 'apiextensions', 'apiregistration', 'apps', 'auditregistration', 'authentication', 'authorization', 'autoscaling', 'batch', 'certificates', 'coordination', 'core', 'discovery', 'events', 'extensions', 'flowcontrol', 'meta', 'networking', 'node', 'policy', 'rbac', 'scheduling', 'settings', 'storage'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') -# Expose the provider directly. -from .provider import Provider - -from .yaml import ConfigFile +# Export this package's modules as members: +from .provider import * diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py old mode 100755 new mode 100644 index 092556c5fd..4c1e851a21 --- a/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py @@ -1,9 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", - "v1beta1", -] +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py deleted file mode 100755 index 54eec942a5..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +++ /dev/null @@ -1,114 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class MutatingWebhookConfiguration(pulumi.CustomResource): - """ - MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or - reject and may change the object. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata; More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - """ - - webhooks: pulumi.Output[list] - """ - Webhooks is a list of webhooks and the affected resources and operations. - """ - - def __init__(self, resource_name, opts=None, metadata=None, webhooks=None, __name__=None, __opts__=None): - """ - Create a MutatingWebhookConfiguration resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object metadata; More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'admissionregistration.k8s.io/v1' - __props__['kind'] = 'MutatingWebhookConfiguration' - __props__['metadata'] = metadata - __props__['webhooks'] = webhooks - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(MutatingWebhookConfiguration, self).__init__( - "kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `MutatingWebhookConfiguration` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return MutatingWebhookConfiguration(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py deleted file mode 100755 index 9a4c68b649..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class MutatingWebhookConfigurationList(pulumi.CustomResource): - """ - MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of MutatingWebhookConfiguration. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a MutatingWebhookConfigurationList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of MutatingWebhookConfiguration. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'admissionregistration.k8s.io/v1' - __props__['kind'] = 'MutatingWebhookConfigurationList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(MutatingWebhookConfigurationList, self).__init__( - "kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `MutatingWebhookConfigurationList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return MutatingWebhookConfigurationList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py deleted file mode 100755 index 033f52f5a6..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +++ /dev/null @@ -1,114 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ValidatingWebhookConfiguration(pulumi.CustomResource): - """ - ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept - or reject and object without changing it. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata; More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - """ - - webhooks: pulumi.Output[list] - """ - Webhooks is a list of webhooks and the affected resources and operations. - """ - - def __init__(self, resource_name, opts=None, metadata=None, webhooks=None, __name__=None, __opts__=None): - """ - Create a ValidatingWebhookConfiguration resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object metadata; More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'admissionregistration.k8s.io/v1' - __props__['kind'] = 'ValidatingWebhookConfiguration' - __props__['metadata'] = metadata - __props__['webhooks'] = webhooks - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ValidatingWebhookConfiguration, self).__init__( - "kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ValidatingWebhookConfiguration` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ValidatingWebhookConfiguration(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py deleted file mode 100755 index e6cbe7eeaa..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ValidatingWebhookConfigurationList(pulumi.CustomResource): - """ - ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of ValidatingWebhookConfiguration. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ValidatingWebhookConfigurationList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of ValidatingWebhookConfiguration. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'admissionregistration.k8s.io/v1' - __props__['kind'] = 'ValidatingWebhookConfigurationList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ValidatingWebhookConfigurationList, self).__init__( - "kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfigurationList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ValidatingWebhookConfigurationList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ValidatingWebhookConfigurationList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py old mode 100755 new mode 100644 index 0b265dc49b..a10db0753b --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py @@ -1,9 +1,9 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .MutatingWebhookConfiguration import (MutatingWebhookConfiguration) -from .MutatingWebhookConfigurationList import (MutatingWebhookConfigurationList) -from .ValidatingWebhookConfiguration import (ValidatingWebhookConfiguration) -from .ValidatingWebhookConfigurationList import (ValidatingWebhookConfigurationList) +from .mutating_webhook_configuration import * +from .mutating_webhook_configuration_list import * +from .validating_webhook_configuration import * +from .validating_webhook_configuration_list import * diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py new file mode 100644 index 0000000000..d26f941f97 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py @@ -0,0 +1,373 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class MutatingWebhookConfiguration(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + webhooks: pulumi.Output[list] + """ + Webhooks is a list of webhooks and the affected resources and operations. + * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - `name` is the name of the service. Required + * `namespace` (`str`) - `namespace` is the namespace of the service. Required + * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Equivalent" + * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `reinvocationPolicy` (`str`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + + Never: the webhook will not be called more than once in a single admission evaluation. + + IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + + Defaults to "Never". + * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`list`) - 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. + * `resources` (`list`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): + """ + MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **webhooks** object supports the following: + + * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Equivalent" + * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `reinvocationPolicy` (`pulumi.Input[str]`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + + Never: the webhook will not be called more than once in a single admission evaluation. + + IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + + Defaults to "Never". + * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`pulumi.Input[list]`) - 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. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['webhooks'] = webhooks + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(MutatingWebhookConfiguration, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing MutatingWebhookConfiguration resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return MutatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py new file mode 100644 index 0000000000..7d555b92c8 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py @@ -0,0 +1,395 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class MutatingWebhookConfigurationList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of MutatingWebhookConfiguration. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `webhooks` (`list`) - Webhooks is a list of webhooks and the affected resources and operations. + * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - `name` is the name of the service. Required + * `namespace` (`str`) - `namespace` is the namespace of the service. Required + * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Equivalent" + * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `reinvocationPolicy` (`str`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + + Never: the webhook will not be called more than once in a single admission evaluation. + + IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + + Defaults to "Never". + * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`list`) - 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. + * `resources` (`list`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of MutatingWebhookConfiguration. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `webhooks` (`pulumi.Input[list]`) - Webhooks is a list of webhooks and the affected resources and operations. + * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Equivalent" + * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `reinvocationPolicy` (`pulumi.Input[str]`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + + Never: the webhook will not be called more than once in a single admission evaluation. + + IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + + Defaults to "Never". + * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`pulumi.Input[list]`) - 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. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(MutatingWebhookConfigurationList, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing MutatingWebhookConfigurationList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return MutatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py new file mode 100644 index 0000000000..db985e1b16 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py @@ -0,0 +1,359 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ValidatingWebhookConfiguration(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + webhooks: pulumi.Output[list] + """ + Webhooks is a list of webhooks and the affected resources and operations. + * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - `name` is the name of the service. Required + * `namespace` (`str`) - `namespace` is the namespace of the service. Required + * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Equivalent" + * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`list`) - 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. + * `resources` (`list`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): + """ + ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **webhooks** object supports the following: + + * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Equivalent" + * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`pulumi.Input[list]`) - 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. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['webhooks'] = webhooks + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ValidatingWebhookConfiguration, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ValidatingWebhookConfiguration resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ValidatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py new file mode 100644 index 0000000000..a840690617 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py @@ -0,0 +1,381 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ValidatingWebhookConfigurationList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ValidatingWebhookConfiguration. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `webhooks` (`list`) - Webhooks is a list of webhooks and the affected resources and operations. + * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - `name` is the name of the service. Required + * `namespace` (`str`) - `namespace` is the namespace of the service. Required + * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Equivalent" + * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`list`) - 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. + * `resources` (`list`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ValidatingWebhookConfiguration. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `webhooks` (`pulumi.Input[list]`) - Webhooks is a list of webhooks and the affected resources and operations. + * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Equivalent" + * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`pulumi.Input[list]`) - 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. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. + * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ValidatingWebhookConfigurationList, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfigurationList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ValidatingWebhookConfigurationList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ValidatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py deleted file mode 100755 index 2f36ec22ec..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +++ /dev/null @@ -1,115 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class MutatingWebhookConfiguration(pulumi.CustomResource): - """ - MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or - reject and may change the object. Deprecated in v1.16, planned for removal in v1.19. Use - admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata; More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - """ - - webhooks: pulumi.Output[list] - """ - Webhooks is a list of webhooks and the affected resources and operations. - """ - - def __init__(self, resource_name, opts=None, metadata=None, webhooks=None, __name__=None, __opts__=None): - """ - Create a MutatingWebhookConfiguration resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object metadata; More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'admissionregistration.k8s.io/v1beta1' - __props__['kind'] = 'MutatingWebhookConfiguration' - __props__['metadata'] = metadata - __props__['webhooks'] = webhooks - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(MutatingWebhookConfiguration, self).__init__( - "kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `MutatingWebhookConfiguration` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return MutatingWebhookConfiguration(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py deleted file mode 100755 index 5c4e365d99..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class MutatingWebhookConfigurationList(pulumi.CustomResource): - """ - MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of MutatingWebhookConfiguration. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a MutatingWebhookConfigurationList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of MutatingWebhookConfiguration. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'admissionregistration.k8s.io/v1beta1' - __props__['kind'] = 'MutatingWebhookConfigurationList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(MutatingWebhookConfigurationList, self).__init__( - "kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfigurationList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `MutatingWebhookConfigurationList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return MutatingWebhookConfigurationList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py deleted file mode 100755 index 5b5418b2ea..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +++ /dev/null @@ -1,115 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ValidatingWebhookConfiguration(pulumi.CustomResource): - """ - ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept - or reject and object without changing it. Deprecated in v1.16, planned for removal in v1.19. Use - admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata; More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - """ - - webhooks: pulumi.Output[list] - """ - Webhooks is a list of webhooks and the affected resources and operations. - """ - - def __init__(self, resource_name, opts=None, metadata=None, webhooks=None, __name__=None, __opts__=None): - """ - Create a ValidatingWebhookConfiguration resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object metadata; More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'admissionregistration.k8s.io/v1beta1' - __props__['kind'] = 'ValidatingWebhookConfiguration' - __props__['metadata'] = metadata - __props__['webhooks'] = webhooks - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ValidatingWebhookConfiguration, self).__init__( - "kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ValidatingWebhookConfiguration` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ValidatingWebhookConfiguration(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py deleted file mode 100755 index 6b88394e29..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ValidatingWebhookConfigurationList(pulumi.CustomResource): - """ - ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of ValidatingWebhookConfiguration. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ValidatingWebhookConfigurationList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of ValidatingWebhookConfiguration. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'admissionregistration.k8s.io/v1beta1' - __props__['kind'] = 'ValidatingWebhookConfigurationList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ValidatingWebhookConfigurationList, self).__init__( - "kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfigurationList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ValidatingWebhookConfigurationList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ValidatingWebhookConfigurationList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py old mode 100755 new mode 100644 index 0b265dc49b..a10db0753b --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py @@ -1,9 +1,9 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .MutatingWebhookConfiguration import (MutatingWebhookConfiguration) -from .MutatingWebhookConfigurationList import (MutatingWebhookConfigurationList) -from .ValidatingWebhookConfiguration import (ValidatingWebhookConfiguration) -from .ValidatingWebhookConfigurationList import (ValidatingWebhookConfigurationList) +from .mutating_webhook_configuration import * +from .mutating_webhook_configuration_list import * +from .validating_webhook_configuration import * +from .validating_webhook_configuration_list import * diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py new file mode 100644 index 0000000000..9f03fb9ee9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py @@ -0,0 +1,373 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class MutatingWebhookConfiguration(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + webhooks: pulumi.Output[list] + """ + Webhooks is a list of webhooks and the affected resources and operations. + * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. + * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - `name` is the name of the service. Required + * `namespace` (`str`) - `namespace` is the namespace of the service. Required + * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. + * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Exact" + * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `reinvocationPolicy` (`str`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + + Never: the webhook will not be called more than once in a single admission evaluation. + + IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + + Defaults to "Never". + * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`list`) - 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. + * `resources` (`list`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. + * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): + """ + MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **webhooks** object supports the following: + + * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. + * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. + * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Exact" + * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `reinvocationPolicy` (`pulumi.Input[str]`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + + Never: the webhook will not be called more than once in a single admission evaluation. + + IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + + Defaults to "Never". + * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`pulumi.Input[list]`) - 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. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. + * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['webhooks'] = webhooks + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(MutatingWebhookConfiguration, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing MutatingWebhookConfiguration resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return MutatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py new file mode 100644 index 0000000000..56130c536a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py @@ -0,0 +1,395 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class MutatingWebhookConfigurationList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of MutatingWebhookConfiguration. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `webhooks` (`list`) - Webhooks is a list of webhooks and the affected resources and operations. + * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. + * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - `name` is the name of the service. Required + * `namespace` (`str`) - `namespace` is the namespace of the service. Required + * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. + * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Exact" + * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `reinvocationPolicy` (`str`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + + Never: the webhook will not be called more than once in a single admission evaluation. + + IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + + Defaults to "Never". + * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`list`) - 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. + * `resources` (`list`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. + * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of MutatingWebhookConfiguration. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `webhooks` (`pulumi.Input[list]`) - Webhooks is a list of webhooks and the affected resources and operations. + * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. + * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. + * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Exact" + * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `reinvocationPolicy` (`pulumi.Input[str]`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + + Never: the webhook will not be called more than once in a single admission evaluation. + + IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + + Defaults to "Never". + * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`pulumi.Input[list]`) - 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. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. + * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(MutatingWebhookConfigurationList, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfigurationList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing MutatingWebhookConfigurationList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return MutatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py new file mode 100644 index 0000000000..4f90dfa5fc --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py @@ -0,0 +1,359 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ValidatingWebhookConfiguration(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + webhooks: pulumi.Output[list] + """ + Webhooks is a list of webhooks and the affected resources and operations. + * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. + * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - `name` is the name of the service. Required + * `namespace` (`str`) - `namespace` is the namespace of the service. Required + * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. + * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Exact" + * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`list`) - 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. + * `resources` (`list`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. + * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): + """ + ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **webhooks** object supports the following: + + * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. + * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. + * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Exact" + * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`pulumi.Input[list]`) - 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. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. + * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['webhooks'] = webhooks + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ValidatingWebhookConfiguration, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ValidatingWebhookConfiguration resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ValidatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py new file mode 100644 index 0000000000..86ad3c049c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py @@ -0,0 +1,381 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ValidatingWebhookConfigurationList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ValidatingWebhookConfiguration. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `webhooks` (`list`) - Webhooks is a list of webhooks and the affected resources and operations. + * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. + * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - `name` is the name of the service. Required + * `namespace` (`str`) - `namespace` is the namespace of the service. Required + * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. + * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Exact" + * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`list`) - 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. + * `resources` (`list`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. + * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ValidatingWebhookConfiguration. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `webhooks` (`pulumi.Input[list]`) - Webhooks is a list of webhooks and the affected resources and operations. + * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. + * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required + * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. + * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Exact" + * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. + + For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "runlevel", + "operator": "NotIn", + "values": [ + "0", + "1" + ] + } + ] + } + + If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { + "matchExpressions": [ + { + "key": "environment", + "operator": "In", + "values": [ + "prod", + "staging" + ] + } + ] + } + + See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. + + Default to the empty LabelSelector, which matches everything. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. + * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * `operations` (`pulumi.Input[list]`) - 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. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. + + For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. + + If wildcard is present, the validation rule will ensure resources do not overlap with each other. + + Depending on the enclosing object, subresources might not be allowed. Required. + * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". + + * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. + * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ValidatingWebhookConfigurationList, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfigurationList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ValidatingWebhookConfigurationList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ValidatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/__init__.py old mode 100755 new mode 100644 index ce4b96dc99..4c1e851a21 --- a/sdk/python/pulumi_kubernetes/apiextensions/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/__init__.py @@ -1,11 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", - "v1beta1", -] - -from .CustomResource import (CustomResource) +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py deleted file mode 100755 index 42b6af2154..0000000000 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +++ /dev/null @@ -1,117 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CustomResourceDefinition(pulumi.CustomResource): - """ - CustomResourceDefinition represents a resource that should be exposed on the API server. Its - name MUST be in the format <.spec.name>.<.spec.group>. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - spec describes how the user wants the resources to appear - """ - - status: pulumi.Output[dict] - """ - status indicates the actual state of the CustomResourceDefinition - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CustomResourceDefinition resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: spec describes how the user wants the resources to appear - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apiextensions.k8s.io/v1' - __props__['kind'] = 'CustomResourceDefinition' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(CustomResourceDefinition, self).__init__( - "kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CustomResourceDefinition` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CustomResourceDefinition(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py deleted file mode 100755 index f47bc3a902..0000000000 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +++ /dev/null @@ -1,106 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CustomResourceDefinitionList(pulumi.CustomResource): - """ - CustomResourceDefinitionList is a list of CustomResourceDefinition objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items list individual CustomResourceDefinition objects - """ - - metadata: pulumi.Output[dict] - - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CustomResourceDefinitionList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items list individual CustomResourceDefinition objects - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apiextensions.k8s.io/v1' - __props__['kind'] = 'CustomResourceDefinitionList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(CustomResourceDefinitionList, self).__init__( - "kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinitionList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CustomResourceDefinitionList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CustomResourceDefinitionList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py old mode 100755 new mode 100644 index b1fd984d6a..fbe44755c3 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .CustomResourceDefinition import (CustomResourceDefinition) -from .CustomResourceDefinitionList import (CustomResourceDefinitionList) +from .custom_resource_definition import * +from .custom_resource_definition_list import * diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py new file mode 100644 index 0000000000..43dfc86434 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py @@ -0,0 +1,444 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CustomResourceDefinition(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + spec describes how the user wants the resources to appear + * `conversion` (`dict`) - conversion defines conversion settings for the CRD. + * `strategy` (`str`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information + is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. + * `webhook` (`dict`) - webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`. + * `client_config` (`dict`) - clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. + * `ca_bundle` (`str`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - service is a reference to the service for this webhook. Either service or url must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - name is the name of the service. Required + * `namespace` (`str`) - namespace is the namespace of the service. Required + * `path` (`str`) - path is an optional URL path at which the webhook will be contacted. + * `port` (`float`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. + + * `url` (`str`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `conversion_review_versions` (`list`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. + + * `group` (`str`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). + * `names` (`dict`) - names specify the resource and kind names for the custom resource. + * `categories` (`list`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + * `kind` (`str`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + * `list_kind` (`str`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + * `plural` (`str`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + * `short_names` (`list`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + * `singular` (`str`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + + * `preserve_unknown_fields` (`bool`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. + * `scope` (`str`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. + * `versions` (`list`) - versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * `additional_printer_columns` (`list`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. + * `description` (`str`) - description is a human readable description of this column. + * `format` (`str`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * `jsonPath` (`str`) - jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. + * `name` (`str`) - name is a human readable name for the column. + * `priority` (`float`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. + * `type` (`str`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + + * `name` (`str`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. + * `schema` (`dict`) - schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. + * `open_apiv3_schema` (`dict`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. + * `_ref` (`str`) + * `_schema` (`str`) + * `additional_items` (`dict`) + * `additional_properties` (`dict`) + * `all_of` (`list`) + * `any_of` (`list`) + * `default` (`dict`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. + * `definitions` (`dict`) + * `dependencies` (`dict`) + * `description` (`str`) + * `enum` (`list`) + * `example` (`dict`) + * `exclusive_maximum` (`bool`) + * `exclusive_minimum` (`bool`) + * `external_docs` (`dict`) + * `description` (`str`) + * `url` (`str`) + + * `format` (`str`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: + + - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. + * `id` (`str`) + * `items` (`dict`) + * `max_items` (`float`) + * `max_length` (`float`) + * `max_properties` (`float`) + * `maximum` (`float`) + * `min_items` (`float`) + * `min_length` (`float`) + * `min_properties` (`float`) + * `minimum` (`float`) + * `multiple_of` (`float`) + * `not` (`dict`) + * `nullable` (`bool`) + * `one_of` (`list`) + * `pattern` (`str`) + * `pattern_properties` (`dict`) + * `properties` (`dict`) + * `required` (`list`) + * `title` (`str`) + * `type` (`str`) + * `unique_items` (`bool`) + * `x_kubernetes_embedded_resource` (`bool`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). + * `x_kubernetes_int_or_string` (`bool`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: + + 1) anyOf: + - type: integer + - type: string + 2) allOf: + - anyOf: + - type: integer + - type: string + - ... zero or more + * `x_kubernetes_list_map_keys` (`list`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. + + This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). + + The properties specified must either be required or have a default value, to ensure those properties are present for all list items. + * `x_kubernetes_list_type` (`str`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: + + 1) `atomic`: the list is treated as a single entity, like a scalar. + Atomic lists will be entirely replaced when updated. This extension + may be used on any type of list (struct, scalar, ...). + 2) `set`: + Sets are lists that must not have multiple items with the same value. Each + value must be a scalar, an object with x-kubernetes-map-type `atomic` or an + array with x-kubernetes-list-type `atomic`. + 3) `map`: + These lists are like maps in that their elements have a non-index key + used to identify them. Order is preserved upon merge. The map tag + must only be used on a list with elements of type object. + Defaults to atomic for arrays. + * `x_kubernetes_map_type` (`str`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: + + 1) `granular`: + These maps are actual maps (key-value pairs) and each fields are independent + from each other (they can each be manipulated by separate actors). This is + the default behaviour for all maps. + 2) `atomic`: the list is treated as a single entity, like a scalar. + Atomic maps will be entirely replaced when updated. + * `x_kubernetes_preserve_unknown_fields` (`bool`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. + + * `served` (`bool`) - served is a flag enabling/disabling this version from being served via REST APIs + * `storage` (`bool`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. + * `subresources` (`dict`) - subresources specify what subresources this version of the defined custom resource have. + * `scale` (`dict`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. + * `label_selector_path` (`str`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. + * `spec_replicas_path` (`str`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. + * `status_replicas_path` (`str`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. + + * `status` (`dict`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. + """ + status: pulumi.Output[dict] + """ + status indicates the actual state of the CustomResourceDefinition + * `accepted_names` (`dict`) - acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. + * `categories` (`list`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + * `kind` (`str`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + * `list_kind` (`str`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + * `plural` (`str`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + * `short_names` (`list`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + * `singular` (`str`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + + * `conditions` (`list`) - conditions indicate state for particular aspects of a CustomResourceDefinition + * `lastTransitionTime` (`str`) - lastTransitionTime last time the condition transitioned from one status to another. + * `message` (`str`) - message is a human-readable message indicating details about last transition. + * `reason` (`str`) - reason is a unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`str`) - status is the status of the condition. Can be True, False, Unknown. + * `type` (`str`) - type is the type of the condition. Types include Established, NamesAccepted and Terminating. + + * `stored_versions` (`list`) - storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: spec describes how the user wants the resources to appear + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `conversion` (`pulumi.Input[dict]`) - conversion defines conversion settings for the CRD. + * `strategy` (`pulumi.Input[str]`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information + is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. + * `webhook` (`pulumi.Input[dict]`) - webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`. + * `client_config` (`pulumi.Input[dict]`) - clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. + * `ca_bundle` (`pulumi.Input[str]`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - service is a reference to the service for this webhook. Either service or url must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - name is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - namespace is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - path is an optional URL path at which the webhook will be contacted. + * `port` (`pulumi.Input[float]`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. + + * `url` (`pulumi.Input[str]`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `conversion_review_versions` (`pulumi.Input[list]`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. + + * `group` (`pulumi.Input[str]`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). + * `names` (`pulumi.Input[dict]`) - names specify the resource and kind names for the custom resource. + * `categories` (`pulumi.Input[list]`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + * `kind` (`pulumi.Input[str]`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + * `list_kind` (`pulumi.Input[str]`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + * `plural` (`pulumi.Input[str]`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + * `short_names` (`pulumi.Input[list]`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + * `singular` (`pulumi.Input[str]`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + + * `preserve_unknown_fields` (`pulumi.Input[bool]`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. + * `scope` (`pulumi.Input[str]`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. + * `versions` (`pulumi.Input[list]`) - versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * `additional_printer_columns` (`pulumi.Input[list]`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. + * `description` (`pulumi.Input[str]`) - description is a human readable description of this column. + * `format` (`pulumi.Input[str]`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * `jsonPath` (`pulumi.Input[str]`) - jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. + * `name` (`pulumi.Input[str]`) - name is a human readable name for the column. + * `priority` (`pulumi.Input[float]`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. + * `type` (`pulumi.Input[str]`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + + * `name` (`pulumi.Input[str]`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. + * `schema` (`pulumi.Input[dict]`) - schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. + * `open_apiv3_schema` (`pulumi.Input[dict]`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. + * `_ref` (`pulumi.Input[str]`) + * `_schema` (`pulumi.Input[str]`) + * `additional_items` (`pulumi.Input[dict]`) + * `additional_properties` (`pulumi.Input[dict]`) + * `all_of` (`pulumi.Input[list]`) + * `any_of` (`pulumi.Input[list]`) + * `default` (`pulumi.Input[dict]`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. + * `definitions` (`pulumi.Input[dict]`) + * `dependencies` (`pulumi.Input[dict]`) + * `description` (`pulumi.Input[str]`) + * `enum` (`pulumi.Input[list]`) + * `example` (`pulumi.Input[dict]`) + * `exclusive_maximum` (`pulumi.Input[bool]`) + * `exclusive_minimum` (`pulumi.Input[bool]`) + * `external_docs` (`pulumi.Input[dict]`) + * `description` (`pulumi.Input[str]`) + * `url` (`pulumi.Input[str]`) + + * `format` (`pulumi.Input[str]`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: + + - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. + * `id` (`pulumi.Input[str]`) + * `items` (`pulumi.Input[dict]`) + * `max_items` (`pulumi.Input[float]`) + * `max_length` (`pulumi.Input[float]`) + * `max_properties` (`pulumi.Input[float]`) + * `maximum` (`pulumi.Input[float]`) + * `min_items` (`pulumi.Input[float]`) + * `min_length` (`pulumi.Input[float]`) + * `min_properties` (`pulumi.Input[float]`) + * `minimum` (`pulumi.Input[float]`) + * `multiple_of` (`pulumi.Input[float]`) + * `not` (`pulumi.Input[dict]`) + * `nullable` (`pulumi.Input[bool]`) + * `one_of` (`pulumi.Input[list]`) + * `pattern` (`pulumi.Input[str]`) + * `pattern_properties` (`pulumi.Input[dict]`) + * `properties` (`pulumi.Input[dict]`) + * `required` (`pulumi.Input[list]`) + * `title` (`pulumi.Input[str]`) + * `type` (`pulumi.Input[str]`) + * `unique_items` (`pulumi.Input[bool]`) + * `x_kubernetes_embedded_resource` (`pulumi.Input[bool]`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). + * `x_kubernetes_int_or_string` (`pulumi.Input[bool]`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: + + 1) anyOf: + - type: integer + - type: string + 2) allOf: + - anyOf: + - type: integer + - type: string + - ... zero or more + * `x_kubernetes_list_map_keys` (`pulumi.Input[list]`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. + + This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). + + The properties specified must either be required or have a default value, to ensure those properties are present for all list items. + * `x_kubernetes_list_type` (`pulumi.Input[str]`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: + + 1) `atomic`: the list is treated as a single entity, like a scalar. + Atomic lists will be entirely replaced when updated. This extension + may be used on any type of list (struct, scalar, ...). + 2) `set`: + Sets are lists that must not have multiple items with the same value. Each + value must be a scalar, an object with x-kubernetes-map-type `atomic` or an + array with x-kubernetes-list-type `atomic`. + 3) `map`: + These lists are like maps in that their elements have a non-index key + used to identify them. Order is preserved upon merge. The map tag + must only be used on a list with elements of type object. + Defaults to atomic for arrays. + * `x_kubernetes_map_type` (`pulumi.Input[str]`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: + + 1) `granular`: + These maps are actual maps (key-value pairs) and each fields are independent + from each other (they can each be manipulated by separate actors). This is + the default behaviour for all maps. + 2) `atomic`: the list is treated as a single entity, like a scalar. + Atomic maps will be entirely replaced when updated. + * `x_kubernetes_preserve_unknown_fields` (`pulumi.Input[bool]`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. + + * `served` (`pulumi.Input[bool]`) - served is a flag enabling/disabling this version from being served via REST APIs + * `storage` (`pulumi.Input[bool]`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. + * `subresources` (`pulumi.Input[dict]`) - subresources specify what subresources this version of the defined custom resource have. + * `scale` (`pulumi.Input[dict]`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. + * `label_selector_path` (`pulumi.Input[str]`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. + * `spec_replicas_path` (`pulumi.Input[str]`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. + * `status_replicas_path` (`pulumi.Input[str]`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. + + * `status` (`pulumi.Input[dict]`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CustomResourceDefinition, __self__).__init__( + 'kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CustomResourceDefinition resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CustomResourceDefinition(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py new file mode 100644 index 0000000000..f0c8da4ee2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py @@ -0,0 +1,505 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CustomResourceDefinitionList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items list individual CustomResourceDefinition objects + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - spec describes how the user wants the resources to appear + * `conversion` (`dict`) - conversion defines conversion settings for the CRD. + * `strategy` (`str`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information + is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. + * `webhook` (`dict`) - webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`. + * `client_config` (`dict`) - clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. + * `ca_bundle` (`str`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - service is a reference to the service for this webhook. Either service or url must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - name is the name of the service. Required + * `namespace` (`str`) - namespace is the namespace of the service. Required + * `path` (`str`) - path is an optional URL path at which the webhook will be contacted. + * `port` (`float`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. + + * `url` (`str`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `conversion_review_versions` (`list`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. + + * `group` (`str`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). + * `names` (`dict`) - names specify the resource and kind names for the custom resource. + * `categories` (`list`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + * `kind` (`str`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + * `list_kind` (`str`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + * `plural` (`str`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + * `short_names` (`list`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + * `singular` (`str`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + + * `preserve_unknown_fields` (`bool`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. + * `scope` (`str`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. + * `versions` (`list`) - versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * `additional_printer_columns` (`list`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. + * `description` (`str`) - description is a human readable description of this column. + * `format` (`str`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * `jsonPath` (`str`) - jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. + * `name` (`str`) - name is a human readable name for the column. + * `priority` (`float`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. + * `type` (`str`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + + * `name` (`str`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. + * `schema` (`dict`) - schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. + * `open_apiv3_schema` (`dict`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. + * `_ref` (`str`) + * `_schema` (`str`) + * `additional_items` (`dict`) + * `additional_properties` (`dict`) + * `all_of` (`list`) + * `any_of` (`list`) + * `default` (`dict`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. + * `definitions` (`dict`) + * `dependencies` (`dict`) + * `description` (`str`) + * `enum` (`list`) + * `example` (`dict`) + * `exclusive_maximum` (`bool`) + * `exclusive_minimum` (`bool`) + * `external_docs` (`dict`) + * `description` (`str`) + * `url` (`str`) + + * `format` (`str`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: + + - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. + * `id` (`str`) + * `items` (`dict`) + * `max_items` (`float`) + * `max_length` (`float`) + * `max_properties` (`float`) + * `maximum` (`float`) + * `min_items` (`float`) + * `min_length` (`float`) + * `min_properties` (`float`) + * `minimum` (`float`) + * `multiple_of` (`float`) + * `not` (`dict`) + * `nullable` (`bool`) + * `one_of` (`list`) + * `pattern` (`str`) + * `pattern_properties` (`dict`) + * `properties` (`dict`) + * `required` (`list`) + * `title` (`str`) + * `type` (`str`) + * `unique_items` (`bool`) + * `x_kubernetes_embedded_resource` (`bool`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). + * `x_kubernetes_int_or_string` (`bool`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: + + 1) anyOf: + - type: integer + - type: string + 2) allOf: + - anyOf: + - type: integer + - type: string + - ... zero or more + * `x_kubernetes_list_map_keys` (`list`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. + + This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). + + The properties specified must either be required or have a default value, to ensure those properties are present for all list items. + * `x_kubernetes_list_type` (`str`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: + + 1) `atomic`: the list is treated as a single entity, like a scalar. + Atomic lists will be entirely replaced when updated. This extension + may be used on any type of list (struct, scalar, ...). + 2) `set`: + Sets are lists that must not have multiple items with the same value. Each + value must be a scalar, an object with x-kubernetes-map-type `atomic` or an + array with x-kubernetes-list-type `atomic`. + 3) `map`: + These lists are like maps in that their elements have a non-index key + used to identify them. Order is preserved upon merge. The map tag + must only be used on a list with elements of type object. + Defaults to atomic for arrays. + * `x_kubernetes_map_type` (`str`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: + + 1) `granular`: + These maps are actual maps (key-value pairs) and each fields are independent + from each other (they can each be manipulated by separate actors). This is + the default behaviour for all maps. + 2) `atomic`: the list is treated as a single entity, like a scalar. + Atomic maps will be entirely replaced when updated. + * `x_kubernetes_preserve_unknown_fields` (`bool`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. + + * `served` (`bool`) - served is a flag enabling/disabling this version from being served via REST APIs + * `storage` (`bool`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. + * `subresources` (`dict`) - subresources specify what subresources this version of the defined custom resource have. + * `scale` (`dict`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. + * `label_selector_path` (`str`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. + * `spec_replicas_path` (`str`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. + * `status_replicas_path` (`str`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. + + * `status` (`dict`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. + + * `status` (`dict`) - status indicates the actual state of the CustomResourceDefinition + * `accepted_names` (`dict`) - acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. + * `conditions` (`list`) - conditions indicate state for particular aspects of a CustomResourceDefinition + * `lastTransitionTime` (`str`) - lastTransitionTime last time the condition transitioned from one status to another. + * `message` (`str`) - message is a human-readable message indicating details about last transition. + * `reason` (`str`) - reason is a unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`str`) - status is the status of the condition. Can be True, False, Unknown. + * `type` (`str`) - type is the type of the condition. Types include Established, NamesAccepted and Terminating. + + * `stored_versions` (`list`) - storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items list individual CustomResourceDefinition objects + :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 + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - spec describes how the user wants the resources to appear + * `conversion` (`pulumi.Input[dict]`) - conversion defines conversion settings for the CRD. + * `strategy` (`pulumi.Input[str]`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information + is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. + * `webhook` (`pulumi.Input[dict]`) - webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`. + * `client_config` (`pulumi.Input[dict]`) - clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. + * `ca_bundle` (`pulumi.Input[str]`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - service is a reference to the service for this webhook. Either service or url must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - name is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - namespace is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - path is an optional URL path at which the webhook will be contacted. + * `port` (`pulumi.Input[float]`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. + + * `url` (`pulumi.Input[str]`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `conversion_review_versions` (`pulumi.Input[list]`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. + + * `group` (`pulumi.Input[str]`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). + * `names` (`pulumi.Input[dict]`) - names specify the resource and kind names for the custom resource. + * `categories` (`pulumi.Input[list]`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + * `kind` (`pulumi.Input[str]`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + * `list_kind` (`pulumi.Input[str]`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + * `plural` (`pulumi.Input[str]`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + * `short_names` (`pulumi.Input[list]`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + * `singular` (`pulumi.Input[str]`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + + * `preserve_unknown_fields` (`pulumi.Input[bool]`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. + * `scope` (`pulumi.Input[str]`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. + * `versions` (`pulumi.Input[list]`) - versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * `additional_printer_columns` (`pulumi.Input[list]`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. + * `description` (`pulumi.Input[str]`) - description is a human readable description of this column. + * `format` (`pulumi.Input[str]`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * `jsonPath` (`pulumi.Input[str]`) - jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. + * `name` (`pulumi.Input[str]`) - name is a human readable name for the column. + * `priority` (`pulumi.Input[float]`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. + * `type` (`pulumi.Input[str]`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + + * `name` (`pulumi.Input[str]`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. + * `schema` (`pulumi.Input[dict]`) - schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. + * `open_apiv3_schema` (`pulumi.Input[dict]`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. + * `_ref` (`pulumi.Input[str]`) + * `_schema` (`pulumi.Input[str]`) + * `additional_items` (`pulumi.Input[dict]`) + * `additional_properties` (`pulumi.Input[dict]`) + * `all_of` (`pulumi.Input[list]`) + * `any_of` (`pulumi.Input[list]`) + * `default` (`pulumi.Input[dict]`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. + * `definitions` (`pulumi.Input[dict]`) + * `dependencies` (`pulumi.Input[dict]`) + * `description` (`pulumi.Input[str]`) + * `enum` (`pulumi.Input[list]`) + * `example` (`pulumi.Input[dict]`) + * `exclusive_maximum` (`pulumi.Input[bool]`) + * `exclusive_minimum` (`pulumi.Input[bool]`) + * `external_docs` (`pulumi.Input[dict]`) + * `description` (`pulumi.Input[str]`) + * `url` (`pulumi.Input[str]`) + + * `format` (`pulumi.Input[str]`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: + + - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. + * `id` (`pulumi.Input[str]`) + * `items` (`pulumi.Input[dict]`) + * `max_items` (`pulumi.Input[float]`) + * `max_length` (`pulumi.Input[float]`) + * `max_properties` (`pulumi.Input[float]`) + * `maximum` (`pulumi.Input[float]`) + * `min_items` (`pulumi.Input[float]`) + * `min_length` (`pulumi.Input[float]`) + * `min_properties` (`pulumi.Input[float]`) + * `minimum` (`pulumi.Input[float]`) + * `multiple_of` (`pulumi.Input[float]`) + * `not` (`pulumi.Input[dict]`) + * `nullable` (`pulumi.Input[bool]`) + * `one_of` (`pulumi.Input[list]`) + * `pattern` (`pulumi.Input[str]`) + * `pattern_properties` (`pulumi.Input[dict]`) + * `properties` (`pulumi.Input[dict]`) + * `required` (`pulumi.Input[list]`) + * `title` (`pulumi.Input[str]`) + * `type` (`pulumi.Input[str]`) + * `unique_items` (`pulumi.Input[bool]`) + * `x_kubernetes_embedded_resource` (`pulumi.Input[bool]`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). + * `x_kubernetes_int_or_string` (`pulumi.Input[bool]`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: + + 1) anyOf: + - type: integer + - type: string + 2) allOf: + - anyOf: + - type: integer + - type: string + - ... zero or more + * `x_kubernetes_list_map_keys` (`pulumi.Input[list]`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. + + This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). + + The properties specified must either be required or have a default value, to ensure those properties are present for all list items. + * `x_kubernetes_list_type` (`pulumi.Input[str]`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: + + 1) `atomic`: the list is treated as a single entity, like a scalar. + Atomic lists will be entirely replaced when updated. This extension + may be used on any type of list (struct, scalar, ...). + 2) `set`: + Sets are lists that must not have multiple items with the same value. Each + value must be a scalar, an object with x-kubernetes-map-type `atomic` or an + array with x-kubernetes-list-type `atomic`. + 3) `map`: + These lists are like maps in that their elements have a non-index key + used to identify them. Order is preserved upon merge. The map tag + must only be used on a list with elements of type object. + Defaults to atomic for arrays. + * `x_kubernetes_map_type` (`pulumi.Input[str]`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: + + 1) `granular`: + These maps are actual maps (key-value pairs) and each fields are independent + from each other (they can each be manipulated by separate actors). This is + the default behaviour for all maps. + 2) `atomic`: the list is treated as a single entity, like a scalar. + Atomic maps will be entirely replaced when updated. + * `x_kubernetes_preserve_unknown_fields` (`pulumi.Input[bool]`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. + + * `served` (`pulumi.Input[bool]`) - served is a flag enabling/disabling this version from being served via REST APIs + * `storage` (`pulumi.Input[bool]`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. + * `subresources` (`pulumi.Input[dict]`) - subresources specify what subresources this version of the defined custom resource have. + * `scale` (`pulumi.Input[dict]`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. + * `label_selector_path` (`pulumi.Input[str]`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. + * `spec_replicas_path` (`pulumi.Input[str]`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. + * `status_replicas_path` (`pulumi.Input[str]`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. + + * `status` (`pulumi.Input[dict]`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. + + * `status` (`pulumi.Input[dict]`) - status indicates the actual state of the CustomResourceDefinition + * `accepted_names` (`pulumi.Input[dict]`) - acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. + * `conditions` (`pulumi.Input[list]`) - conditions indicate state for particular aspects of a CustomResourceDefinition + * `lastTransitionTime` (`pulumi.Input[str]`) - lastTransitionTime last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - message is a human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - reason is a unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - status is the status of the condition. Can be True, False, Unknown. + * `type` (`pulumi.Input[str]`) - type is the type of the condition. Types include Established, NamesAccepted and Terminating. + + * `stored_versions` (`pulumi.Input[list]`) - storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(CustomResourceDefinitionList, __self__).__init__( + 'kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinitionList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CustomResourceDefinitionList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CustomResourceDefinitionList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py deleted file mode 100755 index fdc191031d..0000000000 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +++ /dev/null @@ -1,118 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CustomResourceDefinition(pulumi.CustomResource): - """ - CustomResourceDefinition represents a resource that should be exposed on the API server. Its - name MUST be in the format <.spec.name>.<.spec.group>. Deprecated in v1.16, planned for removal - in v1.19. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - spec describes how the user wants the resources to appear - """ - - status: pulumi.Output[dict] - """ - status indicates the actual state of the CustomResourceDefinition - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CustomResourceDefinition resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: spec describes how the user wants the resources to appear - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apiextensions.k8s.io/v1beta1' - __props__['kind'] = 'CustomResourceDefinition' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(CustomResourceDefinition, self).__init__( - "kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CustomResourceDefinition` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CustomResourceDefinition(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py deleted file mode 100755 index 9794b7523c..0000000000 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +++ /dev/null @@ -1,106 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CustomResourceDefinitionList(pulumi.CustomResource): - """ - CustomResourceDefinitionList is a list of CustomResourceDefinition objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items list individual CustomResourceDefinition objects - """ - - metadata: pulumi.Output[dict] - - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CustomResourceDefinitionList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items list individual CustomResourceDefinition objects - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apiextensions.k8s.io/v1beta1' - __props__['kind'] = 'CustomResourceDefinitionList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(CustomResourceDefinitionList, self).__init__( - "kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinitionList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CustomResourceDefinitionList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CustomResourceDefinitionList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py old mode 100755 new mode 100644 index b1fd984d6a..fbe44755c3 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .CustomResourceDefinition import (CustomResourceDefinition) -from .CustomResourceDefinitionList import (CustomResourceDefinitionList) +from .custom_resource_definition import * +from .custom_resource_definition_list import * diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py new file mode 100644 index 0000000000..c99744bef9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py @@ -0,0 +1,450 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CustomResourceDefinition(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + spec describes how the user wants the resources to appear + * `additional_printer_columns` (`list`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If present, this field configures columns for all versions. Top-level and per-version columns are mutually exclusive. If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. + * `JSONPath` (`str`) - JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. + * `description` (`str`) - description is a human readable description of this column. + * `format` (`str`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * `name` (`str`) - name is a human readable name for the column. + * `priority` (`float`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. + * `type` (`str`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + + * `conversion` (`dict`) - conversion defines conversion settings for the CRD. + * `conversion_review_versions` (`list`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. + * `strategy` (`str`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information + is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set. + * `webhook_client_config` (`dict`) - webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. + * `ca_bundle` (`str`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - service is a reference to the service for this webhook. Either service or url must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - name is the name of the service. Required + * `namespace` (`str`) - namespace is the namespace of the service. Required + * `path` (`str`) - path is an optional URL path at which the webhook will be contacted. + * `port` (`float`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. + + * `url` (`str`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `group` (`str`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). + * `names` (`dict`) - names specify the resource and kind names for the custom resource. + * `categories` (`list`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + * `kind` (`str`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + * `list_kind` (`str`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + * `plural` (`str`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + * `short_names` (`list`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + * `singular` (`str`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + + * `preserve_unknown_fields` (`bool`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. If false, schemas must be defined for all versions. Defaults to true in v1beta for backwards compatibility. Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. + * `scope` (`str`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`. + * `subresources` (`dict`) - subresources specify what subresources the defined custom resource has. If present, this field configures subresources for all versions. Top-level and per-version subresources are mutually exclusive. + * `scale` (`dict`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. + * `label_selector_path` (`str`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. + * `spec_replicas_path` (`str`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. + * `status_replicas_path` (`str`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. + + * `status` (`dict`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. + + * `validation` (`dict`) - validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive. + * `open_apiv3_schema` (`dict`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. + * `_ref` (`str`) + * `_schema` (`str`) + * `additional_items` (`dict`) + * `additional_properties` (`dict`) + * `all_of` (`list`) + * `any_of` (`list`) + * `default` (`dict`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API. + * `definitions` (`dict`) + * `dependencies` (`dict`) + * `description` (`str`) + * `enum` (`list`) + * `example` (`dict`) + * `exclusive_maximum` (`bool`) + * `exclusive_minimum` (`bool`) + * `external_docs` (`dict`) + * `description` (`str`) + * `url` (`str`) + + * `format` (`str`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: + + - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. + * `id` (`str`) + * `items` (`dict`) + * `max_items` (`float`) + * `max_length` (`float`) + * `max_properties` (`float`) + * `maximum` (`float`) + * `min_items` (`float`) + * `min_length` (`float`) + * `min_properties` (`float`) + * `minimum` (`float`) + * `multiple_of` (`float`) + * `not` (`dict`) + * `nullable` (`bool`) + * `one_of` (`list`) + * `pattern` (`str`) + * `pattern_properties` (`dict`) + * `properties` (`dict`) + * `required` (`list`) + * `title` (`str`) + * `type` (`str`) + * `unique_items` (`bool`) + * `x_kubernetes_embedded_resource` (`bool`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). + * `x_kubernetes_int_or_string` (`bool`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: + + 1) anyOf: + - type: integer + - type: string + 2) allOf: + - anyOf: + - type: integer + - type: string + - ... zero or more + * `x_kubernetes_list_map_keys` (`list`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. + + This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). + + The properties specified must either be required or have a default value, to ensure those properties are present for all list items. + * `x_kubernetes_list_type` (`str`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: + + 1) `atomic`: the list is treated as a single entity, like a scalar. + Atomic lists will be entirely replaced when updated. This extension + may be used on any type of list (struct, scalar, ...). + 2) `set`: + Sets are lists that must not have multiple items with the same value. Each + value must be a scalar, an object with x-kubernetes-map-type `atomic` or an + array with x-kubernetes-list-type `atomic`. + 3) `map`: + These lists are like maps in that their elements have a non-index key + used to identify them. Order is preserved upon merge. The map tag + must only be used on a list with elements of type object. + Defaults to atomic for arrays. + * `x_kubernetes_map_type` (`str`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: + + 1) `granular`: + These maps are actual maps (key-value pairs) and each fields are independent + from each other (they can each be manipulated by separate actors). This is + the default behaviour for all maps. + 2) `atomic`: the list is treated as a single entity, like a scalar. + Atomic maps will be entirely replaced when updated. + * `x_kubernetes_preserve_unknown_fields` (`bool`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. + + * `version` (`str`) - version is the API version of the defined custom resource. The custom resources are served under `/apis///...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead. + * `versions` (`list`) - versions is the list of all API versions of the defined custom resource. Optional if `version` is specified. The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * `additional_printer_columns` (`list`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. + * `name` (`str`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. + * `schema` (`dict`) - schema describes the schema used for validation and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead). + * `served` (`bool`) - served is a flag enabling/disabling this version from being served via REST APIs + * `storage` (`bool`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. + * `subresources` (`dict`) - subresources specify what subresources this version of the defined custom resource have. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead). + """ + status: pulumi.Output[dict] + """ + status indicates the actual state of the CustomResourceDefinition + * `accepted_names` (`dict`) - acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. + * `categories` (`list`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + * `kind` (`str`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + * `list_kind` (`str`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + * `plural` (`str`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + * `short_names` (`list`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + * `singular` (`str`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + + * `conditions` (`list`) - conditions indicate state for particular aspects of a CustomResourceDefinition + * `lastTransitionTime` (`str`) - lastTransitionTime last time the condition transitioned from one status to another. + * `message` (`str`) - message is a human-readable message indicating details about last transition. + * `reason` (`str`) - reason is a unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`str`) - status is the status of the condition. Can be True, False, Unknown. + * `type` (`str`) - type is the type of the condition. Types include Established, NamesAccepted and Terminating. + + * `stored_versions` (`list`) - storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. Deprecated in v1.16, planned for removal in v1.19. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: spec describes how the user wants the resources to appear + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `additional_printer_columns` (`pulumi.Input[list]`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If present, this field configures columns for all versions. Top-level and per-version columns are mutually exclusive. If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. + * `JSONPath` (`pulumi.Input[str]`) - JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. + * `description` (`pulumi.Input[str]`) - description is a human readable description of this column. + * `format` (`pulumi.Input[str]`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * `name` (`pulumi.Input[str]`) - name is a human readable name for the column. + * `priority` (`pulumi.Input[float]`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. + * `type` (`pulumi.Input[str]`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + + * `conversion` (`pulumi.Input[dict]`) - conversion defines conversion settings for the CRD. + * `conversion_review_versions` (`pulumi.Input[list]`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. + * `strategy` (`pulumi.Input[str]`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information + is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set. + * `webhook_client_config` (`pulumi.Input[dict]`) - webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. + * `ca_bundle` (`pulumi.Input[str]`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - service is a reference to the service for this webhook. Either service or url must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - name is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - namespace is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - path is an optional URL path at which the webhook will be contacted. + * `port` (`pulumi.Input[float]`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. + + * `url` (`pulumi.Input[str]`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `group` (`pulumi.Input[str]`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). + * `names` (`pulumi.Input[dict]`) - names specify the resource and kind names for the custom resource. + * `categories` (`pulumi.Input[list]`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + * `kind` (`pulumi.Input[str]`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + * `list_kind` (`pulumi.Input[str]`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + * `plural` (`pulumi.Input[str]`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + * `short_names` (`pulumi.Input[list]`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + * `singular` (`pulumi.Input[str]`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + + * `preserve_unknown_fields` (`pulumi.Input[bool]`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. If false, schemas must be defined for all versions. Defaults to true in v1beta for backwards compatibility. Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. + * `scope` (`pulumi.Input[str]`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`. + * `subresources` (`pulumi.Input[dict]`) - subresources specify what subresources the defined custom resource has. If present, this field configures subresources for all versions. Top-level and per-version subresources are mutually exclusive. + * `scale` (`pulumi.Input[dict]`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. + * `label_selector_path` (`pulumi.Input[str]`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. + * `spec_replicas_path` (`pulumi.Input[str]`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. + * `status_replicas_path` (`pulumi.Input[str]`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. + + * `status` (`pulumi.Input[dict]`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. + + * `validation` (`pulumi.Input[dict]`) - validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive. + * `open_apiv3_schema` (`pulumi.Input[dict]`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. + * `_ref` (`pulumi.Input[str]`) + * `_schema` (`pulumi.Input[str]`) + * `additional_items` (`pulumi.Input[dict]`) + * `additional_properties` (`pulumi.Input[dict]`) + * `all_of` (`pulumi.Input[list]`) + * `any_of` (`pulumi.Input[list]`) + * `default` (`pulumi.Input[dict]`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API. + * `definitions` (`pulumi.Input[dict]`) + * `dependencies` (`pulumi.Input[dict]`) + * `description` (`pulumi.Input[str]`) + * `enum` (`pulumi.Input[list]`) + * `example` (`pulumi.Input[dict]`) + * `exclusive_maximum` (`pulumi.Input[bool]`) + * `exclusive_minimum` (`pulumi.Input[bool]`) + * `external_docs` (`pulumi.Input[dict]`) + * `description` (`pulumi.Input[str]`) + * `url` (`pulumi.Input[str]`) + + * `format` (`pulumi.Input[str]`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: + + - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. + * `id` (`pulumi.Input[str]`) + * `items` (`pulumi.Input[dict]`) + * `max_items` (`pulumi.Input[float]`) + * `max_length` (`pulumi.Input[float]`) + * `max_properties` (`pulumi.Input[float]`) + * `maximum` (`pulumi.Input[float]`) + * `min_items` (`pulumi.Input[float]`) + * `min_length` (`pulumi.Input[float]`) + * `min_properties` (`pulumi.Input[float]`) + * `minimum` (`pulumi.Input[float]`) + * `multiple_of` (`pulumi.Input[float]`) + * `not` (`pulumi.Input[dict]`) + * `nullable` (`pulumi.Input[bool]`) + * `one_of` (`pulumi.Input[list]`) + * `pattern` (`pulumi.Input[str]`) + * `pattern_properties` (`pulumi.Input[dict]`) + * `properties` (`pulumi.Input[dict]`) + * `required` (`pulumi.Input[list]`) + * `title` (`pulumi.Input[str]`) + * `type` (`pulumi.Input[str]`) + * `unique_items` (`pulumi.Input[bool]`) + * `x_kubernetes_embedded_resource` (`pulumi.Input[bool]`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). + * `x_kubernetes_int_or_string` (`pulumi.Input[bool]`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: + + 1) anyOf: + - type: integer + - type: string + 2) allOf: + - anyOf: + - type: integer + - type: string + - ... zero or more + * `x_kubernetes_list_map_keys` (`pulumi.Input[list]`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. + + This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). + + The properties specified must either be required or have a default value, to ensure those properties are present for all list items. + * `x_kubernetes_list_type` (`pulumi.Input[str]`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: + + 1) `atomic`: the list is treated as a single entity, like a scalar. + Atomic lists will be entirely replaced when updated. This extension + may be used on any type of list (struct, scalar, ...). + 2) `set`: + Sets are lists that must not have multiple items with the same value. Each + value must be a scalar, an object with x-kubernetes-map-type `atomic` or an + array with x-kubernetes-list-type `atomic`. + 3) `map`: + These lists are like maps in that their elements have a non-index key + used to identify them. Order is preserved upon merge. The map tag + must only be used on a list with elements of type object. + Defaults to atomic for arrays. + * `x_kubernetes_map_type` (`pulumi.Input[str]`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: + + 1) `granular`: + These maps are actual maps (key-value pairs) and each fields are independent + from each other (they can each be manipulated by separate actors). This is + the default behaviour for all maps. + 2) `atomic`: the list is treated as a single entity, like a scalar. + Atomic maps will be entirely replaced when updated. + * `x_kubernetes_preserve_unknown_fields` (`pulumi.Input[bool]`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. + + * `version` (`pulumi.Input[str]`) - version is the API version of the defined custom resource. The custom resources are served under `/apis///...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead. + * `versions` (`pulumi.Input[list]`) - versions is the list of all API versions of the defined custom resource. Optional if `version` is specified. The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * `additional_printer_columns` (`pulumi.Input[list]`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. + * `name` (`pulumi.Input[str]`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. + * `schema` (`pulumi.Input[dict]`) - schema describes the schema used for validation and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead). + * `served` (`pulumi.Input[bool]`) - served is a flag enabling/disabling this version from being served via REST APIs + * `storage` (`pulumi.Input[bool]`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. + * `subresources` (`pulumi.Input[dict]`) - subresources specify what subresources this version of the defined custom resource have. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead). + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CustomResourceDefinition, __self__).__init__( + 'kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CustomResourceDefinition resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CustomResourceDefinition(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py new file mode 100644 index 0000000000..12e9aa1817 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py @@ -0,0 +1,511 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CustomResourceDefinitionList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items list individual CustomResourceDefinition objects + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - spec describes how the user wants the resources to appear + * `additional_printer_columns` (`list`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If present, this field configures columns for all versions. Top-level and per-version columns are mutually exclusive. If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. + * `JSONPath` (`str`) - JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. + * `description` (`str`) - description is a human readable description of this column. + * `format` (`str`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * `name` (`str`) - name is a human readable name for the column. + * `priority` (`float`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. + * `type` (`str`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + + * `conversion` (`dict`) - conversion defines conversion settings for the CRD. + * `conversion_review_versions` (`list`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. + * `strategy` (`str`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information + is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set. + * `webhook_client_config` (`dict`) - webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. + * `ca_bundle` (`str`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - service is a reference to the service for this webhook. Either service or url must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - name is the name of the service. Required + * `namespace` (`str`) - namespace is the namespace of the service. Required + * `path` (`str`) - path is an optional URL path at which the webhook will be contacted. + * `port` (`float`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. + + * `url` (`str`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `group` (`str`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). + * `names` (`dict`) - names specify the resource and kind names for the custom resource. + * `categories` (`list`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + * `kind` (`str`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + * `list_kind` (`str`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + * `plural` (`str`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + * `short_names` (`list`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + * `singular` (`str`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + + * `preserve_unknown_fields` (`bool`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. If false, schemas must be defined for all versions. Defaults to true in v1beta for backwards compatibility. Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. + * `scope` (`str`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`. + * `subresources` (`dict`) - subresources specify what subresources the defined custom resource has. If present, this field configures subresources for all versions. Top-level and per-version subresources are mutually exclusive. + * `scale` (`dict`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. + * `label_selector_path` (`str`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. + * `spec_replicas_path` (`str`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. + * `status_replicas_path` (`str`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. + + * `status` (`dict`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. + + * `validation` (`dict`) - validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive. + * `open_apiv3_schema` (`dict`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. + * `_ref` (`str`) + * `_schema` (`str`) + * `additional_items` (`dict`) + * `additional_properties` (`dict`) + * `all_of` (`list`) + * `any_of` (`list`) + * `default` (`dict`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API. + * `definitions` (`dict`) + * `dependencies` (`dict`) + * `description` (`str`) + * `enum` (`list`) + * `example` (`dict`) + * `exclusive_maximum` (`bool`) + * `exclusive_minimum` (`bool`) + * `external_docs` (`dict`) + * `description` (`str`) + * `url` (`str`) + + * `format` (`str`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: + + - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. + * `id` (`str`) + * `items` (`dict`) + * `max_items` (`float`) + * `max_length` (`float`) + * `max_properties` (`float`) + * `maximum` (`float`) + * `min_items` (`float`) + * `min_length` (`float`) + * `min_properties` (`float`) + * `minimum` (`float`) + * `multiple_of` (`float`) + * `not` (`dict`) + * `nullable` (`bool`) + * `one_of` (`list`) + * `pattern` (`str`) + * `pattern_properties` (`dict`) + * `properties` (`dict`) + * `required` (`list`) + * `title` (`str`) + * `type` (`str`) + * `unique_items` (`bool`) + * `x_kubernetes_embedded_resource` (`bool`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). + * `x_kubernetes_int_or_string` (`bool`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: + + 1) anyOf: + - type: integer + - type: string + 2) allOf: + - anyOf: + - type: integer + - type: string + - ... zero or more + * `x_kubernetes_list_map_keys` (`list`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. + + This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). + + The properties specified must either be required or have a default value, to ensure those properties are present for all list items. + * `x_kubernetes_list_type` (`str`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: + + 1) `atomic`: the list is treated as a single entity, like a scalar. + Atomic lists will be entirely replaced when updated. This extension + may be used on any type of list (struct, scalar, ...). + 2) `set`: + Sets are lists that must not have multiple items with the same value. Each + value must be a scalar, an object with x-kubernetes-map-type `atomic` or an + array with x-kubernetes-list-type `atomic`. + 3) `map`: + These lists are like maps in that their elements have a non-index key + used to identify them. Order is preserved upon merge. The map tag + must only be used on a list with elements of type object. + Defaults to atomic for arrays. + * `x_kubernetes_map_type` (`str`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: + + 1) `granular`: + These maps are actual maps (key-value pairs) and each fields are independent + from each other (they can each be manipulated by separate actors). This is + the default behaviour for all maps. + 2) `atomic`: the list is treated as a single entity, like a scalar. + Atomic maps will be entirely replaced when updated. + * `x_kubernetes_preserve_unknown_fields` (`bool`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. + + * `version` (`str`) - version is the API version of the defined custom resource. The custom resources are served under `/apis///...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead. + * `versions` (`list`) - versions is the list of all API versions of the defined custom resource. Optional if `version` is specified. The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * `additional_printer_columns` (`list`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. + * `name` (`str`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. + * `schema` (`dict`) - schema describes the schema used for validation and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead). + * `served` (`bool`) - served is a flag enabling/disabling this version from being served via REST APIs + * `storage` (`bool`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. + * `subresources` (`dict`) - subresources specify what subresources this version of the defined custom resource have. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead). + + * `status` (`dict`) - status indicates the actual state of the CustomResourceDefinition + * `accepted_names` (`dict`) - acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. + * `conditions` (`list`) - conditions indicate state for particular aspects of a CustomResourceDefinition + * `lastTransitionTime` (`str`) - lastTransitionTime last time the condition transitioned from one status to another. + * `message` (`str`) - message is a human-readable message indicating details about last transition. + * `reason` (`str`) - reason is a unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`str`) - status is the status of the condition. Can be True, False, Unknown. + * `type` (`str`) - type is the type of the condition. Types include Established, NamesAccepted and Terminating. + + * `stored_versions` (`list`) - storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items list individual CustomResourceDefinition objects + :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 + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - spec describes how the user wants the resources to appear + * `additional_printer_columns` (`pulumi.Input[list]`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If present, this field configures columns for all versions. Top-level and per-version columns are mutually exclusive. If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. + * `JSONPath` (`pulumi.Input[str]`) - JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. + * `description` (`pulumi.Input[str]`) - description is a human readable description of this column. + * `format` (`pulumi.Input[str]`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + * `name` (`pulumi.Input[str]`) - name is a human readable name for the column. + * `priority` (`pulumi.Input[float]`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. + * `type` (`pulumi.Input[str]`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. + + * `conversion` (`pulumi.Input[dict]`) - conversion defines conversion settings for the CRD. + * `conversion_review_versions` (`pulumi.Input[list]`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. + * `strategy` (`pulumi.Input[str]`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information + is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set. + * `webhook_client_config` (`pulumi.Input[dict]`) - webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. + * `ca_bundle` (`pulumi.Input[str]`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - service is a reference to the service for this webhook. Either service or url must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - name is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - namespace is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - path is an optional URL path at which the webhook will be contacted. + * `port` (`pulumi.Input[float]`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. + + * `url` (`pulumi.Input[str]`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `group` (`pulumi.Input[str]`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). + * `names` (`pulumi.Input[dict]`) - names specify the resource and kind names for the custom resource. + * `categories` (`pulumi.Input[list]`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. + * `kind` (`pulumi.Input[str]`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. + * `list_kind` (`pulumi.Input[str]`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". + * `plural` (`pulumi.Input[str]`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. + * `short_names` (`pulumi.Input[list]`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. + * `singular` (`pulumi.Input[str]`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. + + * `preserve_unknown_fields` (`pulumi.Input[bool]`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. If false, schemas must be defined for all versions. Defaults to true in v1beta for backwards compatibility. Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. + * `scope` (`pulumi.Input[str]`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`. + * `subresources` (`pulumi.Input[dict]`) - subresources specify what subresources the defined custom resource has. If present, this field configures subresources for all versions. Top-level and per-version subresources are mutually exclusive. + * `scale` (`pulumi.Input[dict]`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. + * `label_selector_path` (`pulumi.Input[str]`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. + * `spec_replicas_path` (`pulumi.Input[str]`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. + * `status_replicas_path` (`pulumi.Input[str]`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. + + * `status` (`pulumi.Input[dict]`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. + + * `validation` (`pulumi.Input[dict]`) - validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive. + * `open_apiv3_schema` (`pulumi.Input[dict]`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. + * `_ref` (`pulumi.Input[str]`) + * `_schema` (`pulumi.Input[str]`) + * `additional_items` (`pulumi.Input[dict]`) + * `additional_properties` (`pulumi.Input[dict]`) + * `all_of` (`pulumi.Input[list]`) + * `any_of` (`pulumi.Input[list]`) + * `default` (`pulumi.Input[dict]`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API. + * `definitions` (`pulumi.Input[dict]`) + * `dependencies` (`pulumi.Input[dict]`) + * `description` (`pulumi.Input[str]`) + * `enum` (`pulumi.Input[list]`) + * `example` (`pulumi.Input[dict]`) + * `exclusive_maximum` (`pulumi.Input[bool]`) + * `exclusive_minimum` (`pulumi.Input[bool]`) + * `external_docs` (`pulumi.Input[dict]`) + * `description` (`pulumi.Input[str]`) + * `url` (`pulumi.Input[str]`) + + * `format` (`pulumi.Input[str]`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: + + - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. + * `id` (`pulumi.Input[str]`) + * `items` (`pulumi.Input[dict]`) + * `max_items` (`pulumi.Input[float]`) + * `max_length` (`pulumi.Input[float]`) + * `max_properties` (`pulumi.Input[float]`) + * `maximum` (`pulumi.Input[float]`) + * `min_items` (`pulumi.Input[float]`) + * `min_length` (`pulumi.Input[float]`) + * `min_properties` (`pulumi.Input[float]`) + * `minimum` (`pulumi.Input[float]`) + * `multiple_of` (`pulumi.Input[float]`) + * `not` (`pulumi.Input[dict]`) + * `nullable` (`pulumi.Input[bool]`) + * `one_of` (`pulumi.Input[list]`) + * `pattern` (`pulumi.Input[str]`) + * `pattern_properties` (`pulumi.Input[dict]`) + * `properties` (`pulumi.Input[dict]`) + * `required` (`pulumi.Input[list]`) + * `title` (`pulumi.Input[str]`) + * `type` (`pulumi.Input[str]`) + * `unique_items` (`pulumi.Input[bool]`) + * `x_kubernetes_embedded_resource` (`pulumi.Input[bool]`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). + * `x_kubernetes_int_or_string` (`pulumi.Input[bool]`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: + + 1) anyOf: + - type: integer + - type: string + 2) allOf: + - anyOf: + - type: integer + - type: string + - ... zero or more + * `x_kubernetes_list_map_keys` (`pulumi.Input[list]`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. + + This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). + + The properties specified must either be required or have a default value, to ensure those properties are present for all list items. + * `x_kubernetes_list_type` (`pulumi.Input[str]`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: + + 1) `atomic`: the list is treated as a single entity, like a scalar. + Atomic lists will be entirely replaced when updated. This extension + may be used on any type of list (struct, scalar, ...). + 2) `set`: + Sets are lists that must not have multiple items with the same value. Each + value must be a scalar, an object with x-kubernetes-map-type `atomic` or an + array with x-kubernetes-list-type `atomic`. + 3) `map`: + These lists are like maps in that their elements have a non-index key + used to identify them. Order is preserved upon merge. The map tag + must only be used on a list with elements of type object. + Defaults to atomic for arrays. + * `x_kubernetes_map_type` (`pulumi.Input[str]`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: + + 1) `granular`: + These maps are actual maps (key-value pairs) and each fields are independent + from each other (they can each be manipulated by separate actors). This is + the default behaviour for all maps. + 2) `atomic`: the list is treated as a single entity, like a scalar. + Atomic maps will be entirely replaced when updated. + * `x_kubernetes_preserve_unknown_fields` (`pulumi.Input[bool]`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. + + * `version` (`pulumi.Input[str]`) - version is the API version of the defined custom resource. The custom resources are served under `/apis///...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead. + * `versions` (`pulumi.Input[list]`) - versions is the list of all API versions of the defined custom resource. Optional if `version` is specified. The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + * `additional_printer_columns` (`pulumi.Input[list]`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. + * `name` (`pulumi.Input[str]`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. + * `schema` (`pulumi.Input[dict]`) - schema describes the schema used for validation and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead). + * `served` (`pulumi.Input[bool]`) - served is a flag enabling/disabling this version from being served via REST APIs + * `storage` (`pulumi.Input[bool]`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. + * `subresources` (`pulumi.Input[dict]`) - subresources specify what subresources this version of the defined custom resource have. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead). + + * `status` (`pulumi.Input[dict]`) - status indicates the actual state of the CustomResourceDefinition + * `accepted_names` (`pulumi.Input[dict]`) - acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. + * `conditions` (`pulumi.Input[list]`) - conditions indicate state for particular aspects of a CustomResourceDefinition + * `lastTransitionTime` (`pulumi.Input[str]`) - lastTransitionTime last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - message is a human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - reason is a unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - status is the status of the condition. Can be True, False, Unknown. + * `type` (`pulumi.Input[str]`) - type is the type of the condition. Types include Established, NamesAccepted and Terminating. + + * `stored_versions` (`pulumi.Input[list]`) - storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(CustomResourceDefinitionList, __self__).__init__( + 'kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinitionList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CustomResourceDefinitionList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CustomResourceDefinitionList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/__init__.py old mode 100755 new mode 100644 index 092556c5fd..4c1e851a21 --- a/sdk/python/pulumi_kubernetes/apiregistration/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/__init__.py @@ -1,9 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", - "v1beta1", -] +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py deleted file mode 100755 index b61fd16338..0000000000 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py +++ /dev/null @@ -1,116 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class APIService(pulumi.CustomResource): - """ - APIService represents a server for a particular GroupVersion. Name must be "version.group". - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec contains information for locating and communicating with a server - """ - - status: pulumi.Output[dict] - """ - Status contains derived information about an API server - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a APIService resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: - :param pulumi.Input[dict] spec: Spec contains information for locating and communicating with a server - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apiregistration.k8s.io/v1' - __props__['kind'] = 'APIService' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apiregistration.k8s.io/v1beta1:APIService"), - pulumi.Alias(type_="kubernetes:apiregistration/v1beta1:APIService"), - pulumi.Alias(type_="kubernetes:apiregistration/v1:APIService"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(APIService, self).__init__( - "kubernetes:apiregistration.k8s.io/v1:APIService", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `APIService` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return APIService(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py deleted file mode 100755 index 8c0748016f..0000000000 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py +++ /dev/null @@ -1,109 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class APIServiceList(pulumi.CustomResource): - """ - APIServiceList is a list of APIService objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - - - metadata: pulumi.Output[dict] - - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a APIServiceList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apiregistration.k8s.io/v1' - __props__['kind'] = 'APIServiceList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apiregistration/v1:APIServiceList"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(APIServiceList, self).__init__( - "kubernetes:apiregistration.k8s.io/v1:APIServiceList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `APIServiceList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return APIServiceList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py old mode 100755 new mode 100644 index 525186b6f9..db3b4deec8 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .APIService import (APIService) -from .APIServiceList import (APIServiceList) +from .api_service import * +from .api_service_list import * diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py new file mode 100644 index 0000000000..da4ba331d7 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py @@ -0,0 +1,170 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class APIService(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec contains information for locating and communicating with a server + * `ca_bundle` (`str`) - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + * `group` (`str`) - Group is the API group name this server hosts + * `group_priority_minimum` (`float`) - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + * `insecure_skip_tls_verify` (`bool`) - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + * `service` (`dict`) - 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. + * `name` (`str`) - Name is the name of the service + * `namespace` (`str`) - Namespace is the namespace of the service + * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `version` (`str`) - Version is the API version this server hosts. For example, "v1" + * `version_priority` (`float`) - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + """ + status: pulumi.Output[dict] + """ + Status contains derived information about an API server + * `conditions` (`list`) - Current service state of apiService. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - Human-readable message indicating details about last transition. + * `reason` (`str`) - Unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`str`) - Status is the status of the condition. Can be True, False, Unknown. + * `type` (`str`) - Type is the type of the condition. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + APIService represents a server for a particular GroupVersion. Name must be "version.group". + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec contains information for locating and communicating with a server + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `ca_bundle` (`pulumi.Input[str]`) - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + * `group` (`pulumi.Input[str]`) - Group is the API group name this server hosts + * `group_priority_minimum` (`pulumi.Input[float]`) - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + * `insecure_skip_tls_verify` (`pulumi.Input[bool]`) - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + * `service` (`pulumi.Input[dict]`) - 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. + * `name` (`pulumi.Input[str]`) - Name is the name of the service + * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the service + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `version` (`pulumi.Input[str]`) - Version is the API version this server hosts. For example, "v1" + * `version_priority` (`pulumi.Input[float]`) - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration.k8s.io/v1beta1:APIService"), pulumi.Alias(type_="kubernetes:apiregistration/v1beta1:APIService"), pulumi.Alias(type_="kubernetes:apiregistration/v1:APIService")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(APIService, __self__).__init__( + 'kubernetes:apiregistration.k8s.io/v1:APIService', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing APIService resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return APIService(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py new file mode 100644 index 0000000000..9db1262d47 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py @@ -0,0 +1,165 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class APIServiceList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + APIServiceList is a list of APIService objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec contains information for locating and communicating with a server + * `ca_bundle` (`pulumi.Input[str]`) - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + * `group` (`pulumi.Input[str]`) - Group is the API group name this server hosts + * `group_priority_minimum` (`pulumi.Input[float]`) - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + * `insecure_skip_tls_verify` (`pulumi.Input[bool]`) - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + * `service` (`pulumi.Input[dict]`) - 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. + * `name` (`pulumi.Input[str]`) - Name is the name of the service + * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the service + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `version` (`pulumi.Input[str]`) - Version is the API version this server hosts. For example, "v1" + * `version_priority` (`pulumi.Input[float]`) - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + + * `status` (`pulumi.Input[dict]`) - Status contains derived information about an API server + * `conditions` (`pulumi.Input[list]`) - Current service state of apiService. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - Unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status is the status of the condition. Can be True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type is the type of the condition. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration/v1:APIServiceList")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(APIServiceList, __self__).__init__( + 'kubernetes:apiregistration.k8s.io/v1:APIServiceList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing APIServiceList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return APIServiceList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py deleted file mode 100755 index 6aaca5d41a..0000000000 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py +++ /dev/null @@ -1,116 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class APIService(pulumi.CustomResource): - """ - APIService represents a server for a particular GroupVersion. Name must be "version.group". - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec contains information for locating and communicating with a server - """ - - status: pulumi.Output[dict] - """ - Status contains derived information about an API server - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a APIService resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: - :param pulumi.Input[dict] spec: Spec contains information for locating and communicating with a server - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apiregistration.k8s.io/v1beta1' - __props__['kind'] = 'APIService' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apiregistration.k8s.io/v1:APIService"), - pulumi.Alias(type_="kubernetes:apiregistration/v1:APIService"), - pulumi.Alias(type_="kubernetes:apiregistration/v1beta1:APIService"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(APIService, self).__init__( - "kubernetes:apiregistration.k8s.io/v1beta1:APIService", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `APIService` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return APIService(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py deleted file mode 100755 index a604dccd34..0000000000 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +++ /dev/null @@ -1,109 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class APIServiceList(pulumi.CustomResource): - """ - APIServiceList is a list of APIService objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - - - metadata: pulumi.Output[dict] - - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a APIServiceList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apiregistration.k8s.io/v1beta1' - __props__['kind'] = 'APIServiceList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apiregistration/v1beta1:APIServiceList"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(APIServiceList, self).__init__( - "kubernetes:apiregistration.k8s.io/v1beta1:APIServiceList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `APIServiceList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return APIServiceList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py old mode 100755 new mode 100644 index 525186b6f9..db3b4deec8 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .APIService import (APIService) -from .APIServiceList import (APIServiceList) +from .api_service import * +from .api_service_list import * diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py new file mode 100644 index 0000000000..29b5ab54b5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py @@ -0,0 +1,170 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class APIService(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec contains information for locating and communicating with a server + * `ca_bundle` (`str`) - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + * `group` (`str`) - Group is the API group name this server hosts + * `group_priority_minimum` (`float`) - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + * `insecure_skip_tls_verify` (`bool`) - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + * `service` (`dict`) - 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. + * `name` (`str`) - Name is the name of the service + * `namespace` (`str`) - Namespace is the namespace of the service + * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `version` (`str`) - Version is the API version this server hosts. For example, "v1" + * `version_priority` (`float`) - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + """ + status: pulumi.Output[dict] + """ + Status contains derived information about an API server + * `conditions` (`list`) - Current service state of apiService. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - Human-readable message indicating details about last transition. + * `reason` (`str`) - Unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`str`) - Status is the status of the condition. Can be True, False, Unknown. + * `type` (`str`) - Type is the type of the condition. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + APIService represents a server for a particular GroupVersion. Name must be "version.group". + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec contains information for locating and communicating with a server + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `ca_bundle` (`pulumi.Input[str]`) - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + * `group` (`pulumi.Input[str]`) - Group is the API group name this server hosts + * `group_priority_minimum` (`pulumi.Input[float]`) - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + * `insecure_skip_tls_verify` (`pulumi.Input[bool]`) - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + * `service` (`pulumi.Input[dict]`) - 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. + * `name` (`pulumi.Input[str]`) - Name is the name of the service + * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the service + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `version` (`pulumi.Input[str]`) - Version is the API version this server hosts. For example, "v1" + * `version_priority` (`pulumi.Input[float]`) - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration.k8s.io/v1:APIService"), pulumi.Alias(type_="kubernetes:apiregistration/v1:APIService"), pulumi.Alias(type_="kubernetes:apiregistration/v1beta1:APIService")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(APIService, __self__).__init__( + 'kubernetes:apiregistration.k8s.io/v1beta1:APIService', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing APIService resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return APIService(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py new file mode 100644 index 0000000000..7b28dca275 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py @@ -0,0 +1,165 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class APIServiceList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + APIServiceList is a list of APIService objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec contains information for locating and communicating with a server + * `ca_bundle` (`pulumi.Input[str]`) - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. + * `group` (`pulumi.Input[str]`) - Group is the API group name this server hosts + * `group_priority_minimum` (`pulumi.Input[float]`) - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s + * `insecure_skip_tls_verify` (`pulumi.Input[bool]`) - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. + * `service` (`pulumi.Input[dict]`) - 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. + * `name` (`pulumi.Input[str]`) - Name is the name of the service + * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the service + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `version` (`pulumi.Input[str]`) - Version is the API version this server hosts. For example, "v1" + * `version_priority` (`pulumi.Input[float]`) - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. + + * `status` (`pulumi.Input[dict]`) - Status contains derived information about an API server + * `conditions` (`pulumi.Input[list]`) - Current service state of apiService. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - Unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status is the status of the condition. Can be True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type is the type of the condition. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration/v1beta1:APIServiceList")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(APIServiceList, __self__).__init__( + 'kubernetes:apiregistration.k8s.io/v1beta1:APIServiceList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing APIServiceList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return APIServiceList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/__init__.py b/sdk/python/pulumi_kubernetes/apps/__init__.py old mode 100755 new mode 100644 index 214214f60d..3b707f2a5c --- a/sdk/python/pulumi_kubernetes/apps/__init__.py +++ b/sdk/python/pulumi_kubernetes/apps/__init__.py @@ -1,10 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", - "v1beta1", - "v1beta2", -] +__all__ = ['v1', 'v1beta1', 'v1beta2'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py deleted file mode 100755 index 4a6a8c88ea..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py +++ /dev/null @@ -1,130 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ControllerRevision(pulumi.CustomResource): - """ - ControllerRevision implements an immutable snapshot of state data. Clients are responsible for - serializing and deserializing the objects that contain their internal state. Once a - ControllerRevision has been successfully created, it can not be updated. The API Server will - fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, - however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers - for update and rollback, this object is beta. However, it may be subject to name and - representation changes in future releases, and clients should not depend on its stability. It is - primarily for internal use by controllers. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - data: pulumi.Output[dict] - """ - Data is the serialized representation of the state. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - revision: pulumi.Output[int] - """ - Revision indicates the revision of the state represented by Data. - """ - - def __init__(self, resource_name, opts=None, revision=None, data=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ControllerRevision resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[int] revision: Revision indicates the revision of the state represented by Data. - :param pulumi.Input[dict] data: Data is the serialized representation of the state. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1' - __props__['kind'] = 'ControllerRevision' - if revision is None: - raise TypeError('Missing required property revision') - __props__['revision'] = revision - __props__['data'] = data - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1beta1:ControllerRevision"), - pulumi.Alias(type_="kubernetes:apps/v1beta2:ControllerRevision"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ControllerRevision, self).__init__( - "kubernetes:apps/v1:ControllerRevision", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ControllerRevision` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ControllerRevision(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py deleted file mode 100755 index a3c35b6bad..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ControllerRevisionList(pulumi.CustomResource): - """ - ControllerRevisionList is a resource containing a list of ControllerRevision objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of ControllerRevisions - """ - - metadata: pulumi.Output[dict] - """ - More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ControllerRevisionList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of ControllerRevisions - :param pulumi.Input[dict] metadata: More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1' - __props__['kind'] = 'ControllerRevisionList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ControllerRevisionList, self).__init__( - "kubernetes:apps/v1:ControllerRevisionList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ControllerRevisionList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ControllerRevisionList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py deleted file mode 100755 index ed666340d7..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py +++ /dev/null @@ -1,123 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class DaemonSet(pulumi.CustomResource): - """ - DaemonSet represents the configuration of a daemon set. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - The desired behavior of this daemon set. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - The current status of this daemon set. This data may be out of date by some window of time. - Populated by the system. Read-only. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a DaemonSet resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1' - __props__['kind'] = 'DaemonSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1beta2:DaemonSet"), - pulumi.Alias(type_="kubernetes:extensions/v1beta1:DaemonSet"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(DaemonSet, self).__init__( - "kubernetes:apps/v1:DaemonSet", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `DaemonSet` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return DaemonSet(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py deleted file mode 100755 index 66c009dea7..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class DaemonSetList(pulumi.CustomResource): - """ - DaemonSetList is a collection of daemon sets. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - A list of daemon sets. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a DaemonSetList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: A list of daemon sets. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1' - __props__['kind'] = 'DaemonSetList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(DaemonSetList, self).__init__( - "kubernetes:apps/v1:DaemonSetList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `DaemonSetList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return DaemonSetList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py deleted file mode 100755 index 756308d675..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py +++ /dev/null @@ -1,140 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Deployment(pulumi.CustomResource): - """ - Deployment enables declarative updates for Pods and ReplicaSets. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The Deployment has begun to be updated by the Deployment controller. If the current - generation of the Deployment is > 1, then this means that the current generation must - be different from the generation reported by the last outputs. - 2. There exists a ReplicaSet whose revision is equal to the current revision of the - Deployment. - 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' - member is set to 'True'. - 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type - 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is - 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, - because it doesn't do a rollout (i.e., it simply creates the Deployment and - corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. - - If the Deployment has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata. - """ - - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of the Deployment. - """ - - status: pulumi.Output[dict] - """ - Most recently observed status of the Deployment. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a Deployment resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object metadata. - :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1' - __props__['kind'] = 'Deployment' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1beta1:Deployment"), - pulumi.Alias(type_="kubernetes:apps/v1beta2:Deployment"), - pulumi.Alias(type_="kubernetes:extensions/v1beta1:Deployment"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(Deployment, self).__init__( - "kubernetes:apps/v1:Deployment", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Deployment` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Deployment(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py deleted file mode 100755 index 242ec8c993..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class DeploymentList(pulumi.CustomResource): - """ - DeploymentList is a list of Deployments. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of Deployments. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a DeploymentList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of Deployments. - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1' - __props__['kind'] = 'DeploymentList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(DeploymentList, self).__init__( - "kubernetes:apps/v1:DeploymentList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `DeploymentList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return DeploymentList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py deleted file mode 100755 index cf32dbffa4..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py +++ /dev/null @@ -1,125 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ReplicaSet(pulumi.CustomResource): - """ - ReplicaSet ensures that a specified number of pod replicas are running at any given time. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that - the ReplicaSet manages. Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec defines the specification of the desired behavior of the ReplicaSet. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Status is the most recently observed status of the ReplicaSet. This data may be out of date by - some window of time. Populated by the system. Read-only. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a ReplicaSet resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the - Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1' - __props__['kind'] = 'ReplicaSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1beta2:ReplicaSet"), - pulumi.Alias(type_="kubernetes:extensions/v1beta1:ReplicaSet"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ReplicaSet, self).__init__( - "kubernetes:apps/v1:ReplicaSet", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ReplicaSet` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ReplicaSet(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py deleted file mode 100755 index d13340808d..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py +++ /dev/null @@ -1,112 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ReplicaSetList(pulumi.CustomResource): - """ - ReplicaSetList is a collection of ReplicaSets. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of ReplicaSets. More info: - https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ReplicaSetList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of ReplicaSets. More info: - https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1' - __props__['kind'] = 'ReplicaSetList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ReplicaSetList, self).__init__( - "kubernetes:apps/v1:ReplicaSetList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ReplicaSetList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ReplicaSetList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py deleted file mode 100755 index 5362496c80..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py +++ /dev/null @@ -1,133 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class StatefulSet(pulumi.CustomResource): - """ - StatefulSet represents a set of pods with consistent identities. Identities are defined as: - - Network: A single stable DNS and hostname. - - Storage: As many VolumeClaims as requested. - The StatefulSet guarantees that a given network identity will always map to the same storage - identity. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', - and '.status.readyReplicas'. - 2. The value of '.status.updateRevision' matches '.status.currentRevision'. - - If the StatefulSet has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec defines the desired identities of pods in this set. - """ - - status: pulumi.Output[dict] - """ - Status is the current status of Pods in this StatefulSet. This data may be out of date by some - window of time. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a StatefulSet resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: - :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1' - __props__['kind'] = 'StatefulSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1beta1:StatefulSet"), - pulumi.Alias(type_="kubernetes:apps/v1beta2:StatefulSet"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(StatefulSet, self).__init__( - "kubernetes:apps/v1:StatefulSet", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `StatefulSet` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return StatefulSet(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py deleted file mode 100755 index 33796e9e85..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py +++ /dev/null @@ -1,104 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class StatefulSetList(pulumi.CustomResource): - """ - StatefulSetList is a collection of StatefulSets. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - - - metadata: pulumi.Output[dict] - - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a StatefulSetList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1' - __props__['kind'] = 'StatefulSetList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(StatefulSetList, self).__init__( - "kubernetes:apps/v1:StatefulSetList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `StatefulSetList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return StatefulSetList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/__init__.py b/sdk/python/pulumi_kubernetes/apps/v1/__init__.py old mode 100755 new mode 100644 index 5f8fb70a9c..9f887a9f82 --- a/sdk/python/pulumi_kubernetes/apps/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/__init__.py @@ -1,15 +1,15 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .ControllerRevision import (ControllerRevision) -from .ControllerRevisionList import (ControllerRevisionList) -from .DaemonSet import (DaemonSet) -from .DaemonSetList import (DaemonSetList) -from .Deployment import (Deployment) -from .DeploymentList import (DeploymentList) -from .ReplicaSet import (ReplicaSet) -from .ReplicaSetList import (ReplicaSetList) -from .StatefulSet import (StatefulSet) -from .StatefulSetList import (StatefulSetList) +from .controller_revision import * +from .controller_revision_list import * +from .daemon_set import * +from .daemon_set_list import * +from .deployment import * +from .deployment_list import * +from .replica_set import * +from .replica_set_list import * +from .stateful_set import * +from .stateful_set_list import * diff --git a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py new file mode 100644 index 0000000000..6c38a58738 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py @@ -0,0 +1,192 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ControllerRevision(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + data: pulumi.Output[dict] + """ + Data is the serialized representation of the state. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + revision: pulumi.Output[float] + """ + Revision indicates the revision of the state represented by Data. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, data=None, kind=None, metadata=None, revision=None, __props__=None, __name__=None, __opts__=None): + """ + ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[dict] data: Data is the serialized representation of the state. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[float] revision: Revision indicates the revision of the state represented by Data. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['data'] = data + __props__['kind'] = kind + __props__['metadata'] = metadata + if revision is None: + raise TypeError("Missing required property 'revision'") + __props__['revision'] = revision + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta1:ControllerRevision"), pulumi.Alias(type_="kubernetes:apps/v1beta2:ControllerRevision")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ControllerRevision, __self__).__init__( + 'kubernetes:apps/v1:ControllerRevision', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ControllerRevision resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ControllerRevision(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py new file mode 100644 index 0000000000..35471cea89 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py @@ -0,0 +1,211 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ControllerRevisionList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of ControllerRevisions + * `api_version` (`str`) - 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 + * `data` (`dict`) - Data is the serialized representation of the state. + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `revision` (`float`) - Revision indicates the revision of the state represented by Data. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ControllerRevisionList is a resource containing a list of ControllerRevision objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of ControllerRevisions + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `data` (`pulumi.Input[dict]`) - Data is the serialized representation of the state. + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `revision` (`pulumi.Input[float]`) - Revision indicates the revision of the state represented by Data. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ControllerRevisionList, __self__).__init__( + 'kubernetes:apps/v1:ControllerRevisionList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ControllerRevisionList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ControllerRevisionList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py new file mode 100644 index 0000000000..7bc044fa74 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py @@ -0,0 +1,1203 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DaemonSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * `revision_history_limit` (`float`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`dict`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`dict`) - An update strategy to replace existing DaemonSet pods with new pods. + * `rolling_update` (`dict`) - Rolling update config params. Present only if type = "RollingUpdate". + * `max_unavailable` (`dict`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + * `type` (`str`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. + """ + status: pulumi.Output[dict] + """ + The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `collision_count` (`float`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`list`) - Represents the latest available observations of a DaemonSet's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of DaemonSet condition. + + * `current_number_scheduled` (`float`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `desired_number_scheduled` (`float`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_available` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `number_misscheduled` (`float`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_ready` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + * `number_unavailable` (`float`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `observed_generation` (`float`) - The most recent generation observed by the daemon set controller. + * `updated_number_scheduled` (`float`) - The total number of nodes that are running updated daemon pod + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + DaemonSet represents the configuration of a daemon set. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `min_ready_seconds` (`pulumi.Input[float]`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`pulumi.Input[dict]`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`pulumi.Input[dict]`) - An update strategy to replace existing DaemonSet pods with new pods. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if type = "RollingUpdate". + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + * `type` (`pulumi.Input[str]`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta2:DaemonSet"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:DaemonSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(DaemonSet, __self__).__init__( + 'kubernetes:apps/v1:DaemonSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DaemonSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DaemonSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py new file mode 100644 index 0000000000..0292ff7662 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py @@ -0,0 +1,1193 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DaemonSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + A list of daemon sets. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * `revision_history_limit` (`float`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`dict`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`dict`) - An update strategy to replace existing DaemonSet pods with new pods. + * `rolling_update` (`dict`) - Rolling update config params. Present only if type = "RollingUpdate". + * `max_unavailable` (`dict`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + * `type` (`str`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. + + * `status` (`dict`) - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `collision_count` (`float`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`list`) - Represents the latest available observations of a DaemonSet's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of DaemonSet condition. + + * `current_number_scheduled` (`float`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `desired_number_scheduled` (`float`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_available` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `number_misscheduled` (`float`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_ready` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + * `number_unavailable` (`float`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `observed_generation` (`float`) - The most recent generation observed by the daemon set controller. + * `updated_number_scheduled` (`float`) - The total number of nodes that are running updated daemon pod + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DaemonSetList is a collection of daemon sets. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: A list of daemon sets. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`pulumi.Input[float]`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`pulumi.Input[dict]`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`pulumi.Input[dict]`) - An update strategy to replace existing DaemonSet pods with new pods. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if type = "RollingUpdate". + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + * `type` (`pulumi.Input[str]`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. + + * `status` (`pulumi.Input[dict]`) - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a DaemonSet's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of DaemonSet condition. + + * `current_number_scheduled` (`pulumi.Input[float]`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `desired_number_scheduled` (`pulumi.Input[float]`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_available` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `number_misscheduled` (`pulumi.Input[float]`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_ready` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + * `number_unavailable` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `observed_generation` (`pulumi.Input[float]`) - The most recent generation observed by the daemon set controller. + * `updated_number_scheduled` (`pulumi.Input[float]`) - The total number of nodes that are running updated daemon pod + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(DaemonSetList, __self__).__init__( + 'kubernetes:apps/v1:DaemonSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DaemonSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DaemonSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1/deployment.py new file mode 100644 index 0000000000..356dbef224 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/deployment.py @@ -0,0 +1,1232 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Deployment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of the Deployment. + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`bool`) - Indicates that the deployment is paused. + * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`dict`) - Template describes the pods that will be created. + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the Deployment. + * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `lastUpdateTime` (`str`) - The last time this condition was updated. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of deployment condition. + + * `observed_generation` (`float`) - The generation observed by the deployment controller. + * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. + * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Deployment enables declarative updates for Pods and ReplicaSets. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Deployment has begun to be updated by the Deployment controller. If the current + generation of the Deployment is > 1, then this means that the current generation must + be different from the generation reported by the last outputs. + 2. There exists a ReplicaSet whose revision is equal to the current revision of the + Deployment. + 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' + member is set to 'True'. + 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type + 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is + 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, + because it doesn't do a rollout (i.e., it simply creates the Deployment and + corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. + + If the Deployment has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. + :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused. + * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta2:Deployment"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:Deployment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Deployment, __self__).__init__( + 'kubernetes:apps/v1:Deployment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Deployment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Deployment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py new file mode 100644 index 0000000000..b48a5a0370 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py @@ -0,0 +1,1199 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DeploymentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Deployments. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the Deployment. + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`bool`) - Indicates that the deployment is paused. + * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`dict`) - Template describes the pods that will be created. + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `status` (`dict`) - Most recently observed status of the Deployment. + * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `lastUpdateTime` (`str`) - The last time this condition was updated. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of deployment condition. + + * `observed_generation` (`float`) - The generation observed by the deployment controller. + * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. + * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DeploymentList is a list of Deployments. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Deployments. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the Deployment. + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused. + * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `status` (`pulumi.Input[dict]`) - Most recently observed status of the Deployment. + * `available_replicas` (`pulumi.Input[float]`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a deployment's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `lastUpdateTime` (`pulumi.Input[str]`) - The last time this condition was updated. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of deployment condition. + + * `observed_generation` (`pulumi.Input[float]`) - The generation observed by the deployment controller. + * `ready_replicas` (`pulumi.Input[float]`) - Total number of ready pods targeted by this deployment. + * `replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * `unavailable_replicas` (`pulumi.Input[float]`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + * `updated_replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(DeploymentList, __self__).__init__( + 'kubernetes:apps/v1:DeploymentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DeploymentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DeploymentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py b/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py new file mode 100644 index 0000000000..8cb44e9efc --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py @@ -0,0 +1,1187 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ReplicaSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * `selector` (`dict`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + """ + status: pulumi.Output[dict] + """ + Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. + * `conditions` (`list`) - Represents the latest available observations of a replica set's current state. + * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of replica set condition. + + * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replicaset. + * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + * `ready_replicas` (`float`) - The number of ready replicas for this replica set. + * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicaSet ensures that a specified number of pod replicas are running at any given time. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta2:ReplicaSet"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:ReplicaSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ReplicaSet, __self__).__init__( + 'kubernetes:apps/v1:ReplicaSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicaSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicaSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py new file mode 100644 index 0000000000..630a0df81c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py @@ -0,0 +1,1173 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ReplicaSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * `selector` (`dict`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `status` (`dict`) - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. + * `conditions` (`list`) - Represents the latest available observations of a replica set's current state. + * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of replica set condition. + + * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replicaset. + * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + * `ready_replicas` (`float`) - The number of ready replicas for this replica set. + * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicaSetList is a collection of ReplicaSets. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `status` (`pulumi.Input[dict]`) - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `available_replicas` (`pulumi.Input[float]`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a replica set's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - The last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of replica set condition. + + * `fully_labeled_replicas` (`pulumi.Input[float]`) - The number of pods that have labels matching the labels of the pod template of the replicaset. + * `observed_generation` (`pulumi.Input[float]`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + * `ready_replicas` (`pulumi.Input[float]`) - The number of ready replicas for this replica set. + * `replicas` (`pulumi.Input[float]`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ReplicaSetList, __self__).__init__( + 'kubernetes:apps/v1:ReplicaSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicaSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicaSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py new file mode 100644 index 0000000000..b06ba7a0ea --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py @@ -0,0 +1,1232 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StatefulSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec defines the desired identities of pods in this set. + * `pod_management_policy` (`str`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + * `replicas` (`float`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + * `revision_history_limit` (`float`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + * `selector` (`dict`) - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `service_name` (`str`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. + * `template` (`dict`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`dict`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * `rolling_update` (`dict`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * `partition` (`float`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. + + * `type` (`str`) - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + + * `volume_claim_templates` (`list`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`list`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `data_source` (`dict`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `resources` (`dict`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `selector` (`dict`) - A label query over volumes to consider for binding. + * `storage_class_name` (`str`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * `volume_mode` (`str`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * `volume_name` (`str`) - VolumeName is the binding reference to the PersistentVolume backing this claim. + + * `status` (`dict`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`list`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `capacity` (`dict`) - Represents the actual resources of the underlying volume. + * `conditions` (`list`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + * `lastProbeTime` (`str`) - Last time we probed the condition. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - Human-readable message indicating details about last transition. + * `reason` (`str`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. + * `status` (`str`) + * `type` (`str`) + + * `phase` (`str`) - Phase represents the current phase of PersistentVolumeClaim. + """ + status: pulumi.Output[dict] + """ + Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + * `collision_count` (`float`) - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`list`) - Represents the latest available observations of a statefulset's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of statefulset condition. + + * `current_replicas` (`float`) - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + * `current_revision` (`str`) - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + * `observed_generation` (`float`) - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + * `ready_replicas` (`float`) - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + * `replicas` (`float`) - replicas is the number of Pods created by the StatefulSet controller. + * `update_revision` (`str`) - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + * `updated_replicas` (`float`) - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + StatefulSet represents a set of pods with consistent identities. Identities are defined as: + - Network: A single stable DNS and hostname. + - Storage: As many VolumeClaims as requested. + The StatefulSet guarantees that a given network identity will always map to the same storage identity. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', + and '.status.readyReplicas'. + 2. The value of '.status.updateRevision' matches '.status.currentRevision'. + + If the StatefulSet has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `pod_management_policy` (`pulumi.Input[str]`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + * `replicas` (`pulumi.Input[float]`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + * `selector` (`pulumi.Input[dict]`) - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `service_name` (`pulumi.Input[str]`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. + * `template` (`pulumi.Input[dict]`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`pulumi.Input[dict]`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * `rolling_update` (`pulumi.Input[dict]`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * `partition` (`pulumi.Input[float]`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. + + * `type` (`pulumi.Input[str]`) - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + + * `volume_claim_templates` (`pulumi.Input[list]`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. + * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. + + * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. + * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. + * `status` (`pulumi.Input[str]`) + * `type` (`pulumi.Input[str]`) + + * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta1:StatefulSet"), pulumi.Alias(type_="kubernetes:apps/v1beta2:StatefulSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(StatefulSet, __self__).__init__( + 'kubernetes:apps/v1:StatefulSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StatefulSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StatefulSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py new file mode 100644 index 0000000000..1c966b6b78 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py @@ -0,0 +1,667 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StatefulSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + StatefulSetList is a collection of StatefulSets. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the desired identities of pods in this set. + * `pod_management_policy` (`pulumi.Input[str]`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + * `replicas` (`pulumi.Input[float]`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + * `selector` (`pulumi.Input[dict]`) - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `service_name` (`pulumi.Input[str]`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. + * `template` (`pulumi.Input[dict]`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`pulumi.Input[dict]`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * `rolling_update` (`pulumi.Input[dict]`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * `partition` (`pulumi.Input[float]`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. + + * `type` (`pulumi.Input[str]`) - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + + * `volume_claim_templates` (`pulumi.Input[list]`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. + * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. + + * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. + * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. + * `status` (`pulumi.Input[str]`) + * `type` (`pulumi.Input[str]`) + + * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. + + * `status` (`pulumi.Input[dict]`) - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + * `collision_count` (`pulumi.Input[float]`) - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a statefulset's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of statefulset condition. + + * `current_replicas` (`pulumi.Input[float]`) - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + * `current_revision` (`pulumi.Input[str]`) - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + * `observed_generation` (`pulumi.Input[float]`) - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + * `ready_replicas` (`pulumi.Input[float]`) - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + * `replicas` (`pulumi.Input[float]`) - replicas is the number of Pods created by the StatefulSet controller. + * `update_revision` (`pulumi.Input[str]`) - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + * `updated_replicas` (`pulumi.Input[float]`) - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(StatefulSetList, __self__).__init__( + 'kubernetes:apps/v1:StatefulSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StatefulSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StatefulSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py deleted file mode 100755 index 974113a723..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +++ /dev/null @@ -1,133 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ControllerRevision(pulumi.CustomResource): - """ - DEPRECATED - apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not - supported by Kubernetes v1.16+ clusters. - - ControllerRevision implements an immutable snapshot of state data. Clients are responsible for - serializing and deserializing the objects that contain their internal state. Once a - ControllerRevision has been successfully created, it can not be updated. The API Server will - fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, - however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers - for update and rollback, this object is beta. However, it may be subject to name and - representation changes in future releases, and clients should not depend on its stability. It is - primarily for internal use by controllers. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - data: pulumi.Output[dict] - """ - Data is the serialized representation of the state. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - revision: pulumi.Output[int] - """ - Revision indicates the revision of the state represented by Data. - """ - - def __init__(self, resource_name, opts=None, revision=None, data=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ControllerRevision resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[int] revision: Revision indicates the revision of the state represented by Data. - :param pulumi.Input[dict] data: Data is the serialized representation of the state. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta1' - __props__['kind'] = 'ControllerRevision' - if revision is None: - raise TypeError('Missing required property revision') - __props__['revision'] = revision - __props__['data'] = data - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1:ControllerRevision"), - pulumi.Alias(type_="kubernetes:apps/v1beta2:ControllerRevision"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ControllerRevision, self).__init__( - "kubernetes:apps/v1beta1:ControllerRevision", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ControllerRevision` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ControllerRevision(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py deleted file mode 100755 index b2026935f9..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ControllerRevisionList(pulumi.CustomResource): - """ - ControllerRevisionList is a resource containing a list of ControllerRevision objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of ControllerRevisions - """ - - metadata: pulumi.Output[dict] - """ - More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ControllerRevisionList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of ControllerRevisions - :param pulumi.Input[dict] metadata: More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta1' - __props__['kind'] = 'ControllerRevisionList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ControllerRevisionList, self).__init__( - "kubernetes:apps/v1beta1:ControllerRevisionList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ControllerRevisionList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ControllerRevisionList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py deleted file mode 100755 index f5d4cb8a4d..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py +++ /dev/null @@ -1,143 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Deployment(pulumi.CustomResource): - """ - DEPRECATED - apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by - Kubernetes v1.16+ clusters. - - Deployment enables declarative updates for Pods and ReplicaSets. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The Deployment has begun to be updated by the Deployment controller. If the current - generation of the Deployment is > 1, then this means that the current generation must - be different from the generation reported by the last outputs. - 2. There exists a ReplicaSet whose revision is equal to the current revision of the - Deployment. - 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' - member is set to 'True'. - 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type - 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is - 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, - because it doesn't do a rollout (i.e., it simply creates the Deployment and - corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. - - If the Deployment has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata. - """ - - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of the Deployment. - """ - - status: pulumi.Output[dict] - """ - Most recently observed status of the Deployment. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a Deployment resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object metadata. - :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta1' - __props__['kind'] = 'Deployment' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1:Deployment"), - pulumi.Alias(type_="kubernetes:apps/v1beta2:Deployment"), - pulumi.Alias(type_="kubernetes:extensions/v1beta1:Deployment"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(Deployment, self).__init__( - "kubernetes:apps/v1beta1:Deployment", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Deployment` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Deployment(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py deleted file mode 100755 index a316894ed0..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class DeploymentList(pulumi.CustomResource): - """ - DeploymentList is a list of Deployments. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of Deployments. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a DeploymentList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of Deployments. - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta1' - __props__['kind'] = 'DeploymentList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(DeploymentList, self).__init__( - "kubernetes:apps/v1beta1:DeploymentList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `DeploymentList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return DeploymentList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py deleted file mode 100755 index 9145a2b337..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py +++ /dev/null @@ -1,136 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class StatefulSet(pulumi.CustomResource): - """ - DEPRECATED - apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by - Kubernetes v1.16+ clusters. - - StatefulSet represents a set of pods with consistent identities. Identities are defined as: - - Network: A single stable DNS and hostname. - - Storage: As many VolumeClaims as requested. - The StatefulSet guarantees that a given network identity will always map to the same storage - identity. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', - and '.status.readyReplicas'. - 2. The value of '.status.updateRevision' matches '.status.currentRevision'. - - If the StatefulSet has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec defines the desired identities of pods in this set. - """ - - status: pulumi.Output[dict] - """ - Status is the current status of Pods in this StatefulSet. This data may be out of date by some - window of time. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a StatefulSet resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: - :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta1' - __props__['kind'] = 'StatefulSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1:StatefulSet"), - pulumi.Alias(type_="kubernetes:apps/v1beta2:StatefulSet"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(StatefulSet, self).__init__( - "kubernetes:apps/v1beta1:StatefulSet", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `StatefulSet` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return StatefulSet(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py deleted file mode 100755 index cc2b242f05..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +++ /dev/null @@ -1,104 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class StatefulSetList(pulumi.CustomResource): - """ - StatefulSetList is a collection of StatefulSets. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - - - metadata: pulumi.Output[dict] - - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a StatefulSetList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta1' - __props__['kind'] = 'StatefulSetList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(StatefulSetList, self).__init__( - "kubernetes:apps/v1beta1:StatefulSetList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `StatefulSetList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return StatefulSetList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py old mode 100755 new mode 100644 index 7fd0188b63..75bdbdad55 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py @@ -1,11 +1,11 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .ControllerRevision import (ControllerRevision) -from .ControllerRevisionList import (ControllerRevisionList) -from .Deployment import (Deployment) -from .DeploymentList import (DeploymentList) -from .StatefulSet import (StatefulSet) -from .StatefulSetList import (StatefulSetList) +from .controller_revision import * +from .controller_revision_list import * +from .deployment import * +from .deployment_list import * +from .stateful_set import * +from .stateful_set_list import * diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py new file mode 100644 index 0000000000..f9f83cf750 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py @@ -0,0 +1,195 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + +class ControllerRevision(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + data: pulumi.Output[dict] + """ + Data is the serialized representation of the state. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + revision: pulumi.Output[float] + """ + Revision indicates the revision of the state represented by Data. + """ + warnings.warn("apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, data=None, kind=None, metadata=None, revision=None, __props__=None, __name__=None, __opts__=None): + """ + ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[dict] data: Data is the serialized representation of the state. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[float] revision: Revision indicates the revision of the state represented by Data. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + pulumi.log.warn("ControllerRevision is deprecated: apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['data'] = data + __props__['kind'] = kind + __props__['metadata'] = metadata + if revision is None: + raise TypeError("Missing required property 'revision'") + __props__['revision'] = revision + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:ControllerRevision"), pulumi.Alias(type_="kubernetes:apps/v1beta2:ControllerRevision")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ControllerRevision, __self__).__init__( + 'kubernetes:apps/v1beta1:ControllerRevision', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ControllerRevision resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ControllerRevision(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py new file mode 100644 index 0000000000..1f0e9c7c56 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py @@ -0,0 +1,211 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ControllerRevisionList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of ControllerRevisions + * `api_version` (`str`) - 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 + * `data` (`dict`) - Data is the serialized representation of the state. + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `revision` (`float`) - Revision indicates the revision of the state represented by Data. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ControllerRevisionList is a resource containing a list of ControllerRevision objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of ControllerRevisions + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `data` (`pulumi.Input[dict]`) - Data is the serialized representation of the state. + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `revision` (`pulumi.Input[float]`) - Revision indicates the revision of the state represented by Data. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ControllerRevisionList, __self__).__init__( + 'kubernetes:apps/v1beta1:ControllerRevisionList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ControllerRevisionList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ControllerRevisionList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py new file mode 100644 index 0000000000..db614d8639 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py @@ -0,0 +1,1241 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + +class Deployment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of the Deployment. + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`bool`) - Indicates that the deployment is paused. + * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. + * `rollback_to` (`dict`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + * `revision` (`float`) - The revision to rollback to. If set to 0, rollback to the last revision. + + * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`dict`) - Template describes the pods that will be created. + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the Deployment. + * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `lastUpdateTime` (`str`) - The last time this condition was updated. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of deployment condition. + + * `observed_generation` (`float`) - The generation observed by the deployment controller. + * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. + * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """ + warnings.warn("apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Deployment enables declarative updates for Pods and ReplicaSets. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Deployment has begun to be updated by the Deployment controller. If the current + generation of the Deployment is > 1, then this means that the current generation must + be different from the generation reported by the last outputs. + 2. There exists a ReplicaSet whose revision is equal to the current revision of the + Deployment. + 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' + member is set to 'True'. + 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type + 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is + 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, + because it doesn't do a rollout (i.e., it simply creates the Deployment and + corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. + + If the Deployment has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. + :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused. + * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. + * `rollback_to` (`pulumi.Input[dict]`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + * `revision` (`pulumi.Input[float]`) - The revision to rollback to. If set to 0, rollback to the last revision. + + * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + """ + pulumi.log.warn("Deployment is deprecated: apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta2:Deployment"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:Deployment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Deployment, __self__).__init__( + 'kubernetes:apps/v1beta1:Deployment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Deployment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Deployment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py new file mode 100644 index 0000000000..76a9703560 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py @@ -0,0 +1,1205 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DeploymentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Deployments. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the Deployment. + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`bool`) - Indicates that the deployment is paused. + * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. + * `rollback_to` (`dict`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + * `revision` (`float`) - The revision to rollback to. If set to 0, rollback to the last revision. + + * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`dict`) - Template describes the pods that will be created. + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `status` (`dict`) - Most recently observed status of the Deployment. + * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `lastUpdateTime` (`str`) - The last time this condition was updated. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of deployment condition. + + * `observed_generation` (`float`) - The generation observed by the deployment controller. + * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. + * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DeploymentList is a list of Deployments. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Deployments. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the Deployment. + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused. + * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. + * `rollback_to` (`pulumi.Input[dict]`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + * `revision` (`pulumi.Input[float]`) - The revision to rollback to. If set to 0, rollback to the last revision. + + * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `status` (`pulumi.Input[dict]`) - Most recently observed status of the Deployment. + * `available_replicas` (`pulumi.Input[float]`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a deployment's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `lastUpdateTime` (`pulumi.Input[str]`) - The last time this condition was updated. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of deployment condition. + + * `observed_generation` (`pulumi.Input[float]`) - The generation observed by the deployment controller. + * `ready_replicas` (`pulumi.Input[float]`) - Total number of ready pods targeted by this deployment. + * `replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * `unavailable_replicas` (`pulumi.Input[float]`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + * `updated_replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(DeploymentList, __self__).__init__( + 'kubernetes:apps/v1beta1:DeploymentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DeploymentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DeploymentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py new file mode 100644 index 0000000000..2ca6f3eaab --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py @@ -0,0 +1,1235 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + +class StatefulSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec defines the desired identities of pods in this set. + * `pod_management_policy` (`str`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + * `replicas` (`float`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + * `revision_history_limit` (`float`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + * `selector` (`dict`) - selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `service_name` (`str`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. + * `template` (`dict`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`dict`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * `rolling_update` (`dict`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * `partition` (`float`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. + + * `type` (`str`) - Type indicates the type of the StatefulSetUpdateStrategy. + + * `volume_claim_templates` (`list`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`list`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `data_source` (`dict`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `resources` (`dict`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `selector` (`dict`) - A label query over volumes to consider for binding. + * `storage_class_name` (`str`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * `volume_mode` (`str`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * `volume_name` (`str`) - VolumeName is the binding reference to the PersistentVolume backing this claim. + + * `status` (`dict`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`list`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `capacity` (`dict`) - Represents the actual resources of the underlying volume. + * `conditions` (`list`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + * `lastProbeTime` (`str`) - Last time we probed the condition. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - Human-readable message indicating details about last transition. + * `reason` (`str`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. + * `status` (`str`) + * `type` (`str`) + + * `phase` (`str`) - Phase represents the current phase of PersistentVolumeClaim. + """ + status: pulumi.Output[dict] + """ + Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + * `collision_count` (`float`) - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`list`) - Represents the latest available observations of a statefulset's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of statefulset condition. + + * `current_replicas` (`float`) - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + * `current_revision` (`str`) - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + * `observed_generation` (`float`) - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + * `ready_replicas` (`float`) - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + * `replicas` (`float`) - replicas is the number of Pods created by the StatefulSet controller. + * `update_revision` (`str`) - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + * `updated_replicas` (`float`) - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + """ + warnings.warn("apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + StatefulSet represents a set of pods with consistent identities. Identities are defined as: + - Network: A single stable DNS and hostname. + - Storage: As many VolumeClaims as requested. + The StatefulSet guarantees that a given network identity will always map to the same storage identity. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', + and '.status.readyReplicas'. + 2. The value of '.status.updateRevision' matches '.status.currentRevision'. + + If the StatefulSet has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `pod_management_policy` (`pulumi.Input[str]`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + * `replicas` (`pulumi.Input[float]`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + * `selector` (`pulumi.Input[dict]`) - selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `service_name` (`pulumi.Input[str]`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. + * `template` (`pulumi.Input[dict]`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`pulumi.Input[dict]`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * `rolling_update` (`pulumi.Input[dict]`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * `partition` (`pulumi.Input[float]`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. + + * `type` (`pulumi.Input[str]`) - Type indicates the type of the StatefulSetUpdateStrategy. + + * `volume_claim_templates` (`pulumi.Input[list]`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. + * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. + + * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. + * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. + * `status` (`pulumi.Input[str]`) + * `type` (`pulumi.Input[str]`) + + * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. + """ + pulumi.log.warn("StatefulSet is deprecated: apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:StatefulSet"), pulumi.Alias(type_="kubernetes:apps/v1beta2:StatefulSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(StatefulSet, __self__).__init__( + 'kubernetes:apps/v1beta1:StatefulSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StatefulSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StatefulSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py new file mode 100644 index 0000000000..906fe9c144 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py @@ -0,0 +1,667 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StatefulSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + StatefulSetList is a collection of StatefulSets. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the desired identities of pods in this set. + * `pod_management_policy` (`pulumi.Input[str]`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + * `replicas` (`pulumi.Input[float]`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + * `selector` (`pulumi.Input[dict]`) - selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `service_name` (`pulumi.Input[str]`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. + * `template` (`pulumi.Input[dict]`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`pulumi.Input[dict]`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * `rolling_update` (`pulumi.Input[dict]`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * `partition` (`pulumi.Input[float]`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. + + * `type` (`pulumi.Input[str]`) - Type indicates the type of the StatefulSetUpdateStrategy. + + * `volume_claim_templates` (`pulumi.Input[list]`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. + * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. + + * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. + * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. + * `status` (`pulumi.Input[str]`) + * `type` (`pulumi.Input[str]`) + + * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. + + * `status` (`pulumi.Input[dict]`) - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + * `collision_count` (`pulumi.Input[float]`) - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a statefulset's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of statefulset condition. + + * `current_replicas` (`pulumi.Input[float]`) - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + * `current_revision` (`pulumi.Input[str]`) - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + * `observed_generation` (`pulumi.Input[float]`) - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + * `ready_replicas` (`pulumi.Input[float]`) - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + * `replicas` (`pulumi.Input[float]`) - replicas is the number of Pods created by the StatefulSet controller. + * `update_revision` (`pulumi.Input[str]`) - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + * `updated_replicas` (`pulumi.Input[float]`) - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(StatefulSetList, __self__).__init__( + 'kubernetes:apps/v1beta1:StatefulSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StatefulSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StatefulSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py deleted file mode 100755 index c40ad9d61f..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +++ /dev/null @@ -1,133 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ControllerRevision(pulumi.CustomResource): - """ - DEPRECATED - apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not - supported by Kubernetes v1.16+ clusters. - - ControllerRevision implements an immutable snapshot of state data. Clients are responsible for - serializing and deserializing the objects that contain their internal state. Once a - ControllerRevision has been successfully created, it can not be updated. The API Server will - fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, - however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers - for update and rollback, this object is beta. However, it may be subject to name and - representation changes in future releases, and clients should not depend on its stability. It is - primarily for internal use by controllers. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - data: pulumi.Output[dict] - """ - Data is the serialized representation of the state. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - revision: pulumi.Output[int] - """ - Revision indicates the revision of the state represented by Data. - """ - - def __init__(self, resource_name, opts=None, revision=None, data=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ControllerRevision resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[int] revision: Revision indicates the revision of the state represented by Data. - :param pulumi.Input[dict] data: Data is the serialized representation of the state. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta2' - __props__['kind'] = 'ControllerRevision' - if revision is None: - raise TypeError('Missing required property revision') - __props__['revision'] = revision - __props__['data'] = data - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1:ControllerRevision"), - pulumi.Alias(type_="kubernetes:apps/v1beta1:ControllerRevision"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ControllerRevision, self).__init__( - "kubernetes:apps/v1beta2:ControllerRevision", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ControllerRevision` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ControllerRevision(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py deleted file mode 100755 index d910f58900..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ControllerRevisionList(pulumi.CustomResource): - """ - ControllerRevisionList is a resource containing a list of ControllerRevision objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of ControllerRevisions - """ - - metadata: pulumi.Output[dict] - """ - More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ControllerRevisionList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of ControllerRevisions - :param pulumi.Input[dict] metadata: More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta2' - __props__['kind'] = 'ControllerRevisionList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ControllerRevisionList, self).__init__( - "kubernetes:apps/v1beta2:ControllerRevisionList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ControllerRevisionList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ControllerRevisionList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py deleted file mode 100755 index 4c670c78fa..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py +++ /dev/null @@ -1,126 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class DaemonSet(pulumi.CustomResource): - """ - DEPRECATED - apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by - Kubernetes v1.16+ clusters. - - DaemonSet represents the configuration of a daemon set. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - The desired behavior of this daemon set. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - The current status of this daemon set. This data may be out of date by some window of time. - Populated by the system. Read-only. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a DaemonSet resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta2' - __props__['kind'] = 'DaemonSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1:DaemonSet"), - pulumi.Alias(type_="kubernetes:extensions/v1beta1:DaemonSet"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(DaemonSet, self).__init__( - "kubernetes:apps/v1beta2:DaemonSet", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `DaemonSet` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return DaemonSet(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py deleted file mode 100755 index 74985293d4..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class DaemonSetList(pulumi.CustomResource): - """ - DaemonSetList is a collection of daemon sets. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - A list of daemon sets. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a DaemonSetList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: A list of daemon sets. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta2' - __props__['kind'] = 'DaemonSetList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(DaemonSetList, self).__init__( - "kubernetes:apps/v1beta2:DaemonSetList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `DaemonSetList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return DaemonSetList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py deleted file mode 100755 index 6a7f52a7b7..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py +++ /dev/null @@ -1,143 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Deployment(pulumi.CustomResource): - """ - DEPRECATED - apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by - Kubernetes v1.16+ clusters. - - Deployment enables declarative updates for Pods and ReplicaSets. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The Deployment has begun to be updated by the Deployment controller. If the current - generation of the Deployment is > 1, then this means that the current generation must - be different from the generation reported by the last outputs. - 2. There exists a ReplicaSet whose revision is equal to the current revision of the - Deployment. - 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' - member is set to 'True'. - 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type - 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is - 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, - because it doesn't do a rollout (i.e., it simply creates the Deployment and - corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. - - If the Deployment has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata. - """ - - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of the Deployment. - """ - - status: pulumi.Output[dict] - """ - Most recently observed status of the Deployment. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a Deployment resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object metadata. - :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta2' - __props__['kind'] = 'Deployment' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1:Deployment"), - pulumi.Alias(type_="kubernetes:apps/v1beta1:Deployment"), - pulumi.Alias(type_="kubernetes:extensions/v1beta1:Deployment"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(Deployment, self).__init__( - "kubernetes:apps/v1beta2:Deployment", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Deployment` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Deployment(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py deleted file mode 100755 index 2ba63a07ac..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class DeploymentList(pulumi.CustomResource): - """ - DeploymentList is a list of Deployments. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of Deployments. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a DeploymentList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of Deployments. - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta2' - __props__['kind'] = 'DeploymentList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(DeploymentList, self).__init__( - "kubernetes:apps/v1beta2:DeploymentList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `DeploymentList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return DeploymentList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py deleted file mode 100755 index a9482519bf..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +++ /dev/null @@ -1,128 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ReplicaSet(pulumi.CustomResource): - """ - DEPRECATED - apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by - Kubernetes v1.16+ clusters. - - ReplicaSet ensures that a specified number of pod replicas are running at any given time. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that - the ReplicaSet manages. Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec defines the specification of the desired behavior of the ReplicaSet. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Status is the most recently observed status of the ReplicaSet. This data may be out of date by - some window of time. Populated by the system. Read-only. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a ReplicaSet resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the - Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta2' - __props__['kind'] = 'ReplicaSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1:ReplicaSet"), - pulumi.Alias(type_="kubernetes:extensions/v1beta1:ReplicaSet"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ReplicaSet, self).__init__( - "kubernetes:apps/v1beta2:ReplicaSet", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ReplicaSet` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ReplicaSet(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py deleted file mode 100755 index 664cad97a0..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +++ /dev/null @@ -1,112 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ReplicaSetList(pulumi.CustomResource): - """ - ReplicaSetList is a collection of ReplicaSets. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of ReplicaSets. More info: - https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ReplicaSetList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of ReplicaSets. More info: - https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta2' - __props__['kind'] = 'ReplicaSetList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ReplicaSetList, self).__init__( - "kubernetes:apps/v1beta2:ReplicaSetList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ReplicaSetList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ReplicaSetList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py deleted file mode 100755 index bb98641e99..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py +++ /dev/null @@ -1,136 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class StatefulSet(pulumi.CustomResource): - """ - DEPRECATED - apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by - Kubernetes v1.16+ clusters. - - StatefulSet represents a set of pods with consistent identities. Identities are defined as: - - Network: A single stable DNS and hostname. - - Storage: As many VolumeClaims as requested. - The StatefulSet guarantees that a given network identity will always map to the same storage - identity. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', - and '.status.readyReplicas'. - 2. The value of '.status.updateRevision' matches '.status.currentRevision'. - - If the StatefulSet has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec defines the desired identities of pods in this set. - """ - - status: pulumi.Output[dict] - """ - Status is the current status of Pods in this StatefulSet. This data may be out of date by some - window of time. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a StatefulSet resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: - :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta2' - __props__['kind'] = 'StatefulSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1:StatefulSet"), - pulumi.Alias(type_="kubernetes:apps/v1beta1:StatefulSet"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(StatefulSet, self).__init__( - "kubernetes:apps/v1beta2:StatefulSet", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `StatefulSet` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return StatefulSet(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py deleted file mode 100755 index 39e9db3d5a..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +++ /dev/null @@ -1,104 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class StatefulSetList(pulumi.CustomResource): - """ - StatefulSetList is a collection of StatefulSets. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - - - metadata: pulumi.Output[dict] - - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a StatefulSetList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'apps/v1beta2' - __props__['kind'] = 'StatefulSetList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(StatefulSetList, self).__init__( - "kubernetes:apps/v1beta2:StatefulSetList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `StatefulSetList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return StatefulSetList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py old mode 100755 new mode 100644 index 5f8fb70a9c..9f887a9f82 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py @@ -1,15 +1,15 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .ControllerRevision import (ControllerRevision) -from .ControllerRevisionList import (ControllerRevisionList) -from .DaemonSet import (DaemonSet) -from .DaemonSetList import (DaemonSetList) -from .Deployment import (Deployment) -from .DeploymentList import (DeploymentList) -from .ReplicaSet import (ReplicaSet) -from .ReplicaSetList import (ReplicaSetList) -from .StatefulSet import (StatefulSet) -from .StatefulSetList import (StatefulSetList) +from .controller_revision import * +from .controller_revision_list import * +from .daemon_set import * +from .daemon_set_list import * +from .deployment import * +from .deployment_list import * +from .replica_set import * +from .replica_set_list import * +from .stateful_set import * +from .stateful_set_list import * diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py new file mode 100644 index 0000000000..8309c1d6a4 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py @@ -0,0 +1,195 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + +class ControllerRevision(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + data: pulumi.Output[dict] + """ + Data is the serialized representation of the state. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + revision: pulumi.Output[float] + """ + Revision indicates the revision of the state represented by Data. + """ + warnings.warn("apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, data=None, kind=None, metadata=None, revision=None, __props__=None, __name__=None, __opts__=None): + """ + ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[dict] data: Data is the serialized representation of the state. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[float] revision: Revision indicates the revision of the state represented by Data. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + pulumi.log.warn("ControllerRevision is deprecated: apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['data'] = data + __props__['kind'] = kind + __props__['metadata'] = metadata + if revision is None: + raise TypeError("Missing required property 'revision'") + __props__['revision'] = revision + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:ControllerRevision"), pulumi.Alias(type_="kubernetes:apps/v1beta1:ControllerRevision")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ControllerRevision, __self__).__init__( + 'kubernetes:apps/v1beta2:ControllerRevision', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ControllerRevision resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ControllerRevision(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py new file mode 100644 index 0000000000..a9193503ff --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py @@ -0,0 +1,211 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ControllerRevisionList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of ControllerRevisions + * `api_version` (`str`) - 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 + * `data` (`dict`) - Data is the serialized representation of the state. + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `revision` (`float`) - Revision indicates the revision of the state represented by Data. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ControllerRevisionList is a resource containing a list of ControllerRevision objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of ControllerRevisions + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `data` (`pulumi.Input[dict]`) - Data is the serialized representation of the state. + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `revision` (`pulumi.Input[float]`) - Revision indicates the revision of the state represented by Data. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ControllerRevisionList, __self__).__init__( + 'kubernetes:apps/v1beta2:ControllerRevisionList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ControllerRevisionList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ControllerRevisionList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py new file mode 100644 index 0000000000..f0ac233697 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py @@ -0,0 +1,1206 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + +class DaemonSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * `revision_history_limit` (`float`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`dict`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`dict`) - An update strategy to replace existing DaemonSet pods with new pods. + * `rolling_update` (`dict`) - Rolling update config params. Present only if type = "RollingUpdate". + * `max_unavailable` (`dict`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + * `type` (`str`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. + """ + status: pulumi.Output[dict] + """ + The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `collision_count` (`float`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`list`) - Represents the latest available observations of a DaemonSet's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of DaemonSet condition. + + * `current_number_scheduled` (`float`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `desired_number_scheduled` (`float`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_available` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `number_misscheduled` (`float`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_ready` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + * `number_unavailable` (`float`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `observed_generation` (`float`) - The most recent generation observed by the daemon set controller. + * `updated_number_scheduled` (`float`) - The total number of nodes that are running updated daemon pod + """ + warnings.warn("apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + DaemonSet represents the configuration of a daemon set. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `min_ready_seconds` (`pulumi.Input[float]`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`pulumi.Input[dict]`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`pulumi.Input[dict]`) - An update strategy to replace existing DaemonSet pods with new pods. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if type = "RollingUpdate". + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + * `type` (`pulumi.Input[str]`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. + """ + pulumi.log.warn("DaemonSet is deprecated: apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:DaemonSet"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:DaemonSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(DaemonSet, __self__).__init__( + 'kubernetes:apps/v1beta2:DaemonSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DaemonSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DaemonSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py new file mode 100644 index 0000000000..9b38cd4be8 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py @@ -0,0 +1,1193 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DaemonSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + A list of daemon sets. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * `revision_history_limit` (`float`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`dict`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`dict`) - An update strategy to replace existing DaemonSet pods with new pods. + * `rolling_update` (`dict`) - Rolling update config params. Present only if type = "RollingUpdate". + * `max_unavailable` (`dict`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + * `type` (`str`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. + + * `status` (`dict`) - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `collision_count` (`float`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`list`) - Represents the latest available observations of a DaemonSet's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of DaemonSet condition. + + * `current_number_scheduled` (`float`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `desired_number_scheduled` (`float`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_available` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `number_misscheduled` (`float`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_ready` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + * `number_unavailable` (`float`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `observed_generation` (`float`) - The most recent generation observed by the daemon set controller. + * `updated_number_scheduled` (`float`) - The total number of nodes that are running updated daemon pod + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DaemonSetList is a collection of daemon sets. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: A list of daemon sets. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`pulumi.Input[float]`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`pulumi.Input[dict]`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`pulumi.Input[dict]`) - An update strategy to replace existing DaemonSet pods with new pods. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if type = "RollingUpdate". + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + * `type` (`pulumi.Input[str]`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. + + * `status` (`pulumi.Input[dict]`) - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a DaemonSet's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of DaemonSet condition. + + * `current_number_scheduled` (`pulumi.Input[float]`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `desired_number_scheduled` (`pulumi.Input[float]`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_available` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `number_misscheduled` (`pulumi.Input[float]`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_ready` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + * `number_unavailable` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `observed_generation` (`pulumi.Input[float]`) - The most recent generation observed by the daemon set controller. + * `updated_number_scheduled` (`pulumi.Input[float]`) - The total number of nodes that are running updated daemon pod + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(DaemonSetList, __self__).__init__( + 'kubernetes:apps/v1beta2:DaemonSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DaemonSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DaemonSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py new file mode 100644 index 0000000000..f57e5f1ea5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py @@ -0,0 +1,1235 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + +class Deployment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of the Deployment. + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`bool`) - Indicates that the deployment is paused. + * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`dict`) - Template describes the pods that will be created. + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the Deployment. + * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `lastUpdateTime` (`str`) - The last time this condition was updated. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of deployment condition. + + * `observed_generation` (`float`) - The generation observed by the deployment controller. + * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. + * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """ + warnings.warn("apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Deployment enables declarative updates for Pods and ReplicaSets. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Deployment has begun to be updated by the Deployment controller. If the current + generation of the Deployment is > 1, then this means that the current generation must + be different from the generation reported by the last outputs. + 2. There exists a ReplicaSet whose revision is equal to the current revision of the + Deployment. + 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' + member is set to 'True'. + 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type + 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is + 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, + because it doesn't do a rollout (i.e., it simply creates the Deployment and + corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. + + If the Deployment has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. + :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused. + * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + """ + pulumi.log.warn("Deployment is deprecated: apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta1:Deployment"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:Deployment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Deployment, __self__).__init__( + 'kubernetes:apps/v1beta2:Deployment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Deployment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Deployment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py new file mode 100644 index 0000000000..65a8cdc684 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py @@ -0,0 +1,1199 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DeploymentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Deployments. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the Deployment. + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`bool`) - Indicates that the deployment is paused. + * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`dict`) - Template describes the pods that will be created. + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `status` (`dict`) - Most recently observed status of the Deployment. + * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `lastUpdateTime` (`str`) - The last time this condition was updated. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of deployment condition. + + * `observed_generation` (`float`) - The generation observed by the deployment controller. + * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. + * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DeploymentList is a list of Deployments. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Deployments. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the Deployment. + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused. + * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. + * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `status` (`pulumi.Input[dict]`) - Most recently observed status of the Deployment. + * `available_replicas` (`pulumi.Input[float]`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a deployment's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `lastUpdateTime` (`pulumi.Input[str]`) - The last time this condition was updated. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of deployment condition. + + * `observed_generation` (`pulumi.Input[float]`) - The generation observed by the deployment controller. + * `ready_replicas` (`pulumi.Input[float]`) - Total number of ready pods targeted by this deployment. + * `replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * `unavailable_replicas` (`pulumi.Input[float]`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + * `updated_replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(DeploymentList, __self__).__init__( + 'kubernetes:apps/v1beta2:DeploymentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DeploymentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DeploymentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py new file mode 100644 index 0000000000..2fa4a08961 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py @@ -0,0 +1,1190 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + +class ReplicaSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * `selector` (`dict`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + """ + status: pulumi.Output[dict] + """ + Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. + * `conditions` (`list`) - Represents the latest available observations of a replica set's current state. + * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of replica set condition. + + * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replicaset. + * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + * `ready_replicas` (`float`) - The number of ready replicas for this replica set. + * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """ + warnings.warn("apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicaSet ensures that a specified number of pod replicas are running at any given time. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + """ + pulumi.log.warn("ReplicaSet is deprecated: apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:ReplicaSet"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:ReplicaSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ReplicaSet, __self__).__init__( + 'kubernetes:apps/v1beta2:ReplicaSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicaSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicaSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py new file mode 100644 index 0000000000..6290ea162d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py @@ -0,0 +1,1173 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ReplicaSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * `selector` (`dict`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `status` (`dict`) - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. + * `conditions` (`list`) - Represents the latest available observations of a replica set's current state. + * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of replica set condition. + + * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replicaset. + * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + * `ready_replicas` (`float`) - The number of ready replicas for this replica set. + * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicaSetList is a collection of ReplicaSets. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `status` (`pulumi.Input[dict]`) - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `available_replicas` (`pulumi.Input[float]`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a replica set's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - The last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of replica set condition. + + * `fully_labeled_replicas` (`pulumi.Input[float]`) - The number of pods that have labels matching the labels of the pod template of the replicaset. + * `observed_generation` (`pulumi.Input[float]`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + * `ready_replicas` (`pulumi.Input[float]`) - The number of ready replicas for this replica set. + * `replicas` (`pulumi.Input[float]`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ReplicaSetList, __self__).__init__( + 'kubernetes:apps/v1beta2:ReplicaSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicaSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicaSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py new file mode 100644 index 0000000000..41ec9d9a45 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py @@ -0,0 +1,1235 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + +class StatefulSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec defines the desired identities of pods in this set. + * `pod_management_policy` (`str`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + * `replicas` (`float`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + * `revision_history_limit` (`float`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + * `selector` (`dict`) - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `service_name` (`str`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. + * `template` (`dict`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`dict`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * `rolling_update` (`dict`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * `partition` (`float`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. + + * `type` (`str`) - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + + * `volume_claim_templates` (`list`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`list`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `data_source` (`dict`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `resources` (`dict`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `selector` (`dict`) - A label query over volumes to consider for binding. + * `storage_class_name` (`str`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * `volume_mode` (`str`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * `volume_name` (`str`) - VolumeName is the binding reference to the PersistentVolume backing this claim. + + * `status` (`dict`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`list`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `capacity` (`dict`) - Represents the actual resources of the underlying volume. + * `conditions` (`list`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + * `lastProbeTime` (`str`) - Last time we probed the condition. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - Human-readable message indicating details about last transition. + * `reason` (`str`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. + * `status` (`str`) + * `type` (`str`) + + * `phase` (`str`) - Phase represents the current phase of PersistentVolumeClaim. + """ + status: pulumi.Output[dict] + """ + Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + * `collision_count` (`float`) - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`list`) - Represents the latest available observations of a statefulset's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of statefulset condition. + + * `current_replicas` (`float`) - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + * `current_revision` (`str`) - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + * `observed_generation` (`float`) - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + * `ready_replicas` (`float`) - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + * `replicas` (`float`) - replicas is the number of Pods created by the StatefulSet controller. + * `update_revision` (`str`) - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + * `updated_replicas` (`float`) - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + """ + warnings.warn("apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + StatefulSet represents a set of pods with consistent identities. Identities are defined as: + - Network: A single stable DNS and hostname. + - Storage: As many VolumeClaims as requested. + The StatefulSet guarantees that a given network identity will always map to the same storage identity. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', + and '.status.readyReplicas'. + 2. The value of '.status.updateRevision' matches '.status.currentRevision'. + + If the StatefulSet has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `pod_management_policy` (`pulumi.Input[str]`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + * `replicas` (`pulumi.Input[float]`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + * `selector` (`pulumi.Input[dict]`) - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `service_name` (`pulumi.Input[str]`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. + * `template` (`pulumi.Input[dict]`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`pulumi.Input[dict]`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * `rolling_update` (`pulumi.Input[dict]`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * `partition` (`pulumi.Input[float]`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. + + * `type` (`pulumi.Input[str]`) - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + + * `volume_claim_templates` (`pulumi.Input[list]`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. + * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. + + * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. + * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. + * `status` (`pulumi.Input[str]`) + * `type` (`pulumi.Input[str]`) + + * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. + """ + pulumi.log.warn("StatefulSet is deprecated: apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:StatefulSet"), pulumi.Alias(type_="kubernetes:apps/v1beta1:StatefulSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(StatefulSet, __self__).__init__( + 'kubernetes:apps/v1beta2:StatefulSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StatefulSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StatefulSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py new file mode 100644 index 0000000000..e18127498e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py @@ -0,0 +1,667 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StatefulSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + StatefulSetList is a collection of StatefulSets. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the desired identities of pods in this set. + * `pod_management_policy` (`pulumi.Input[str]`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + * `replicas` (`pulumi.Input[float]`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. + * `selector` (`pulumi.Input[dict]`) - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `service_name` (`pulumi.Input[str]`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. + * `template` (`pulumi.Input[dict]`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `update_strategy` (`pulumi.Input[dict]`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * `rolling_update` (`pulumi.Input[dict]`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * `partition` (`pulumi.Input[float]`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. + + * `type` (`pulumi.Input[str]`) - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + + * `volume_claim_templates` (`pulumi.Input[list]`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. + * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. + + * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. + * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. + * `status` (`pulumi.Input[str]`) + * `type` (`pulumi.Input[str]`) + + * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. + + * `status` (`pulumi.Input[dict]`) - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + * `collision_count` (`pulumi.Input[float]`) - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a statefulset's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of statefulset condition. + + * `current_replicas` (`pulumi.Input[float]`) - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. + * `current_revision` (`pulumi.Input[str]`) - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). + * `observed_generation` (`pulumi.Input[float]`) - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. + * `ready_replicas` (`pulumi.Input[float]`) - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. + * `replicas` (`pulumi.Input[float]`) - replicas is the number of Pods created by the StatefulSet controller. + * `update_revision` (`pulumi.Input[str]`) - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + * `updated_replicas` (`pulumi.Input[float]`) - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(StatefulSetList, __self__).__init__( + 'kubernetes:apps/v1beta2:StatefulSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StatefulSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StatefulSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/auditregistration/__init__.py b/sdk/python/pulumi_kubernetes/auditregistration/__init__.py old mode 100755 new mode 100644 index 0dad491f98..d688fb9289 --- a/sdk/python/pulumi_kubernetes/auditregistration/__init__.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/__init__.py @@ -1,8 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1alpha1", -] +__all__ = ['v1alpha1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py deleted file mode 100755 index 130130cd7a..0000000000 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +++ /dev/null @@ -1,104 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class AuditSink(pulumi.CustomResource): - """ - AuditSink represents a cluster level audit sink - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec defines the audit configuration spec - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a AuditSink resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: - :param pulumi.Input[dict] spec: Spec defines the audit configuration spec - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'auditregistration.k8s.io/v1alpha1' - __props__['kind'] = 'AuditSink' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(AuditSink, self).__init__( - "kubernetes:auditregistration.k8s.io/v1alpha1:AuditSink", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `AuditSink` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return AuditSink(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py deleted file mode 100755 index 96d45e5940..0000000000 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +++ /dev/null @@ -1,106 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class AuditSinkList(pulumi.CustomResource): - """ - AuditSinkList is a list of AuditSink items. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of audit configurations. - """ - - metadata: pulumi.Output[dict] - - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a AuditSinkList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of audit configurations. - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'auditregistration.k8s.io/v1alpha1' - __props__['kind'] = 'AuditSinkList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(AuditSinkList, self).__init__( - "kubernetes:auditregistration.k8s.io/v1alpha1:AuditSinkList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `AuditSinkList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return AuditSinkList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py old mode 100755 new mode 100644 index 92749ae31f..f65b7fdb38 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .AuditSink import (AuditSink) -from .AuditSinkList import (AuditSinkList) +from .audit_sink import * +from .audit_sink_list import * diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py new file mode 100644 index 0000000000..b5b2b6889e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py @@ -0,0 +1,195 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class AuditSink(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec defines the audit configuration spec + * `policy` (`dict`) - Policy defines the policy for selecting which events should be sent to the webhook required + * `level` (`str`) - The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required + * `stages` (`list`) - Stages is a list of stages for which events are created. + + * `webhook` (`dict`) - Webhook to send events required + * `client_config` (`dict`) - ClientConfig holds the connection parameters for the webhook required + * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - `name` is the name of the service. Required + * `namespace` (`str`) - `namespace` is the namespace of the service. Required + * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `throttle` (`dict`) - Throttle holds the options for throttling the webhook + * `burst` (`float`) - ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS + * `qps` (`float`) - ThrottleQPS maximum number of batches per second default 10 QPS + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + AuditSink represents a cluster level audit sink + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec defines the audit configuration spec + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `policy` (`pulumi.Input[dict]`) - Policy defines the policy for selecting which events should be sent to the webhook required + * `level` (`pulumi.Input[str]`) - The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required + * `stages` (`pulumi.Input[list]`) - Stages is a list of stages for which events are created. + + * `webhook` (`pulumi.Input[dict]`) - Webhook to send events required + * `client_config` (`pulumi.Input[dict]`) - ClientConfig holds the connection parameters for the webhook required + * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `throttle` (`pulumi.Input[dict]`) - Throttle holds the options for throttling the webhook + * `burst` (`pulumi.Input[float]`) - ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS + * `qps` (`pulumi.Input[float]`) - ThrottleQPS maximum number of batches per second default 10 QPS + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + super(AuditSink, __self__).__init__( + 'kubernetes:auditregistration.k8s.io/v1alpha1:AuditSink', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing AuditSink resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return AuditSink(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py new file mode 100644 index 0000000000..41f4f3b60a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py @@ -0,0 +1,259 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class AuditSinkList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of audit configurations. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec defines the audit configuration spec + * `policy` (`dict`) - Policy defines the policy for selecting which events should be sent to the webhook required + * `level` (`str`) - The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required + * `stages` (`list`) - Stages is a list of stages for which events are created. + + * `webhook` (`dict`) - Webhook to send events required + * `client_config` (`dict`) - ClientConfig holds the connection parameters for the webhook required + * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`str`) - `name` is the name of the service. Required + * `namespace` (`str`) - `namespace` is the namespace of the service. Required + * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `throttle` (`dict`) - Throttle holds the options for throttling the webhook + * `burst` (`float`) - ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS + * `qps` (`float`) - ThrottleQPS maximum number of batches per second default 10 QPS + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + AuditSinkList is a list of AuditSink items. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of audit configurations. + :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 + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the audit configuration spec + * `policy` (`pulumi.Input[dict]`) - Policy defines the policy for selecting which events should be sent to the webhook required + * `level` (`pulumi.Input[str]`) - The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required + * `stages` (`pulumi.Input[list]`) - Stages is a list of stages for which events are created. + + * `webhook` (`pulumi.Input[dict]`) - Webhook to send events required + * `client_config` (`pulumi.Input[dict]`) - ClientConfig holds the connection parameters for the webhook required + * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. + + If the webhook is running within the cluster, then you should use `service`. + * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required + * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required + * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. + * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + + * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. + + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. + + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + + * `throttle` (`pulumi.Input[dict]`) - Throttle holds the options for throttling the webhook + * `burst` (`pulumi.Input[float]`) - ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS + * `qps` (`pulumi.Input[float]`) - ThrottleQPS maximum number of batches per second default 10 QPS + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(AuditSinkList, __self__).__init__( + 'kubernetes:auditregistration.k8s.io/v1alpha1:AuditSinkList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing AuditSinkList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return AuditSinkList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/__init__.py b/sdk/python/pulumi_kubernetes/authentication/__init__.py old mode 100755 new mode 100644 index 092556c5fd..4c1e851a21 --- a/sdk/python/pulumi_kubernetes/authentication/__init__.py +++ b/sdk/python/pulumi_kubernetes/authentication/__init__.py @@ -1,9 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", - "v1beta1", -] +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py deleted file mode 100755 index cb3311305e..0000000000 --- a/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py +++ /dev/null @@ -1,107 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class TokenRequest(pulumi.CustomResource): - """ - TokenRequest requests a token for a given service account. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - - - status: pulumi.Output[dict] - - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a TokenRequest resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'authentication.k8s.io/v1' - __props__['kind'] = 'TokenRequest' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(TokenRequest, self).__init__( - "kubernetes:authentication.k8s.io/v1:TokenRequest", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `TokenRequest` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return TokenRequest(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py deleted file mode 100755 index cf9088f7a9..0000000000 --- a/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py +++ /dev/null @@ -1,117 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class TokenReview(pulumi.CustomResource): - """ - TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be - cached by the webhook token authenticator plugin in the kube-apiserver. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated - """ - - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request can be authenticated. - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a TokenReview resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'authentication.k8s.io/v1' - __props__['kind'] = 'TokenReview' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:authentication.k8s.io/v1beta1:TokenReview"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(TokenReview, self).__init__( - "kubernetes:authentication.k8s.io/v1:TokenReview", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `TokenReview` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return TokenReview(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py b/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py old mode 100755 new mode 100644 index 055dde35ad..2e812c99a7 --- a/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .TokenRequest import (TokenRequest) -from .TokenReview import (TokenReview) +from .token_request import * +from .token_review import * diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py b/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py new file mode 100644 index 0000000000..a9c022480b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py @@ -0,0 +1,143 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class TokenRequest(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + status: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + TokenRequest requests a token for a given service account. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `audiences` (`pulumi.Input[list]`) - Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. + * `bound_object_ref` (`pulumi.Input[dict]`) - BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. Valid kinds are 'Pod' and 'Secret'. + * `name` (`pulumi.Input[str]`) - Name of the referent. + * `uid` (`pulumi.Input[str]`) - UID of the referent. + + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + super(TokenRequest, __self__).__init__( + 'kubernetes:authentication.k8s.io/v1:TokenRequest', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing TokenRequest resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return TokenRequest(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py b/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py new file mode 100644 index 0000000000..876ae1f986 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py @@ -0,0 +1,156 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class TokenReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated + * `audiences` (`list`) - Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. + * `token` (`str`) - Token is the opaque bearer token. + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request can be authenticated. + * `audiences` (`list`) - Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server. + * `authenticated` (`bool`) - Authenticated indicates that the token was associated with a known user. + * `error` (`str`) - Error indicates that the token couldn't be checked + * `user` (`dict`) - User is the UserInfo associated with the provided token. + * `extra` (`dict`) - Any additional information provided by the authenticator. + * `groups` (`list`) - The names of groups this user is a part of. + * `uid` (`str`) - A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. + * `username` (`str`) - The name that uniquely identifies this user among all active users. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `audiences` (`pulumi.Input[list]`) - Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. + * `token` (`pulumi.Input[str]`) - Token is the opaque bearer token. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authentication.k8s.io/v1beta1:TokenReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(TokenReview, __self__).__init__( + 'kubernetes:authentication.k8s.io/v1:TokenReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing TokenReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return TokenReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py deleted file mode 100755 index bddc4d0469..0000000000 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py +++ /dev/null @@ -1,117 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class TokenReview(pulumi.CustomResource): - """ - TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be - cached by the webhook token authenticator plugin in the kube-apiserver. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated - """ - - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request can be authenticated. - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a TokenReview resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'authentication.k8s.io/v1beta1' - __props__['kind'] = 'TokenReview' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:authentication.k8s.io/v1:TokenReview"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(TokenReview, self).__init__( - "kubernetes:authentication.k8s.io/v1beta1:TokenReview", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `TokenReview` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return TokenReview(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py old mode 100755 new mode 100644 index 147f334535..b015516238 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py @@ -1,6 +1,6 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .TokenReview import (TokenReview) +from .token_review import * diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py new file mode 100644 index 0000000000..312ab73015 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py @@ -0,0 +1,156 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class TokenReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated + * `audiences` (`list`) - Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. + * `token` (`str`) - Token is the opaque bearer token. + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request can be authenticated. + * `audiences` (`list`) - Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server. + * `authenticated` (`bool`) - Authenticated indicates that the token was associated with a known user. + * `error` (`str`) - Error indicates that the token couldn't be checked + * `user` (`dict`) - User is the UserInfo associated with the provided token. + * `extra` (`dict`) - Any additional information provided by the authenticator. + * `groups` (`list`) - The names of groups this user is a part of. + * `uid` (`str`) - A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. + * `username` (`str`) - The name that uniquely identifies this user among all active users. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `audiences` (`pulumi.Input[list]`) - Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. + * `token` (`pulumi.Input[str]`) - Token is the opaque bearer token. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authentication.k8s.io/v1:TokenReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(TokenReview, __self__).__init__( + 'kubernetes:authentication.k8s.io/v1beta1:TokenReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing TokenReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return TokenReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/__init__.py b/sdk/python/pulumi_kubernetes/authorization/__init__.py old mode 100755 new mode 100644 index 092556c5fd..4c1e851a21 --- a/sdk/python/pulumi_kubernetes/authorization/__init__.py +++ b/sdk/python/pulumi_kubernetes/authorization/__init__.py @@ -1,9 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", - "v1beta1", -] +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py deleted file mode 100755 index 1c92406e17..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py +++ /dev/null @@ -1,120 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class LocalSubjectAccessReview(pulumi.CustomResource): - """ - LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given - namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped - policy that includes permissions checking. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated. spec.namespace must be equal to the - namespace you made the request against. If empty, it is defaulted. - """ - - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request is allowed or not - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a LocalSubjectAccessReview resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. spec.namespace must be - equal to the namespace you made the request against. If empty, it is defaulted. - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'authorization.k8s.io/v1' - __props__['kind'] = 'LocalSubjectAccessReview' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(LocalSubjectAccessReview, self).__init__( - "kubernetes:authorization.k8s.io/v1:LocalSubjectAccessReview", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `LocalSubjectAccessReview` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return LocalSubjectAccessReview(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py deleted file mode 100755 index 5a9e478f4b..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py +++ /dev/null @@ -1,119 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class SelfSubjectAccessReview(pulumi.CustomResource): - """ - SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling - in a spec.namespace means "in all namespaces". Self is a special case, because users should - always be able to check whether they can perform an action - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated. user and groups must be empty - """ - - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request is allowed or not - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a SelfSubjectAccessReview resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. user and groups must be - empty - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'authorization.k8s.io/v1' - __props__['kind'] = 'SelfSubjectAccessReview' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:SelfSubjectAccessReview"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(SelfSubjectAccessReview, self).__init__( - "kubernetes:authorization.k8s.io/v1:SelfSubjectAccessReview", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `SelfSubjectAccessReview` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return SelfSubjectAccessReview(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py deleted file mode 100755 index 368bd460c3..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py +++ /dev/null @@ -1,123 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class SelfSubjectRulesReview(pulumi.CustomResource): - """ - SelfSubjectRulesReview enumerates the set of actions the current user can perform within a - namespace. The returned list of actions may be incomplete depending on the server's - authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview - should be used by UIs to show/hide actions, or to quickly let an end user reason about their - permissions. It should NOT Be used by external systems to drive authorization decisions as this - raises confused deputy, cache lifetime/revocation, and correctness concerns. - SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions - to the API server. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated. - """ - - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates the set of actions a user can perform. - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a SelfSubjectRulesReview resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'authorization.k8s.io/v1' - __props__['kind'] = 'SelfSubjectRulesReview' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:SelfSubjectRulesReview"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(SelfSubjectRulesReview, self).__init__( - "kubernetes:authorization.k8s.io/v1:SelfSubjectRulesReview", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `SelfSubjectRulesReview` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return SelfSubjectRulesReview(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py deleted file mode 100755 index b9d1868ae0..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py +++ /dev/null @@ -1,116 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class SubjectAccessReview(pulumi.CustomResource): - """ - SubjectAccessReview checks whether or not a user or group can perform an action. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated - """ - - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request is allowed or not - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a SubjectAccessReview resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'authorization.k8s.io/v1' - __props__['kind'] = 'SubjectAccessReview' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:SubjectAccessReview"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(SubjectAccessReview, self).__init__( - "kubernetes:authorization.k8s.io/v1:SubjectAccessReview", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `SubjectAccessReview` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return SubjectAccessReview(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py b/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py old mode 100755 new mode 100644 index 4585946190..0000a01b84 --- a/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py @@ -1,9 +1,9 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .LocalSubjectAccessReview import (LocalSubjectAccessReview) -from .SelfSubjectAccessReview import (SelfSubjectAccessReview) -from .SelfSubjectRulesReview import (SelfSubjectRulesReview) -from .SubjectAccessReview import (SubjectAccessReview) +from .local_subject_access_review import * +from .self_subject_access_review import * +from .self_subject_rules_review import * +from .subject_access_review import * diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py new file mode 100644 index 0000000000..6dfe5eccd4 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py @@ -0,0 +1,182 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class LocalSubjectAccessReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + * `extra` (`dict`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + * `groups` (`list`) - Groups is the groups you're testing for. + * `non_resource_attributes` (`dict`) - NonResourceAttributes describes information for a non-resource access request + * `path` (`str`) - Path is the URL path of the request + * `verb` (`str`) - Verb is the standard HTTP verb + + * `resource_attributes` (`dict`) - ResourceAuthorizationAttributes describes information for a resource access request + * `group` (`str`) - Group is the API Group of the Resource. "*" means all. + * `name` (`str`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * `namespace` (`str`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * `resource` (`str`) - Resource is one of the existing resource types. "*" means all. + * `subresource` (`str`) - Subresource is one of the existing resource types. "" means none. + * `verb` (`str`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * `version` (`str`) - Version is the API Version of the Resource. "*" means all. + + * `uid` (`str`) - UID information about the requesting user. + * `user` (`str`) - User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request is allowed or not + * `allowed` (`bool`) - Allowed is required. True if the action would be allowed, false otherwise. + * `denied` (`bool`) - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. + * `evaluation_error` (`str`) - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + * `reason` (`str`) - Reason is optional. It indicates why a request was allowed or denied. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `extra` (`pulumi.Input[dict]`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + * `groups` (`pulumi.Input[list]`) - Groups is the groups you're testing for. + * `non_resource_attributes` (`pulumi.Input[dict]`) - NonResourceAttributes describes information for a non-resource access request + * `path` (`pulumi.Input[str]`) - Path is the URL path of the request + * `verb` (`pulumi.Input[str]`) - Verb is the standard HTTP verb + + * `resource_attributes` (`pulumi.Input[dict]`) - ResourceAuthorizationAttributes describes information for a resource access request + * `group` (`pulumi.Input[str]`) - Group is the API Group of the Resource. "*" means all. + * `name` (`pulumi.Input[str]`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * `resource` (`pulumi.Input[str]`) - Resource is one of the existing resource types. "*" means all. + * `subresource` (`pulumi.Input[str]`) - Subresource is one of the existing resource types. "" means none. + * `verb` (`pulumi.Input[str]`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * `version` (`pulumi.Input[str]`) - Version is the API Version of the Resource. "*" means all. + + * `uid` (`pulumi.Input[str]`) - UID information about the requesting user. + * `user` (`pulumi.Input[str]`) - User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(LocalSubjectAccessReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1:LocalSubjectAccessReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing LocalSubjectAccessReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return LocalSubjectAccessReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py new file mode 100644 index 0000000000..43e4dfffe3 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py @@ -0,0 +1,172 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SelfSubjectAccessReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated. user and groups must be empty + * `non_resource_attributes` (`dict`) - NonResourceAttributes describes information for a non-resource access request + * `path` (`str`) - Path is the URL path of the request + * `verb` (`str`) - Verb is the standard HTTP verb + + * `resource_attributes` (`dict`) - ResourceAuthorizationAttributes describes information for a resource access request + * `group` (`str`) - Group is the API Group of the Resource. "*" means all. + * `name` (`str`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * `namespace` (`str`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * `resource` (`str`) - Resource is one of the existing resource types. "*" means all. + * `subresource` (`str`) - Subresource is one of the existing resource types. "" means none. + * `verb` (`str`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * `version` (`str`) - Version is the API Version of the Resource. "*" means all. + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request is allowed or not + * `allowed` (`bool`) - Allowed is required. True if the action would be allowed, false otherwise. + * `denied` (`bool`) - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. + * `evaluation_error` (`str`) - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + * `reason` (`str`) - Reason is optional. It indicates why a request was allowed or denied. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. user and groups must be empty + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `non_resource_attributes` (`pulumi.Input[dict]`) - NonResourceAttributes describes information for a non-resource access request + * `path` (`pulumi.Input[str]`) - Path is the URL path of the request + * `verb` (`pulumi.Input[str]`) - Verb is the standard HTTP verb + + * `resource_attributes` (`pulumi.Input[dict]`) - ResourceAuthorizationAttributes describes information for a resource access request + * `group` (`pulumi.Input[str]`) - Group is the API Group of the Resource. "*" means all. + * `name` (`pulumi.Input[str]`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * `resource` (`pulumi.Input[str]`) - Resource is one of the existing resource types. "*" means all. + * `subresource` (`pulumi.Input[str]`) - Subresource is one of the existing resource types. "" means none. + * `verb` (`pulumi.Input[str]`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * `version` (`pulumi.Input[str]`) - Version is the API Version of the Resource. "*" means all. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:SelfSubjectAccessReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(SelfSubjectAccessReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1:SelfSubjectAccessReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SelfSubjectAccessReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SelfSubjectAccessReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py new file mode 100644 index 0000000000..e904d243e1 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py @@ -0,0 +1,158 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SelfSubjectRulesReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated. + * `namespace` (`str`) - Namespace to evaluate rules for. Required. + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates the set of actions a user can perform. + * `evaluation_error` (`str`) - EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. + * `incomplete` (`bool`) - Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. + * `non_resource_rules` (`list`) - NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. "*" means all. + * `verbs` (`list`) - Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all. + + * `resource_rules` (`list`) - ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. + * `resources` (`list`) - Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. + "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. + * `verbs` (`list`) - Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `namespace` (`pulumi.Input[str]`) - Namespace to evaluate rules for. Required. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:SelfSubjectRulesReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(SelfSubjectRulesReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1:SelfSubjectRulesReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SelfSubjectRulesReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SelfSubjectRulesReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py new file mode 100644 index 0000000000..0f7bd696ea --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py @@ -0,0 +1,182 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SubjectAccessReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated + * `extra` (`dict`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + * `groups` (`list`) - Groups is the groups you're testing for. + * `non_resource_attributes` (`dict`) - NonResourceAttributes describes information for a non-resource access request + * `path` (`str`) - Path is the URL path of the request + * `verb` (`str`) - Verb is the standard HTTP verb + + * `resource_attributes` (`dict`) - ResourceAuthorizationAttributes describes information for a resource access request + * `group` (`str`) - Group is the API Group of the Resource. "*" means all. + * `name` (`str`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * `namespace` (`str`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * `resource` (`str`) - Resource is one of the existing resource types. "*" means all. + * `subresource` (`str`) - Subresource is one of the existing resource types. "" means none. + * `verb` (`str`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * `version` (`str`) - Version is the API Version of the Resource. "*" means all. + + * `uid` (`str`) - UID information about the requesting user. + * `user` (`str`) - User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request is allowed or not + * `allowed` (`bool`) - Allowed is required. True if the action would be allowed, false otherwise. + * `denied` (`bool`) - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. + * `evaluation_error` (`str`) - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + * `reason` (`str`) - Reason is optional. It indicates why a request was allowed or denied. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + SubjectAccessReview checks whether or not a user or group can perform an action. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `extra` (`pulumi.Input[dict]`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + * `groups` (`pulumi.Input[list]`) - Groups is the groups you're testing for. + * `non_resource_attributes` (`pulumi.Input[dict]`) - NonResourceAttributes describes information for a non-resource access request + * `path` (`pulumi.Input[str]`) - Path is the URL path of the request + * `verb` (`pulumi.Input[str]`) - Verb is the standard HTTP verb + + * `resource_attributes` (`pulumi.Input[dict]`) - ResourceAuthorizationAttributes describes information for a resource access request + * `group` (`pulumi.Input[str]`) - Group is the API Group of the Resource. "*" means all. + * `name` (`pulumi.Input[str]`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * `resource` (`pulumi.Input[str]`) - Resource is one of the existing resource types. "*" means all. + * `subresource` (`pulumi.Input[str]`) - Subresource is one of the existing resource types. "" means none. + * `verb` (`pulumi.Input[str]`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * `version` (`pulumi.Input[str]`) - Version is the API Version of the Resource. "*" means all. + + * `uid` (`pulumi.Input[str]`) - UID information about the requesting user. + * `user` (`pulumi.Input[str]`) - User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:SubjectAccessReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(SubjectAccessReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1:SubjectAccessReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SubjectAccessReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SubjectAccessReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py deleted file mode 100755 index 4d146125b6..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py +++ /dev/null @@ -1,120 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class LocalSubjectAccessReview(pulumi.CustomResource): - """ - LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given - namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped - policy that includes permissions checking. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated. spec.namespace must be equal to the - namespace you made the request against. If empty, it is defaulted. - """ - - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request is allowed or not - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a LocalSubjectAccessReview resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. spec.namespace must be - equal to the namespace you made the request against. If empty, it is defaulted. - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'authorization.k8s.io/v1beta1' - __props__['kind'] = 'LocalSubjectAccessReview' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:LocalSubjectAccessReview"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(LocalSubjectAccessReview, self).__init__( - "kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `LocalSubjectAccessReview` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return LocalSubjectAccessReview(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py deleted file mode 100755 index 2867d79d7d..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py +++ /dev/null @@ -1,119 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class SelfSubjectAccessReview(pulumi.CustomResource): - """ - SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling - in a spec.namespace means "in all namespaces". Self is a special case, because users should - always be able to check whether they can perform an action - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated. user and groups must be empty - """ - - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request is allowed or not - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a SelfSubjectAccessReview resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. user and groups must be - empty - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'authorization.k8s.io/v1beta1' - __props__['kind'] = 'SelfSubjectAccessReview' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:SelfSubjectAccessReview"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(SelfSubjectAccessReview, self).__init__( - "kubernetes:authorization.k8s.io/v1beta1:SelfSubjectAccessReview", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `SelfSubjectAccessReview` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return SelfSubjectAccessReview(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py deleted file mode 100755 index 1cc9d8ea3c..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py +++ /dev/null @@ -1,123 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class SelfSubjectRulesReview(pulumi.CustomResource): - """ - SelfSubjectRulesReview enumerates the set of actions the current user can perform within a - namespace. The returned list of actions may be incomplete depending on the server's - authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview - should be used by UIs to show/hide actions, or to quickly let an end user reason about their - permissions. It should NOT Be used by external systems to drive authorization decisions as this - raises confused deputy, cache lifetime/revocation, and correctness concerns. - SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions - to the API server. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated. - """ - - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates the set of actions a user can perform. - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a SelfSubjectRulesReview resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'authorization.k8s.io/v1beta1' - __props__['kind'] = 'SelfSubjectRulesReview' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:SelfSubjectRulesReview"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(SelfSubjectRulesReview, self).__init__( - "kubernetes:authorization.k8s.io/v1beta1:SelfSubjectRulesReview", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `SelfSubjectRulesReview` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return SelfSubjectRulesReview(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py deleted file mode 100755 index 2d808dc7c1..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py +++ /dev/null @@ -1,116 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class SubjectAccessReview(pulumi.CustomResource): - """ - SubjectAccessReview checks whether or not a user or group can perform an action. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated - """ - - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request is allowed or not - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a SubjectAccessReview resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'authorization.k8s.io/v1beta1' - __props__['kind'] = 'SubjectAccessReview' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:SubjectAccessReview"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(SubjectAccessReview, self).__init__( - "kubernetes:authorization.k8s.io/v1beta1:SubjectAccessReview", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `SubjectAccessReview` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return SubjectAccessReview(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py old mode 100755 new mode 100644 index 4585946190..0000a01b84 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py @@ -1,9 +1,9 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .LocalSubjectAccessReview import (LocalSubjectAccessReview) -from .SelfSubjectAccessReview import (SelfSubjectAccessReview) -from .SelfSubjectRulesReview import (SelfSubjectRulesReview) -from .SubjectAccessReview import (SubjectAccessReview) +from .local_subject_access_review import * +from .self_subject_access_review import * +from .self_subject_rules_review import * +from .subject_access_review import * diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py new file mode 100644 index 0000000000..07451c1eaf --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py @@ -0,0 +1,182 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class LocalSubjectAccessReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + * `extra` (`dict`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + * `group` (`list`) - Groups is the groups you're testing for. + * `non_resource_attributes` (`dict`) - NonResourceAttributes describes information for a non-resource access request + * `path` (`str`) - Path is the URL path of the request + * `verb` (`str`) - Verb is the standard HTTP verb + + * `resource_attributes` (`dict`) - ResourceAuthorizationAttributes describes information for a resource access request + * `group` (`str`) - Group is the API Group of the Resource. "*" means all. + * `name` (`str`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * `namespace` (`str`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * `resource` (`str`) - Resource is one of the existing resource types. "*" means all. + * `subresource` (`str`) - Subresource is one of the existing resource types. "" means none. + * `verb` (`str`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * `version` (`str`) - Version is the API Version of the Resource. "*" means all. + + * `uid` (`str`) - UID information about the requesting user. + * `user` (`str`) - User is the user you're testing for. If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request is allowed or not + * `allowed` (`bool`) - Allowed is required. True if the action would be allowed, false otherwise. + * `denied` (`bool`) - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. + * `evaluation_error` (`str`) - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + * `reason` (`str`) - Reason is optional. It indicates why a request was allowed or denied. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `extra` (`pulumi.Input[dict]`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + * `group` (`pulumi.Input[list]`) - Groups is the groups you're testing for. + * `non_resource_attributes` (`pulumi.Input[dict]`) - NonResourceAttributes describes information for a non-resource access request + * `path` (`pulumi.Input[str]`) - Path is the URL path of the request + * `verb` (`pulumi.Input[str]`) - Verb is the standard HTTP verb + + * `resource_attributes` (`pulumi.Input[dict]`) - ResourceAuthorizationAttributes describes information for a resource access request + * `group` (`pulumi.Input[str]`) - Group is the API Group of the Resource. "*" means all. + * `name` (`pulumi.Input[str]`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * `resource` (`pulumi.Input[str]`) - Resource is one of the existing resource types. "*" means all. + * `subresource` (`pulumi.Input[str]`) - Subresource is one of the existing resource types. "" means none. + * `verb` (`pulumi.Input[str]`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * `version` (`pulumi.Input[str]`) - Version is the API Version of the Resource. "*" means all. + + * `uid` (`pulumi.Input[str]`) - UID information about the requesting user. + * `user` (`pulumi.Input[str]`) - User is the user you're testing for. If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:LocalSubjectAccessReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(LocalSubjectAccessReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing LocalSubjectAccessReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return LocalSubjectAccessReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py new file mode 100644 index 0000000000..a19f04492b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py @@ -0,0 +1,172 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SelfSubjectAccessReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated. user and groups must be empty + * `non_resource_attributes` (`dict`) - NonResourceAttributes describes information for a non-resource access request + * `path` (`str`) - Path is the URL path of the request + * `verb` (`str`) - Verb is the standard HTTP verb + + * `resource_attributes` (`dict`) - ResourceAuthorizationAttributes describes information for a resource access request + * `group` (`str`) - Group is the API Group of the Resource. "*" means all. + * `name` (`str`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * `namespace` (`str`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * `resource` (`str`) - Resource is one of the existing resource types. "*" means all. + * `subresource` (`str`) - Subresource is one of the existing resource types. "" means none. + * `verb` (`str`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * `version` (`str`) - Version is the API Version of the Resource. "*" means all. + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request is allowed or not + * `allowed` (`bool`) - Allowed is required. True if the action would be allowed, false otherwise. + * `denied` (`bool`) - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. + * `evaluation_error` (`str`) - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + * `reason` (`str`) - Reason is optional. It indicates why a request was allowed or denied. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. user and groups must be empty + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `non_resource_attributes` (`pulumi.Input[dict]`) - NonResourceAttributes describes information for a non-resource access request + * `path` (`pulumi.Input[str]`) - Path is the URL path of the request + * `verb` (`pulumi.Input[str]`) - Verb is the standard HTTP verb + + * `resource_attributes` (`pulumi.Input[dict]`) - ResourceAuthorizationAttributes describes information for a resource access request + * `group` (`pulumi.Input[str]`) - Group is the API Group of the Resource. "*" means all. + * `name` (`pulumi.Input[str]`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * `resource` (`pulumi.Input[str]`) - Resource is one of the existing resource types. "*" means all. + * `subresource` (`pulumi.Input[str]`) - Subresource is one of the existing resource types. "" means none. + * `verb` (`pulumi.Input[str]`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * `version` (`pulumi.Input[str]`) - Version is the API Version of the Resource. "*" means all. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:SelfSubjectAccessReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(SelfSubjectAccessReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1beta1:SelfSubjectAccessReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SelfSubjectAccessReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SelfSubjectAccessReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py new file mode 100644 index 0000000000..bc82bf752c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py @@ -0,0 +1,158 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SelfSubjectRulesReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated. + * `namespace` (`str`) - Namespace to evaluate rules for. Required. + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates the set of actions a user can perform. + * `evaluation_error` (`str`) - EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. + * `incomplete` (`bool`) - Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. + * `non_resource_rules` (`list`) - NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. "*" means all. + * `verbs` (`list`) - Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all. + + * `resource_rules` (`list`) - ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. + * `resources` (`list`) - Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. + "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. + * `verbs` (`list`) - Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `namespace` (`pulumi.Input[str]`) - Namespace to evaluate rules for. Required. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:SelfSubjectRulesReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(SelfSubjectRulesReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1beta1:SelfSubjectRulesReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SelfSubjectRulesReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SelfSubjectRulesReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py new file mode 100644 index 0000000000..d2bb9c5826 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py @@ -0,0 +1,182 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SubjectAccessReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated + * `extra` (`dict`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + * `group` (`list`) - Groups is the groups you're testing for. + * `non_resource_attributes` (`dict`) - NonResourceAttributes describes information for a non-resource access request + * `path` (`str`) - Path is the URL path of the request + * `verb` (`str`) - Verb is the standard HTTP verb + + * `resource_attributes` (`dict`) - ResourceAuthorizationAttributes describes information for a resource access request + * `group` (`str`) - Group is the API Group of the Resource. "*" means all. + * `name` (`str`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * `namespace` (`str`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * `resource` (`str`) - Resource is one of the existing resource types. "*" means all. + * `subresource` (`str`) - Subresource is one of the existing resource types. "" means none. + * `verb` (`str`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * `version` (`str`) - Version is the API Version of the Resource. "*" means all. + + * `uid` (`str`) - UID information about the requesting user. + * `user` (`str`) - User is the user you're testing for. If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request is allowed or not + * `allowed` (`bool`) - Allowed is required. True if the action would be allowed, false otherwise. + * `denied` (`bool`) - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. + * `evaluation_error` (`str`) - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + * `reason` (`str`) - Reason is optional. It indicates why a request was allowed or denied. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + SubjectAccessReview checks whether or not a user or group can perform an action. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `extra` (`pulumi.Input[dict]`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + * `group` (`pulumi.Input[list]`) - Groups is the groups you're testing for. + * `non_resource_attributes` (`pulumi.Input[dict]`) - NonResourceAttributes describes information for a non-resource access request + * `path` (`pulumi.Input[str]`) - Path is the URL path of the request + * `verb` (`pulumi.Input[str]`) - Verb is the standard HTTP verb + + * `resource_attributes` (`pulumi.Input[dict]`) - ResourceAuthorizationAttributes describes information for a resource access request + * `group` (`pulumi.Input[str]`) - Group is the API Group of the Resource. "*" means all. + * `name` (`pulumi.Input[str]`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. + * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * `resource` (`pulumi.Input[str]`) - Resource is one of the existing resource types. "*" means all. + * `subresource` (`pulumi.Input[str]`) - Subresource is one of the existing resource types. "" means none. + * `verb` (`pulumi.Input[str]`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. + * `version` (`pulumi.Input[str]`) - Version is the API Version of the Resource. "*" means all. + + * `uid` (`pulumi.Input[str]`) - UID information about the requesting user. + * `user` (`pulumi.Input[str]`) - User is the user you're testing for. If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:SubjectAccessReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(SubjectAccessReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1beta1:SubjectAccessReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SubjectAccessReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SubjectAccessReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/__init__.py old mode 100755 new mode 100644 index c884e9765f..aadeed7f52 --- a/sdk/python/pulumi_kubernetes/autoscaling/__init__.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/__init__.py @@ -1,10 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", - "v2beta1", - "v2beta2", -] +__all__ = ['v1', 'v2beta1', 'v2beta2'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py deleted file mode 100755 index 98d48b559f..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +++ /dev/null @@ -1,121 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class HorizontalPodAutoscaler(pulumi.CustomResource): - """ - configuration of a horizontal pod autoscaler. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - behaviour of autoscaler. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - """ - - status: pulumi.Output[dict] - """ - current information about the autoscaler. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a HorizontalPodAutoscaler resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: behaviour of autoscaler. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'autoscaling/v1' - __props__['kind'] = 'HorizontalPodAutoscaler' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler"), - pulumi.Alias(type_="kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(HorizontalPodAutoscaler, self).__init__( - "kubernetes:autoscaling/v1:HorizontalPodAutoscaler", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `HorizontalPodAutoscaler` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return HorizontalPodAutoscaler(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py deleted file mode 100755 index 779498f510..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class HorizontalPodAutoscalerList(pulumi.CustomResource): - """ - list of horizontal pod autoscaler objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - list of horizontal pod autoscaler objects. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a HorizontalPodAutoscalerList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: list of horizontal pod autoscaler objects. - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'autoscaling/v1' - __props__['kind'] = 'HorizontalPodAutoscalerList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(HorizontalPodAutoscalerList, self).__init__( - "kubernetes:autoscaling/v1:HorizontalPodAutoscalerList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `HorizontalPodAutoscalerList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return HorizontalPodAutoscalerList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py old mode 100755 new mode 100644 index 8a611425a7..e36ca54496 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .HorizontalPodAutoscaler import (HorizontalPodAutoscaler) -from .HorizontalPodAutoscalerList import (HorizontalPodAutoscalerList) +from .horizontal_pod_autoscaler import * +from .horizontal_pod_autoscaler_list import * diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py new file mode 100644 index 0000000000..4afb1664ed --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py @@ -0,0 +1,213 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class HorizontalPodAutoscaler(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * `max_replicas` (`float`) - upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + * `min_replicas` (`float`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * `scale_target_ref` (`dict`) - reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. + * `api_version` (`str`) - API version of the referent + * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `target_cpu_utilization_percentage` (`float`) - target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. + """ + status: pulumi.Output[dict] + """ + current information about the autoscaler. + * `current_cpu_utilization_percentage` (`float`) - current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + * `current_replicas` (`float`) - current number of replicas of pods managed by this autoscaler. + * `desired_replicas` (`float`) - desired number of replicas of pods managed by this autoscaler. + * `last_scale_time` (`str`) - last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. + * `observed_generation` (`float`) - most recent generation observed by this autoscaler. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + configuration of a horizontal pod autoscaler. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `max_replicas` (`pulumi.Input[float]`) - upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + * `min_replicas` (`pulumi.Input[float]`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * `scale_target_ref` (`pulumi.Input[dict]`) - reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. + * `api_version` (`pulumi.Input[str]`) - API version of the referent + * `kind` (`pulumi.Input[str]`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`pulumi.Input[str]`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `target_cpu_utilization_percentage` (`pulumi.Input[float]`) - target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler"), pulumi.Alias(type_="kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(HorizontalPodAutoscaler, __self__).__init__( + 'kubernetes:autoscaling/v1:HorizontalPodAutoscaler', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing HorizontalPodAutoscaler resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return HorizontalPodAutoscaler(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py new file mode 100644 index 0000000000..5965cb6b01 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py @@ -0,0 +1,239 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class HorizontalPodAutoscalerList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + list of horizontal pod autoscaler objects. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * `max_replicas` (`float`) - upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + * `min_replicas` (`float`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * `scale_target_ref` (`dict`) - reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. + * `api_version` (`str`) - API version of the referent + * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `target_cpu_utilization_percentage` (`float`) - target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. + + * `status` (`dict`) - current information about the autoscaler. + * `current_cpu_utilization_percentage` (`float`) - current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + * `current_replicas` (`float`) - current number of replicas of pods managed by this autoscaler. + * `desired_replicas` (`float`) - desired number of replicas of pods managed by this autoscaler. + * `last_scale_time` (`str`) - last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. + * `observed_generation` (`float`) - most recent generation observed by this autoscaler. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + list of horizontal pod autoscaler objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: list of horizontal pod autoscaler objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * `max_replicas` (`pulumi.Input[float]`) - upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. + * `min_replicas` (`pulumi.Input[float]`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * `scale_target_ref` (`pulumi.Input[dict]`) - reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. + * `api_version` (`pulumi.Input[str]`) - API version of the referent + * `kind` (`pulumi.Input[str]`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`pulumi.Input[str]`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `target_cpu_utilization_percentage` (`pulumi.Input[float]`) - target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. + + * `status` (`pulumi.Input[dict]`) - current information about the autoscaler. + * `current_cpu_utilization_percentage` (`pulumi.Input[float]`) - current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. + * `current_replicas` (`pulumi.Input[float]`) - current number of replicas of pods managed by this autoscaler. + * `desired_replicas` (`pulumi.Input[float]`) - desired number of replicas of pods managed by this autoscaler. + * `last_scale_time` (`pulumi.Input[str]`) - last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. + * `observed_generation` (`pulumi.Input[float]`) - most recent generation observed by this autoscaler. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(HorizontalPodAutoscalerList, __self__).__init__( + 'kubernetes:autoscaling/v1:HorizontalPodAutoscalerList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing HorizontalPodAutoscalerList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return HorizontalPodAutoscalerList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py deleted file mode 100755 index 2547952a9c..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +++ /dev/null @@ -1,123 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class HorizontalPodAutoscaler(pulumi.CustomResource): - """ - HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which - automatically manages the replica count of any resource implementing the scale subresource based - on the metrics specified. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - metadata is the standard object metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - spec is the specification for the behaviour of the autoscaler. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - """ - - status: pulumi.Output[dict] - """ - status is the current information about the autoscaler. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a HorizontalPodAutoscaler resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: metadata is the standard object metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: spec is the specification for the behaviour of the autoscaler. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'autoscaling/v2beta1' - __props__['kind'] = 'HorizontalPodAutoscaler' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:autoscaling/v1:HorizontalPodAutoscaler"), - pulumi.Alias(type_="kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(HorizontalPodAutoscaler, self).__init__( - "kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `HorizontalPodAutoscaler` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return HorizontalPodAutoscaler(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py deleted file mode 100755 index b2056fd368..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class HorizontalPodAutoscalerList(pulumi.CustomResource): - """ - HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is the list of horizontal pod autoscaler objects. - """ - - metadata: pulumi.Output[dict] - """ - metadata is the standard list metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a HorizontalPodAutoscalerList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is the list of horizontal pod autoscaler objects. - :param pulumi.Input[dict] metadata: metadata is the standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'autoscaling/v2beta1' - __props__['kind'] = 'HorizontalPodAutoscalerList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(HorizontalPodAutoscalerList, self).__init__( - "kubernetes:autoscaling/v2beta1:HorizontalPodAutoscalerList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `HorizontalPodAutoscalerList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return HorizontalPodAutoscalerList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py old mode 100755 new mode 100644 index 8a611425a7..e36ca54496 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .HorizontalPodAutoscaler import (HorizontalPodAutoscaler) -from .HorizontalPodAutoscalerList import (HorizontalPodAutoscalerList) +from .horizontal_pod_autoscaler import * +from .horizontal_pod_autoscaler_list import * diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py new file mode 100644 index 0000000000..d1fbb6fa4d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py @@ -0,0 +1,318 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class HorizontalPodAutoscaler(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * `max_replicas` (`float`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + * `metrics` (`list`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. + * `external` (`dict`) - 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). + * `metricName` (`str`) - metricName is the name of the metric in question. + * `metricSelector` (`dict`) - metricSelector is used to identify a specific time series within a given metric. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `targetAverageValue` (`str`) - targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. + * `targetValue` (`str`) - targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. + + * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `averageValue` (`str`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * `metricName` (`str`) - metricName is the name of the metric in question. + * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + * `target` (`dict`) - target is the described Kubernetes object. + * `api_version` (`str`) - API version of the referent + * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `targetValue` (`str`) - targetValue is the target value of the metric (as a quantity). + + * `pods` (`dict`) - 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. + * `metricName` (`str`) - metricName is the name of the metric in question + * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + * `targetAverageValue` (`str`) - targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) + + * `resource` (`dict`) - 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. + * `name` (`str`) - name is the name of the resource in question. + * `targetAverageUtilization` (`float`) - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + * `targetAverageValue` (`str`) - targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. + + * `type` (`str`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. + + * `min_replicas` (`float`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * `scale_target_ref` (`dict`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + """ + status: pulumi.Output[dict] + """ + status is the current information about the autoscaler. + * `conditions` (`list`) - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. + * `lastTransitionTime` (`str`) - lastTransitionTime is the last time the condition transitioned from one status to another + * `message` (`str`) - message is a human-readable explanation containing details about the transition + * `reason` (`str`) - reason is the reason for the condition's last transition. + * `status` (`str`) - status is the status of the condition (True, False, Unknown) + * `type` (`str`) - type describes the current condition + + * `current_metrics` (`list`) - currentMetrics is the last read state of the metrics used by this autoscaler. + * `external` (`dict`) - 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). + * `currentAverageValue` (`str`) - currentAverageValue is the current value of metric averaged over autoscaled pods. + * `currentValue` (`str`) - currentValue is the current value of the metric (as a quantity) + * `metricName` (`str`) - metricName is the name of a metric used for autoscaling in metric system. + * `metricSelector` (`dict`) - metricSelector is used to identify a specific time series within a given metric. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `averageValue` (`str`) - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) + * `currentValue` (`str`) - currentValue is the current value of the metric (as a quantity). + * `metricName` (`str`) - metricName is the name of the metric in question. + * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * `target` (`dict`) - target is the described Kubernetes object. + * `api_version` (`str`) - API version of the referent + * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `pods` (`dict`) - 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. + * `currentAverageValue` (`str`) - currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) + * `metricName` (`str`) - metricName is the name of the metric in question + * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + + * `resource` (`dict`) - 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. + * `currentAverageUtilization` (`float`) - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. + * `currentAverageValue` (`str`) - currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification. + * `name` (`str`) - name is the name of the resource in question. + + * `type` (`str`) - type is the type of metric source. It will be one of "Object", "Pods" or "Resource", each corresponds to a matching field in the object. + + * `current_replicas` (`float`) - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. + * `desired_replicas` (`float`) - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. + * `last_scale_time` (`str`) - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. + * `observed_generation` (`float`) - observedGeneration is the most recent generation observed by this autoscaler. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `max_replicas` (`pulumi.Input[float]`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + * `metrics` (`pulumi.Input[list]`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. + * `external` (`pulumi.Input[dict]`) - 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). + * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question. + * `metricSelector` (`pulumi.Input[dict]`) - metricSelector is used to identify a specific time series within a given metric. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `targetAverageValue` (`pulumi.Input[str]`) - targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. + * `targetValue` (`pulumi.Input[str]`) - targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. + + * `object` (`pulumi.Input[dict]`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `averageValue` (`pulumi.Input[str]`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question. + * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + * `target` (`pulumi.Input[dict]`) - target is the described Kubernetes object. + * `api_version` (`pulumi.Input[str]`) - API version of the referent + * `kind` (`pulumi.Input[str]`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`pulumi.Input[str]`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `targetValue` (`pulumi.Input[str]`) - targetValue is the target value of the metric (as a quantity). + + * `pods` (`pulumi.Input[dict]`) - 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. + * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question + * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + * `targetAverageValue` (`pulumi.Input[str]`) - targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) + + * `resource` (`pulumi.Input[dict]`) - 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. + * `name` (`pulumi.Input[str]`) - name is the name of the resource in question. + * `targetAverageUtilization` (`pulumi.Input[float]`) - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + * `targetAverageValue` (`pulumi.Input[str]`) - targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. + + * `type` (`pulumi.Input[str]`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. + + * `min_replicas` (`pulumi.Input[float]`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * `scale_target_ref` (`pulumi.Input[dict]`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:autoscaling/v1:HorizontalPodAutoscaler"), pulumi.Alias(type_="kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(HorizontalPodAutoscaler, __self__).__init__( + 'kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing HorizontalPodAutoscaler resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return HorizontalPodAutoscaler(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py new file mode 100644 index 0000000000..7043bc2af6 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py @@ -0,0 +1,367 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class HorizontalPodAutoscalerList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of horizontal pod autoscaler objects. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * `max_replicas` (`float`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + * `metrics` (`list`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. + * `external` (`dict`) - 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). + * `metricName` (`str`) - metricName is the name of the metric in question. + * `metricSelector` (`dict`) - metricSelector is used to identify a specific time series within a given metric. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `targetAverageValue` (`str`) - targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. + * `targetValue` (`str`) - targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. + + * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `averageValue` (`str`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * `metricName` (`str`) - metricName is the name of the metric in question. + * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + * `target` (`dict`) - target is the described Kubernetes object. + * `api_version` (`str`) - API version of the referent + * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `targetValue` (`str`) - targetValue is the target value of the metric (as a quantity). + + * `pods` (`dict`) - 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. + * `metricName` (`str`) - metricName is the name of the metric in question + * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + * `targetAverageValue` (`str`) - targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) + + * `resource` (`dict`) - 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. + * `name` (`str`) - name is the name of the resource in question. + * `targetAverageUtilization` (`float`) - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + * `targetAverageValue` (`str`) - targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. + + * `type` (`str`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. + + * `min_replicas` (`float`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * `scale_target_ref` (`dict`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + + * `status` (`dict`) - status is the current information about the autoscaler. + * `conditions` (`list`) - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. + * `lastTransitionTime` (`str`) - lastTransitionTime is the last time the condition transitioned from one status to another + * `message` (`str`) - message is a human-readable explanation containing details about the transition + * `reason` (`str`) - reason is the reason for the condition's last transition. + * `status` (`str`) - status is the status of the condition (True, False, Unknown) + * `type` (`str`) - type describes the current condition + + * `current_metrics` (`list`) - currentMetrics is the last read state of the metrics used by this autoscaler. + * `external` (`dict`) - 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). + * `currentAverageValue` (`str`) - currentAverageValue is the current value of metric averaged over autoscaled pods. + * `currentValue` (`str`) - currentValue is the current value of the metric (as a quantity) + * `metricName` (`str`) - metricName is the name of a metric used for autoscaling in metric system. + * `metricSelector` (`dict`) - metricSelector is used to identify a specific time series within a given metric. + + * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `averageValue` (`str`) - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) + * `currentValue` (`str`) - currentValue is the current value of the metric (as a quantity). + * `metricName` (`str`) - metricName is the name of the metric in question. + * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * `target` (`dict`) - target is the described Kubernetes object. + + * `pods` (`dict`) - 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. + * `currentAverageValue` (`str`) - currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) + * `metricName` (`str`) - metricName is the name of the metric in question + * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + + * `resource` (`dict`) - 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. + * `currentAverageUtilization` (`float`) - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. + * `currentAverageValue` (`str`) - currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification. + * `name` (`str`) - name is the name of the resource in question. + + * `type` (`str`) - type is the type of metric source. It will be one of "Object", "Pods" or "Resource", each corresponds to a matching field in the object. + + * `current_replicas` (`float`) - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. + * `desired_replicas` (`float`) - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. + * `last_scale_time` (`str`) - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. + * `observed_generation` (`float`) - observedGeneration is the most recent generation observed by this autoscaler. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + metadata is the standard list metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of horizontal pod autoscaler objects. + :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 + :param pulumi.Input[dict] metadata: metadata is the standard list metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * `max_replicas` (`pulumi.Input[float]`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + * `metrics` (`pulumi.Input[list]`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. + * `external` (`pulumi.Input[dict]`) - 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). + * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question. + * `metricSelector` (`pulumi.Input[dict]`) - metricSelector is used to identify a specific time series within a given metric. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `targetAverageValue` (`pulumi.Input[str]`) - targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. + * `targetValue` (`pulumi.Input[str]`) - targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. + + * `object` (`pulumi.Input[dict]`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `averageValue` (`pulumi.Input[str]`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question. + * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + * `target` (`pulumi.Input[dict]`) - target is the described Kubernetes object. + * `api_version` (`pulumi.Input[str]`) - API version of the referent + * `kind` (`pulumi.Input[str]`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`pulumi.Input[str]`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `targetValue` (`pulumi.Input[str]`) - targetValue is the target value of the metric (as a quantity). + + * `pods` (`pulumi.Input[dict]`) - 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. + * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question + * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + * `targetAverageValue` (`pulumi.Input[str]`) - targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) + + * `resource` (`pulumi.Input[dict]`) - 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. + * `name` (`pulumi.Input[str]`) - name is the name of the resource in question. + * `targetAverageUtilization` (`pulumi.Input[float]`) - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + * `targetAverageValue` (`pulumi.Input[str]`) - targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. + + * `type` (`pulumi.Input[str]`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. + + * `min_replicas` (`pulumi.Input[float]`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * `scale_target_ref` (`pulumi.Input[dict]`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + + * `status` (`pulumi.Input[dict]`) - status is the current information about the autoscaler. + * `conditions` (`pulumi.Input[list]`) - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. + * `lastTransitionTime` (`pulumi.Input[str]`) - lastTransitionTime is the last time the condition transitioned from one status to another + * `message` (`pulumi.Input[str]`) - message is a human-readable explanation containing details about the transition + * `reason` (`pulumi.Input[str]`) - reason is the reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - status is the status of the condition (True, False, Unknown) + * `type` (`pulumi.Input[str]`) - type describes the current condition + + * `current_metrics` (`pulumi.Input[list]`) - currentMetrics is the last read state of the metrics used by this autoscaler. + * `external` (`pulumi.Input[dict]`) - 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). + * `currentAverageValue` (`pulumi.Input[str]`) - currentAverageValue is the current value of metric averaged over autoscaled pods. + * `currentValue` (`pulumi.Input[str]`) - currentValue is the current value of the metric (as a quantity) + * `metricName` (`pulumi.Input[str]`) - metricName is the name of a metric used for autoscaling in metric system. + * `metricSelector` (`pulumi.Input[dict]`) - metricSelector is used to identify a specific time series within a given metric. + + * `object` (`pulumi.Input[dict]`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `averageValue` (`pulumi.Input[str]`) - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) + * `currentValue` (`pulumi.Input[str]`) - currentValue is the current value of the metric (as a quantity). + * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question. + * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * `target` (`pulumi.Input[dict]`) - target is the described Kubernetes object. + + * `pods` (`pulumi.Input[dict]`) - 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. + * `currentAverageValue` (`pulumi.Input[str]`) - currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) + * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question + * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + + * `resource` (`pulumi.Input[dict]`) - 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. + * `currentAverageUtilization` (`pulumi.Input[float]`) - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. + * `currentAverageValue` (`pulumi.Input[str]`) - currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification. + * `name` (`pulumi.Input[str]`) - name is the name of the resource in question. + + * `type` (`pulumi.Input[str]`) - type is the type of metric source. It will be one of "Object", "Pods" or "Resource", each corresponds to a matching field in the object. + + * `current_replicas` (`pulumi.Input[float]`) - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. + * `desired_replicas` (`pulumi.Input[float]`) - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. + * `last_scale_time` (`pulumi.Input[str]`) - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. + * `observed_generation` (`pulumi.Input[float]`) - observedGeneration is the most recent generation observed by this autoscaler. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(HorizontalPodAutoscalerList, __self__).__init__( + 'kubernetes:autoscaling/v2beta1:HorizontalPodAutoscalerList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing HorizontalPodAutoscalerList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return HorizontalPodAutoscalerList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py deleted file mode 100755 index 5c6feb1b37..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +++ /dev/null @@ -1,123 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class HorizontalPodAutoscaler(pulumi.CustomResource): - """ - HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which - automatically manages the replica count of any resource implementing the scale subresource based - on the metrics specified. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - metadata is the standard object metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - spec is the specification for the behaviour of the autoscaler. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - """ - - status: pulumi.Output[dict] - """ - status is the current information about the autoscaler. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a HorizontalPodAutoscaler resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: metadata is the standard object metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: spec is the specification for the behaviour of the autoscaler. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'autoscaling/v2beta2' - __props__['kind'] = 'HorizontalPodAutoscaler' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:autoscaling/v1:HorizontalPodAutoscaler"), - pulumi.Alias(type_="kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(HorizontalPodAutoscaler, self).__init__( - "kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `HorizontalPodAutoscaler` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return HorizontalPodAutoscaler(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py deleted file mode 100755 index cb33489c3b..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class HorizontalPodAutoscalerList(pulumi.CustomResource): - """ - HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is the list of horizontal pod autoscaler objects. - """ - - metadata: pulumi.Output[dict] - """ - metadata is the standard list metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a HorizontalPodAutoscalerList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is the list of horizontal pod autoscaler objects. - :param pulumi.Input[dict] metadata: metadata is the standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'autoscaling/v2beta2' - __props__['kind'] = 'HorizontalPodAutoscalerList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(HorizontalPodAutoscalerList, self).__init__( - "kubernetes:autoscaling/v2beta2:HorizontalPodAutoscalerList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `HorizontalPodAutoscalerList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return HorizontalPodAutoscalerList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py old mode 100755 new mode 100644 index 8a611425a7..e36ca54496 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .HorizontalPodAutoscaler import (HorizontalPodAutoscaler) -from .HorizontalPodAutoscalerList import (HorizontalPodAutoscalerList) +from .horizontal_pod_autoscaler import * +from .horizontal_pod_autoscaler_list import * diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py new file mode 100644 index 0000000000..63797441ea --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py @@ -0,0 +1,349 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class HorizontalPodAutoscaler(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * `behavior` (`dict`) - behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. + * `scale_down` (`dict`) - scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). + * `policies` (`list`) - policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid + * `periodSeconds` (`float`) - PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). + * `type` (`str`) - Type is used to specify the scaling policy. + * `value` (`float`) - Value contains the amount of change which is permitted by the policy. It must be greater than zero + + * `select_policy` (`str`) - selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. + * `stabilization_window_seconds` (`float`) - StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). + + * `scale_up` (`dict`) - scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: + * increase no more than 4 pods per 60 seconds + * double the number of pods per 60 seconds + No stabilization is used. + + * `max_replicas` (`float`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + * `metrics` (`list`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. + * `external` (`dict`) - 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). + * `metric` (`dict`) - metric identifies the target metric by name and selector + * `name` (`str`) - name is the name of the given metric + * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `target` (`dict`) - target specifies the target value for the given metric + * `averageUtilization` (`float`) - averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type + * `averageValue` (`str`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * `type` (`str`) - type represents whether the metric type is Utilization, Value, or AverageValue + * `value` (`str`) - value is the target value of the metric (as a quantity). + + * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `describedObject` (`dict`) + * `api_version` (`str`) - API version of the referent + * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `metric` (`dict`) - metric identifies the target metric by name and selector + * `target` (`dict`) - target specifies the target value for the given metric + + * `pods` (`dict`) - 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. + * `metric` (`dict`) - metric identifies the target metric by name and selector + * `target` (`dict`) - target specifies the target value for the given metric + + * `resource` (`dict`) - 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. + * `name` (`str`) - name is the name of the resource in question. + * `target` (`dict`) - target specifies the target value for the given metric + + * `type` (`str`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. + + * `min_replicas` (`float`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * `scale_target_ref` (`dict`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + """ + status: pulumi.Output[dict] + """ + status is the current information about the autoscaler. + * `conditions` (`list`) - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. + * `lastTransitionTime` (`str`) - lastTransitionTime is the last time the condition transitioned from one status to another + * `message` (`str`) - message is a human-readable explanation containing details about the transition + * `reason` (`str`) - reason is the reason for the condition's last transition. + * `status` (`str`) - status is the status of the condition (True, False, Unknown) + * `type` (`str`) - type describes the current condition + + * `current_metrics` (`list`) - currentMetrics is the last read state of the metrics used by this autoscaler. + * `external` (`dict`) - 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). + * `current` (`dict`) - current contains the current value for the given metric + * `averageUtilization` (`float`) - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + * `averageValue` (`str`) - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) + * `value` (`str`) - value is the current value of the metric (as a quantity). + + * `metric` (`dict`) - metric identifies the target metric by name and selector + * `name` (`str`) - name is the name of the given metric + * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `current` (`dict`) - current contains the current value for the given metric + * `describedObject` (`dict`) + * `api_version` (`str`) - API version of the referent + * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `metric` (`dict`) - metric identifies the target metric by name and selector + + * `pods` (`dict`) - 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. + * `current` (`dict`) - current contains the current value for the given metric + * `metric` (`dict`) - metric identifies the target metric by name and selector + + * `resource` (`dict`) - 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. + * `current` (`dict`) - current contains the current value for the given metric + * `name` (`str`) - Name is the name of the resource in question. + + * `type` (`str`) - type is the type of metric source. It will be one of "Object", "Pods" or "Resource", each corresponds to a matching field in the object. + + * `current_replicas` (`float`) - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. + * `desired_replicas` (`float`) - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. + * `last_scale_time` (`str`) - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. + * `observed_generation` (`float`) - observedGeneration is the most recent generation observed by this autoscaler. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `behavior` (`pulumi.Input[dict]`) - behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. + * `scale_down` (`pulumi.Input[dict]`) - scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). + * `policies` (`pulumi.Input[list]`) - policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid + * `periodSeconds` (`pulumi.Input[float]`) - PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). + * `type` (`pulumi.Input[str]`) - Type is used to specify the scaling policy. + * `value` (`pulumi.Input[float]`) - Value contains the amount of change which is permitted by the policy. It must be greater than zero + + * `select_policy` (`pulumi.Input[str]`) - selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. + * `stabilization_window_seconds` (`pulumi.Input[float]`) - StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). + + * `scale_up` (`pulumi.Input[dict]`) - scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: + * increase no more than 4 pods per 60 seconds + * double the number of pods per 60 seconds + No stabilization is used. + + * `max_replicas` (`pulumi.Input[float]`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + * `metrics` (`pulumi.Input[list]`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. + * `external` (`pulumi.Input[dict]`) - 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). + * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector + * `name` (`pulumi.Input[str]`) - name is the name of the given metric + * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric + * `averageUtilization` (`pulumi.Input[float]`) - averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type + * `averageValue` (`pulumi.Input[str]`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * `type` (`pulumi.Input[str]`) - type represents whether the metric type is Utilization, Value, or AverageValue + * `value` (`pulumi.Input[str]`) - value is the target value of the metric (as a quantity). + + * `object` (`pulumi.Input[dict]`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `describedObject` (`pulumi.Input[dict]`) + * `api_version` (`pulumi.Input[str]`) - API version of the referent + * `kind` (`pulumi.Input[str]`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`pulumi.Input[str]`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector + * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric + + * `pods` (`pulumi.Input[dict]`) - 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. + * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector + * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric + + * `resource` (`pulumi.Input[dict]`) - 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. + * `name` (`pulumi.Input[str]`) - name is the name of the resource in question. + * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric + + * `type` (`pulumi.Input[str]`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. + + * `min_replicas` (`pulumi.Input[float]`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * `scale_target_ref` (`pulumi.Input[dict]`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:autoscaling/v1:HorizontalPodAutoscaler"), pulumi.Alias(type_="kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(HorizontalPodAutoscaler, __self__).__init__( + 'kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing HorizontalPodAutoscaler resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return HorizontalPodAutoscaler(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py new file mode 100644 index 0000000000..0acb3091ee --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py @@ -0,0 +1,393 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class HorizontalPodAutoscalerList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of horizontal pod autoscaler objects. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * `behavior` (`dict`) - behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. + * `scale_down` (`dict`) - scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). + * `policies` (`list`) - policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid + * `periodSeconds` (`float`) - PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). + * `type` (`str`) - Type is used to specify the scaling policy. + * `value` (`float`) - Value contains the amount of change which is permitted by the policy. It must be greater than zero + + * `select_policy` (`str`) - selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. + * `stabilization_window_seconds` (`float`) - StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). + + * `scale_up` (`dict`) - scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: + * increase no more than 4 pods per 60 seconds + * double the number of pods per 60 seconds + No stabilization is used. + + * `max_replicas` (`float`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + * `metrics` (`list`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. + * `external` (`dict`) - 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). + * `metric` (`dict`) - metric identifies the target metric by name and selector + * `name` (`str`) - name is the name of the given metric + * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `target` (`dict`) - target specifies the target value for the given metric + * `averageUtilization` (`float`) - averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type + * `averageValue` (`str`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * `type` (`str`) - type represents whether the metric type is Utilization, Value, or AverageValue + * `value` (`str`) - value is the target value of the metric (as a quantity). + + * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `describedObject` (`dict`) + * `api_version` (`str`) - API version of the referent + * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `metric` (`dict`) - metric identifies the target metric by name and selector + * `target` (`dict`) - target specifies the target value for the given metric + + * `pods` (`dict`) - 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. + * `metric` (`dict`) - metric identifies the target metric by name and selector + * `target` (`dict`) - target specifies the target value for the given metric + + * `resource` (`dict`) - 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. + * `name` (`str`) - name is the name of the resource in question. + * `target` (`dict`) - target specifies the target value for the given metric + + * `type` (`str`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. + + * `min_replicas` (`float`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * `scale_target_ref` (`dict`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + + * `status` (`dict`) - status is the current information about the autoscaler. + * `conditions` (`list`) - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. + * `lastTransitionTime` (`str`) - lastTransitionTime is the last time the condition transitioned from one status to another + * `message` (`str`) - message is a human-readable explanation containing details about the transition + * `reason` (`str`) - reason is the reason for the condition's last transition. + * `status` (`str`) - status is the status of the condition (True, False, Unknown) + * `type` (`str`) - type describes the current condition + + * `current_metrics` (`list`) - currentMetrics is the last read state of the metrics used by this autoscaler. + * `external` (`dict`) - 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). + * `current` (`dict`) - current contains the current value for the given metric + * `averageUtilization` (`float`) - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + * `averageValue` (`str`) - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) + * `value` (`str`) - value is the current value of the metric (as a quantity). + + * `metric` (`dict`) - metric identifies the target metric by name and selector + + * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `current` (`dict`) - current contains the current value for the given metric + * `describedObject` (`dict`) + * `metric` (`dict`) - metric identifies the target metric by name and selector + + * `pods` (`dict`) - 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. + * `current` (`dict`) - current contains the current value for the given metric + * `metric` (`dict`) - metric identifies the target metric by name and selector + + * `resource` (`dict`) - 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. + * `current` (`dict`) - current contains the current value for the given metric + * `name` (`str`) - Name is the name of the resource in question. + + * `type` (`str`) - type is the type of metric source. It will be one of "Object", "Pods" or "Resource", each corresponds to a matching field in the object. + + * `current_replicas` (`float`) - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. + * `desired_replicas` (`float`) - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. + * `last_scale_time` (`str`) - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. + * `observed_generation` (`float`) - observedGeneration is the most recent generation observed by this autoscaler. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + metadata is the standard list metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of horizontal pod autoscaler objects. + :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 + :param pulumi.Input[dict] metadata: metadata is the standard list metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * `behavior` (`pulumi.Input[dict]`) - behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. + * `scale_down` (`pulumi.Input[dict]`) - scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). + * `policies` (`pulumi.Input[list]`) - policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid + * `periodSeconds` (`pulumi.Input[float]`) - PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). + * `type` (`pulumi.Input[str]`) - Type is used to specify the scaling policy. + * `value` (`pulumi.Input[float]`) - Value contains the amount of change which is permitted by the policy. It must be greater than zero + + * `select_policy` (`pulumi.Input[str]`) - selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. + * `stabilization_window_seconds` (`pulumi.Input[float]`) - StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). + + * `scale_up` (`pulumi.Input[dict]`) - scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: + * increase no more than 4 pods per 60 seconds + * double the number of pods per 60 seconds + No stabilization is used. + + * `max_replicas` (`pulumi.Input[float]`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. + * `metrics` (`pulumi.Input[list]`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. + * `external` (`pulumi.Input[dict]`) - 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). + * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector + * `name` (`pulumi.Input[str]`) - name is the name of the given metric + * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric + * `averageUtilization` (`pulumi.Input[float]`) - averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type + * `averageValue` (`pulumi.Input[str]`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * `type` (`pulumi.Input[str]`) - type represents whether the metric type is Utilization, Value, or AverageValue + * `value` (`pulumi.Input[str]`) - value is the target value of the metric (as a quantity). + + * `object` (`pulumi.Input[dict]`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `describedObject` (`pulumi.Input[dict]`) + * `api_version` (`pulumi.Input[str]`) - API version of the referent + * `kind` (`pulumi.Input[str]`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + * `name` (`pulumi.Input[str]`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names + + * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector + * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric + + * `pods` (`pulumi.Input[dict]`) - 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. + * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector + * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric + + * `resource` (`pulumi.Input[dict]`) - 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. + * `name` (`pulumi.Input[str]`) - name is the name of the resource in question. + * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric + + * `type` (`pulumi.Input[str]`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. + + * `min_replicas` (`pulumi.Input[float]`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. + * `scale_target_ref` (`pulumi.Input[dict]`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + + * `status` (`pulumi.Input[dict]`) - status is the current information about the autoscaler. + * `conditions` (`pulumi.Input[list]`) - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. + * `lastTransitionTime` (`pulumi.Input[str]`) - lastTransitionTime is the last time the condition transitioned from one status to another + * `message` (`pulumi.Input[str]`) - message is a human-readable explanation containing details about the transition + * `reason` (`pulumi.Input[str]`) - reason is the reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - status is the status of the condition (True, False, Unknown) + * `type` (`pulumi.Input[str]`) - type describes the current condition + + * `current_metrics` (`pulumi.Input[list]`) - currentMetrics is the last read state of the metrics used by this autoscaler. + * `external` (`pulumi.Input[dict]`) - 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). + * `current` (`pulumi.Input[dict]`) - current contains the current value for the given metric + * `averageUtilization` (`pulumi.Input[float]`) - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. + * `averageValue` (`pulumi.Input[str]`) - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) + * `value` (`pulumi.Input[str]`) - value is the current value of the metric (as a quantity). + + * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector + + * `object` (`pulumi.Input[dict]`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). + * `current` (`pulumi.Input[dict]`) - current contains the current value for the given metric + * `describedObject` (`pulumi.Input[dict]`) + * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector + + * `pods` (`pulumi.Input[dict]`) - 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. + * `current` (`pulumi.Input[dict]`) - current contains the current value for the given metric + * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector + + * `resource` (`pulumi.Input[dict]`) - 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. + * `current` (`pulumi.Input[dict]`) - current contains the current value for the given metric + * `name` (`pulumi.Input[str]`) - Name is the name of the resource in question. + + * `type` (`pulumi.Input[str]`) - type is the type of metric source. It will be one of "Object", "Pods" or "Resource", each corresponds to a matching field in the object. + + * `current_replicas` (`pulumi.Input[float]`) - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. + * `desired_replicas` (`pulumi.Input[float]`) - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. + * `last_scale_time` (`pulumi.Input[str]`) - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. + * `observed_generation` (`pulumi.Input[float]`) - observedGeneration is the most recent generation observed by this autoscaler. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(HorizontalPodAutoscalerList, __self__).__init__( + 'kubernetes:autoscaling/v2beta2:HorizontalPodAutoscalerList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing HorizontalPodAutoscalerList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return HorizontalPodAutoscalerList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/__init__.py b/sdk/python/pulumi_kubernetes/batch/__init__.py old mode 100755 new mode 100644 index 9149a27199..11842b0e79 --- a/sdk/python/pulumi_kubernetes/batch/__init__.py +++ b/sdk/python/pulumi_kubernetes/batch/__init__.py @@ -1,10 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", - "v1beta1", - "v2alpha1", -] +__all__ = ['v1', 'v1beta1', 'v2alpha1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/batch/v1/Job.py b/sdk/python/pulumi_kubernetes/batch/v1/Job.py deleted file mode 100755 index 7595bd3ec5..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v1/Job.py +++ /dev/null @@ -1,131 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Job(pulumi.CustomResource): - """ - Job represents the configuration of a single job. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The Job's '.status.startTime' is set, which indicates that the Job has started running. - 2. The Job's '.status.conditions' has a status of type 'Complete', and a 'status' set - to 'True'. - 3. The Job's '.status.conditions' do not have a status of type 'Failed', with a - 'status' set to 'True'. If this condition is set, we should fail the Job immediately. - - If the Job has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of a job. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Current status of a job. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a Job resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired behavior of a job. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'batch/v1' - __props__['kind'] = 'Job' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(Job, self).__init__( - "kubernetes:batch/v1:Job", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Job` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Job(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py deleted file mode 100755 index e3d6703daa..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class JobList(pulumi.CustomResource): - """ - JobList is a collection of jobs. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is the list of Jobs. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a JobList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is the list of Jobs. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'batch/v1' - __props__['kind'] = 'JobList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(JobList, self).__init__( - "kubernetes:batch/v1:JobList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `JobList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return JobList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1/__init__.py b/sdk/python/pulumi_kubernetes/batch/v1/__init__.py old mode 100755 new mode 100644 index 32496c78e8..44134015e1 --- a/sdk/python/pulumi_kubernetes/batch/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .Job import (Job) -from .JobList import (JobList) +from .job import * +from .job_list import * diff --git a/sdk/python/pulumi_kubernetes/batch/v1/job.py b/sdk/python/pulumi_kubernetes/batch/v1/job.py new file mode 100644 index 0000000000..aeab1cd307 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v1/job.py @@ -0,0 +1,1211 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Job(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + * `backoff_limit` (`float`) - Specifies the number of retries before marking this job failed. Defaults to 6 + * `completions` (`float`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ + * `manual_selector` (`bool`) - 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 + * `parallelism` (`float`) - 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/ + * `selector` (`dict`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `ttl_seconds_after_finished` (`float`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + """ + status: pulumi.Output[dict] + """ + Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active` (`float`) - The number of actively running pods. + * `completion_time` (`str`) - Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + * `conditions` (`list`) - The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `lastProbeTime` (`str`) - Last time the condition was checked. + * `lastTransitionTime` (`str`) - Last time the condition transit from one status to another. + * `message` (`str`) - Human readable message indicating details about last transition. + * `reason` (`str`) - (brief) reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of job condition, Complete or Failed. + + * `failed` (`float`) - The number of pods which reached phase Failed. + * `start_time` (`str`) - Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + * `succeeded` (`float`) - The number of pods which reached phase Succeeded. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Job represents the configuration of a single job. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Job's '.status.startTime' is set, which indicates that the Job has started running. + 2. The Job's '.status.conditions' has a status of type 'Complete', and a 'status' set + to 'True'. + 3. The Job's '.status.conditions' do not have a status of type 'Failed', with a + 'status' set to 'True'. If this condition is set, we should fail the Job immediately. + + If the Job has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `active_deadline_seconds` (`pulumi.Input[float]`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + * `backoff_limit` (`pulumi.Input[float]`) - Specifies the number of retries before marking this job failed. Defaults to 6 + * `completions` (`pulumi.Input[float]`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ + * `manual_selector` (`pulumi.Input[bool]`) - 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 + * `parallelism` (`pulumi.Input[float]`) - 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/ + * `selector` (`pulumi.Input[dict]`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `ttl_seconds_after_finished` (`pulumi.Input[float]`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(Job, __self__).__init__( + 'kubernetes:batch/v1:Job', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Job resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Job(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1/job_list.py b/sdk/python/pulumi_kubernetes/batch/v1/job_list.py new file mode 100644 index 0000000000..fb52f2d9f1 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v1/job_list.py @@ -0,0 +1,1185 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class JobList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of Jobs. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + * `backoff_limit` (`float`) - Specifies the number of retries before marking this job failed. Defaults to 6 + * `completions` (`float`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ + * `manual_selector` (`bool`) - 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 + * `parallelism` (`float`) - 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/ + * `selector` (`dict`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `ttl_seconds_after_finished` (`float`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + + * `status` (`dict`) - Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active` (`float`) - The number of actively running pods. + * `completion_time` (`str`) - Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + * `conditions` (`list`) - The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `lastProbeTime` (`str`) - Last time the condition was checked. + * `lastTransitionTime` (`str`) - Last time the condition transit from one status to another. + * `message` (`str`) - Human readable message indicating details about last transition. + * `reason` (`str`) - (brief) reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of job condition, Complete or Failed. + + * `failed` (`float`) - The number of pods which reached phase Failed. + * `start_time` (`str`) - Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + * `succeeded` (`float`) - The number of pods which reached phase Succeeded. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + JobList is a collection of jobs. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of Jobs. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + * `backoff_limit` (`pulumi.Input[float]`) - Specifies the number of retries before marking this job failed. Defaults to 6 + * `completions` (`pulumi.Input[float]`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ + * `manual_selector` (`pulumi.Input[bool]`) - 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 + * `parallelism` (`pulumi.Input[float]`) - 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/ + * `selector` (`pulumi.Input[dict]`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `ttl_seconds_after_finished` (`pulumi.Input[float]`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + + * `status` (`pulumi.Input[dict]`) - Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active` (`pulumi.Input[float]`) - The number of actively running pods. + * `completion_time` (`pulumi.Input[str]`) - Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + * `conditions` (`pulumi.Input[list]`) - The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `lastProbeTime` (`pulumi.Input[str]`) - Last time the condition was checked. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transit from one status to another. + * `message` (`pulumi.Input[str]`) - Human readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - (brief) reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of job condition, Complete or Failed. + + * `failed` (`pulumi.Input[float]`) - The number of pods which reached phase Failed. + * `start_time` (`pulumi.Input[str]`) - Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. + * `succeeded` (`pulumi.Input[float]`) - The number of pods which reached phase Succeeded. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(JobList, __self__).__init__( + 'kubernetes:batch/v1:JobList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing JobList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return JobList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py deleted file mode 100755 index 4522ca03c1..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py +++ /dev/null @@ -1,122 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CronJob(pulumi.CustomResource): - """ - CronJob represents the configuration of a single cron job. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of a cron job, including the schedule. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Current status of a cron job. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a CronJob resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired behavior of a cron job, including the schedule. More - info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'batch/v1beta1' - __props__['kind'] = 'CronJob' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:batch/v2alpha1:CronJob"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(CronJob, self).__init__( - "kubernetes:batch/v1beta1:CronJob", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CronJob` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CronJob(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py deleted file mode 100755 index 5b48527ee9..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CronJobList(pulumi.CustomResource): - """ - CronJobList is a collection of cron jobs. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is the list of CronJobs. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CronJobList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is the list of CronJobs. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'batch/v1beta1' - __props__['kind'] = 'CronJobList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(CronJobList, self).__init__( - "kubernetes:batch/v1beta1:CronJobList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CronJobList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CronJobList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py old mode 100755 new mode 100644 index 2b6b61ed1a..0648063ee2 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .CronJob import (CronJob) -from .CronJobList import (CronJobList) +from .cron_job import * +from .cron_job_list import * diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py new file mode 100644 index 0000000000..ab7660d5d2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py @@ -0,0 +1,1215 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CronJob(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `concurrency_policy` (`str`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one + * `failed_jobs_history_limit` (`float`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `job_template` (`dict`) - Specifies the job that will be created when executing a CronJob. + * `metadata` (`dict`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + * `backoff_limit` (`float`) - Specifies the number of retries before marking this job failed. Defaults to 6 + * `completions` (`float`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ + * `manual_selector` (`bool`) - 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 + * `parallelism` (`float`) - 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/ + * `selector` (`dict`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `ttl_seconds_after_finished` (`float`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + + * `schedule` (`str`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + * `starting_deadline_seconds` (`float`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + * `successful_jobs_history_limit` (`float`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. + * `suspend` (`bool`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + """ + status: pulumi.Output[dict] + """ + Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active` (`list`) - A list of pointers to currently running jobs. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `last_schedule_time` (`str`) - Information when was the last time the job was successfully scheduled. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CronJob represents the configuration of a single cron job. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `concurrency_policy` (`pulumi.Input[str]`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one + * `failed_jobs_history_limit` (`pulumi.Input[float]`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `job_template` (`pulumi.Input[dict]`) - Specifies the job that will be created when executing a CronJob. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + * `backoff_limit` (`pulumi.Input[float]`) - Specifies the number of retries before marking this job failed. Defaults to 6 + * `completions` (`pulumi.Input[float]`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ + * `manual_selector` (`pulumi.Input[bool]`) - 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 + * `parallelism` (`pulumi.Input[float]`) - 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/ + * `selector` (`pulumi.Input[dict]`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `ttl_seconds_after_finished` (`pulumi.Input[float]`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + + * `schedule` (`pulumi.Input[str]`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + * `starting_deadline_seconds` (`pulumi.Input[float]`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + * `successful_jobs_history_limit` (`pulumi.Input[float]`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. + * `suspend` (`pulumi.Input[bool]`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:batch/v2alpha1:CronJob")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CronJob, __self__).__init__( + 'kubernetes:batch/v1beta1:CronJob', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CronJob resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CronJob(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py new file mode 100644 index 0000000000..0903981522 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py @@ -0,0 +1,1199 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CronJobList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of CronJobs. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `concurrency_policy` (`str`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one + * `failed_jobs_history_limit` (`float`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `job_template` (`dict`) - Specifies the job that will be created when executing a CronJob. + * `metadata` (`dict`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + * `backoff_limit` (`float`) - Specifies the number of retries before marking this job failed. Defaults to 6 + * `completions` (`float`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ + * `manual_selector` (`bool`) - 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 + * `parallelism` (`float`) - 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/ + * `selector` (`dict`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `ttl_seconds_after_finished` (`float`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + + * `schedule` (`str`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + * `starting_deadline_seconds` (`float`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + * `successful_jobs_history_limit` (`float`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. + * `suspend` (`bool`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + + * `status` (`dict`) - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active` (`list`) - A list of pointers to currently running jobs. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `last_schedule_time` (`str`) - Information when was the last time the job was successfully scheduled. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CronJobList is a collection of cron jobs. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of CronJobs. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `concurrency_policy` (`pulumi.Input[str]`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one + * `failed_jobs_history_limit` (`pulumi.Input[float]`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `job_template` (`pulumi.Input[dict]`) - Specifies the job that will be created when executing a CronJob. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + * `backoff_limit` (`pulumi.Input[float]`) - Specifies the number of retries before marking this job failed. Defaults to 6 + * `completions` (`pulumi.Input[float]`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ + * `manual_selector` (`pulumi.Input[bool]`) - 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 + * `parallelism` (`pulumi.Input[float]`) - 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/ + * `selector` (`pulumi.Input[dict]`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `ttl_seconds_after_finished` (`pulumi.Input[float]`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + + * `schedule` (`pulumi.Input[str]`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + * `starting_deadline_seconds` (`pulumi.Input[float]`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + * `successful_jobs_history_limit` (`pulumi.Input[float]`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. + * `suspend` (`pulumi.Input[bool]`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + + * `status` (`pulumi.Input[dict]`) - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active` (`pulumi.Input[list]`) - A list of pointers to currently running jobs. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `last_schedule_time` (`pulumi.Input[str]`) - Information when was the last time the job was successfully scheduled. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(CronJobList, __self__).__init__( + 'kubernetes:batch/v1beta1:CronJobList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CronJobList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CronJobList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py deleted file mode 100755 index 284de2373f..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py +++ /dev/null @@ -1,122 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CronJob(pulumi.CustomResource): - """ - CronJob represents the configuration of a single cron job. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of a cron job, including the schedule. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Current status of a cron job. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a CronJob resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired behavior of a cron job, including the schedule. More - info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'batch/v2alpha1' - __props__['kind'] = 'CronJob' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:batch/v1beta1:CronJob"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(CronJob, self).__init__( - "kubernetes:batch/v2alpha1:CronJob", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CronJob` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CronJob(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py deleted file mode 100755 index b50cea2a4d..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CronJobList(pulumi.CustomResource): - """ - CronJobList is a collection of cron jobs. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is the list of CronJobs. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CronJobList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is the list of CronJobs. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'batch/v2alpha1' - __props__['kind'] = 'CronJobList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(CronJobList, self).__init__( - "kubernetes:batch/v2alpha1:CronJobList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CronJobList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CronJobList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py old mode 100755 new mode 100644 index 2b6b61ed1a..0648063ee2 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .CronJob import (CronJob) -from .CronJobList import (CronJobList) +from .cron_job import * +from .cron_job_list import * diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py new file mode 100644 index 0000000000..957aa8e0ec --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py @@ -0,0 +1,1215 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CronJob(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `concurrency_policy` (`str`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one + * `failed_jobs_history_limit` (`float`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + * `job_template` (`dict`) - Specifies the job that will be created when executing a CronJob. + * `metadata` (`dict`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + * `backoff_limit` (`float`) - Specifies the number of retries before marking this job failed. Defaults to 6 + * `completions` (`float`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ + * `manual_selector` (`bool`) - 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 + * `parallelism` (`float`) - 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/ + * `selector` (`dict`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `ttl_seconds_after_finished` (`float`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + + * `schedule` (`str`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + * `starting_deadline_seconds` (`float`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + * `successful_jobs_history_limit` (`float`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + * `suspend` (`bool`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + """ + status: pulumi.Output[dict] + """ + Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active` (`list`) - A list of pointers to currently running jobs. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `last_schedule_time` (`str`) - Information when was the last time the job was successfully scheduled. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CronJob represents the configuration of a single cron job. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `concurrency_policy` (`pulumi.Input[str]`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one + * `failed_jobs_history_limit` (`pulumi.Input[float]`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + * `job_template` (`pulumi.Input[dict]`) - Specifies the job that will be created when executing a CronJob. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + * `backoff_limit` (`pulumi.Input[float]`) - Specifies the number of retries before marking this job failed. Defaults to 6 + * `completions` (`pulumi.Input[float]`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ + * `manual_selector` (`pulumi.Input[bool]`) - 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 + * `parallelism` (`pulumi.Input[float]`) - 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/ + * `selector` (`pulumi.Input[dict]`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `ttl_seconds_after_finished` (`pulumi.Input[float]`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + + * `schedule` (`pulumi.Input[str]`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + * `starting_deadline_seconds` (`pulumi.Input[float]`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + * `successful_jobs_history_limit` (`pulumi.Input[float]`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + * `suspend` (`pulumi.Input[bool]`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:batch/v1beta1:CronJob")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CronJob, __self__).__init__( + 'kubernetes:batch/v2alpha1:CronJob', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CronJob resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CronJob(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py new file mode 100644 index 0000000000..178fa7583c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py @@ -0,0 +1,1199 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CronJobList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of CronJobs. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `concurrency_policy` (`str`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one + * `failed_jobs_history_limit` (`float`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + * `job_template` (`dict`) - Specifies the job that will be created when executing a CronJob. + * `metadata` (`dict`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + * `backoff_limit` (`float`) - Specifies the number of retries before marking this job failed. Defaults to 6 + * `completions` (`float`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ + * `manual_selector` (`bool`) - 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 + * `parallelism` (`float`) - 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/ + * `selector` (`dict`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `ttl_seconds_after_finished` (`float`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + + * `schedule` (`str`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + * `starting_deadline_seconds` (`float`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + * `successful_jobs_history_limit` (`float`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + * `suspend` (`bool`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + + * `status` (`dict`) - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active` (`list`) - A list of pointers to currently running jobs. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `last_schedule_time` (`str`) - Information when was the last time the job was successfully scheduled. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CronJobList is a collection of cron jobs. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of CronJobs. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `concurrency_policy` (`pulumi.Input[str]`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one + * `failed_jobs_history_limit` (`pulumi.Input[float]`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + * `job_template` (`pulumi.Input[dict]`) - Specifies the job that will be created when executing a CronJob. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer + * `backoff_limit` (`pulumi.Input[float]`) - Specifies the number of retries before marking this job failed. Defaults to 6 + * `completions` (`pulumi.Input[float]`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ + * `manual_selector` (`pulumi.Input[bool]`) - 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 + * `parallelism` (`pulumi.Input[float]`) - 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/ + * `selector` (`pulumi.Input[dict]`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `ttl_seconds_after_finished` (`pulumi.Input[float]`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. + + * `schedule` (`pulumi.Input[str]`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + * `starting_deadline_seconds` (`pulumi.Input[float]`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. + * `successful_jobs_history_limit` (`pulumi.Input[float]`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. + * `suspend` (`pulumi.Input[bool]`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. + + * `status` (`pulumi.Input[dict]`) - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active` (`pulumi.Input[list]`) - A list of pointers to currently running jobs. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `last_schedule_time` (`pulumi.Input[str]`) - Information when was the last time the job was successfully scheduled. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(CronJobList, __self__).__init__( + 'kubernetes:batch/v2alpha1:CronJobList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CronJobList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CronJobList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/certificates/__init__.py b/sdk/python/pulumi_kubernetes/certificates/__init__.py old mode 100755 new mode 100644 index 3569e9ec84..a311e81ad2 --- a/sdk/python/pulumi_kubernetes/certificates/__init__.py +++ b/sdk/python/pulumi_kubernetes/certificates/__init__.py @@ -1,8 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1beta1", -] +__all__ = ['v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py deleted file mode 100755 index 4a8bb04b53..0000000000 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +++ /dev/null @@ -1,109 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CertificateSigningRequest(pulumi.CustomResource): - """ - Describes a certificate signing request - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - The certificate request itself and any additional information. - """ - - status: pulumi.Output[dict] - """ - Derived information about the request. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a CertificateSigningRequest resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: - :param pulumi.Input[dict] spec: The certificate request itself and any additional information. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'certificates.k8s.io/v1beta1' - __props__['kind'] = 'CertificateSigningRequest' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(CertificateSigningRequest, self).__init__( - "kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequest", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CertificateSigningRequest` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CertificateSigningRequest(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py deleted file mode 100755 index a1961669ee..0000000000 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +++ /dev/null @@ -1,104 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CertificateSigningRequestList(pulumi.CustomResource): - """ - - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - - - metadata: pulumi.Output[dict] - - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CertificateSigningRequestList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'certificates.k8s.io/v1beta1' - __props__['kind'] = 'CertificateSigningRequestList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(CertificateSigningRequestList, self).__init__( - "kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequestList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CertificateSigningRequestList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CertificateSigningRequestList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py old mode 100755 new mode 100644 index b92425bce1..5811653ffd --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .CertificateSigningRequest import (CertificateSigningRequest) -from .CertificateSigningRequestList import (CertificateSigningRequestList) +from .certificate_signing_request import * +from .certificate_signing_request_list import * diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py new file mode 100644 index 0000000000..5836de64b3 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py @@ -0,0 +1,174 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CertificateSigningRequest(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + The certificate request itself and any additional information. + * `extra` (`dict`) - Extra information about the requesting user. See user.Info interface for details. + * `groups` (`list`) - Group information about the requesting user. See user.Info interface for details. + * `request` (`str`) - Base64-encoded PKCS#10 CSR data + * `signer_name` (`str`) - Requested signer for the request. It is a qualified name in the form: `scope-hostname.io/name`. If empty, it will be defaulted: + 1. If it's a kubelet client certificate, it is assigned + "kubernetes.io/kube-apiserver-client-kubelet". + 2. If it's a kubelet serving certificate, it is assigned + "kubernetes.io/kubelet-serving". + 3. Otherwise, it is assigned "kubernetes.io/legacy-unknown". + Distribution of trust for signers happens out of band. You can select on this field using `spec.signerName`. + * `uid` (`str`) - UID information about the requesting user. See user.Info interface for details. + * `usages` (`list`) - allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 + https://tools.ietf.org/html/rfc5280#section-4.2.1.12 + * `username` (`str`) - Information about the requesting user. See user.Info interface for details. + """ + status: pulumi.Output[dict] + """ + Derived information about the request. + * `certificate` (`str`) - If request was approved, the controller will place the issued certificate here. + * `conditions` (`list`) - Conditions applied to the request, such as approval or denial. + * `lastUpdateTime` (`str`) - timestamp for the last update to this condition + * `message` (`str`) - human readable message with details about the request state + * `reason` (`str`) - brief reason for the request state + * `type` (`str`) - request approval state, currently Approved or Denied. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Describes a certificate signing request + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: The certificate request itself and any additional information. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `extra` (`pulumi.Input[dict]`) - Extra information about the requesting user. See user.Info interface for details. + * `groups` (`pulumi.Input[list]`) - Group information about the requesting user. See user.Info interface for details. + * `request` (`pulumi.Input[str]`) - Base64-encoded PKCS#10 CSR data + * `signer_name` (`pulumi.Input[str]`) - Requested signer for the request. It is a qualified name in the form: `scope-hostname.io/name`. If empty, it will be defaulted: + 1. If it's a kubelet client certificate, it is assigned + "kubernetes.io/kube-apiserver-client-kubelet". + 2. If it's a kubelet serving certificate, it is assigned + "kubernetes.io/kubelet-serving". + 3. Otherwise, it is assigned "kubernetes.io/legacy-unknown". + Distribution of trust for signers happens out of band. You can select on this field using `spec.signerName`. + * `uid` (`pulumi.Input[str]`) - UID information about the requesting user. See user.Info interface for details. + * `usages` (`pulumi.Input[list]`) - allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 + https://tools.ietf.org/html/rfc5280#section-4.2.1.12 + * `username` (`pulumi.Input[str]`) - Information about the requesting user. See user.Info interface for details. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(CertificateSigningRequest, __self__).__init__( + 'kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequest', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CertificateSigningRequest resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CertificateSigningRequest(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py new file mode 100644 index 0000000000..6d10c39f87 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py @@ -0,0 +1,166 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CertificateSigningRequestList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + Create a CertificateSigningRequestList resource with the given unique name, props, and options. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - The certificate request itself and any additional information. + * `extra` (`pulumi.Input[dict]`) - Extra information about the requesting user. See user.Info interface for details. + * `groups` (`pulumi.Input[list]`) - Group information about the requesting user. See user.Info interface for details. + * `request` (`pulumi.Input[str]`) - Base64-encoded PKCS#10 CSR data + * `signer_name` (`pulumi.Input[str]`) - Requested signer for the request. It is a qualified name in the form: `scope-hostname.io/name`. If empty, it will be defaulted: + 1. If it's a kubelet client certificate, it is assigned + "kubernetes.io/kube-apiserver-client-kubelet". + 2. If it's a kubelet serving certificate, it is assigned + "kubernetes.io/kubelet-serving". + 3. Otherwise, it is assigned "kubernetes.io/legacy-unknown". + Distribution of trust for signers happens out of band. You can select on this field using `spec.signerName`. + * `uid` (`pulumi.Input[str]`) - UID information about the requesting user. See user.Info interface for details. + * `usages` (`pulumi.Input[list]`) - allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 + https://tools.ietf.org/html/rfc5280#section-4.2.1.12 + * `username` (`pulumi.Input[str]`) - Information about the requesting user. See user.Info interface for details. + + * `status` (`pulumi.Input[dict]`) - Derived information about the request. + * `certificate` (`pulumi.Input[str]`) - If request was approved, the controller will place the issued certificate here. + * `conditions` (`pulumi.Input[list]`) - Conditions applied to the request, such as approval or denial. + * `lastUpdateTime` (`pulumi.Input[str]`) - timestamp for the last update to this condition + * `message` (`pulumi.Input[str]`) - human readable message with details about the request state + * `reason` (`pulumi.Input[str]`) - brief reason for the request state + * `type` (`pulumi.Input[str]`) - request approval state, currently Approved or Denied. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(CertificateSigningRequestList, __self__).__init__( + 'kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequestList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CertificateSigningRequestList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CertificateSigningRequestList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/__init__.py b/sdk/python/pulumi_kubernetes/coordination/__init__.py old mode 100755 new mode 100644 index 092556c5fd..4c1e851a21 --- a/sdk/python/pulumi_kubernetes/coordination/__init__.py +++ b/sdk/python/pulumi_kubernetes/coordination/__init__.py @@ -1,9 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", - "v1beta1", -] +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py deleted file mode 100755 index fa6fbda223..0000000000 --- a/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py +++ /dev/null @@ -1,115 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Lease(pulumi.CustomResource): - """ - Lease defines a lease concept. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the Lease. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a Lease resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the Lease. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'coordination.k8s.io/v1' - __props__['kind'] = 'Lease' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:coordination.k8s.io/v1beta1:Lease"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(Lease, self).__init__( - "kubernetes:coordination.k8s.io/v1:Lease", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Lease` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Lease(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py deleted file mode 100755 index b50155717c..0000000000 --- a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class LeaseList(pulumi.CustomResource): - """ - LeaseList is a list of Lease objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a LeaseList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of schema objects. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'coordination.k8s.io/v1' - __props__['kind'] = 'LeaseList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(LeaseList, self).__init__( - "kubernetes:coordination.k8s.io/v1:LeaseList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `LeaseList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return LeaseList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py b/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py old mode 100755 new mode 100644 index 67de519c15..8c72d39e4c --- a/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .Lease import (Lease) -from .LeaseList import (LeaseList) +from .lease import * +from .lease_list import * diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/lease.py b/sdk/python/pulumi_kubernetes/coordination/v1/lease.py new file mode 100644 index 0000000000..2ae0e34fe7 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/coordination/v1/lease.py @@ -0,0 +1,197 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Lease(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `acquire_time` (`str`) - acquireTime is a time when the current lease was acquired. + * `holder_identity` (`str`) - holderIdentity contains the identity of the holder of a current lease. + * `lease_duration_seconds` (`float`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + * `lease_transitions` (`float`) - leaseTransitions is the number of transitions of a lease between holders. + * `renew_time` (`str`) - renewTime is a time when the current holder of a lease has last updated the lease. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Lease defines a lease concept. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `acquire_time` (`pulumi.Input[str]`) - acquireTime is a time when the current lease was acquired. + * `holder_identity` (`pulumi.Input[str]`) - holderIdentity contains the identity of the holder of a current lease. + * `lease_duration_seconds` (`pulumi.Input[float]`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + * `lease_transitions` (`pulumi.Input[float]`) - leaseTransitions is the number of transitions of a lease between holders. + * `renew_time` (`pulumi.Input[str]`) - renewTime is a time when the current holder of a lease has last updated the lease. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:coordination.k8s.io/v1beta1:Lease")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Lease, __self__).__init__( + 'kubernetes:coordination.k8s.io/v1:Lease', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Lease resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Lease(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py b/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py new file mode 100644 index 0000000000..46cbbd590f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py @@ -0,0 +1,219 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class LeaseList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `acquire_time` (`str`) - acquireTime is a time when the current lease was acquired. + * `holder_identity` (`str`) - holderIdentity contains the identity of the holder of a current lease. + * `lease_duration_seconds` (`float`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + * `lease_transitions` (`float`) - leaseTransitions is the number of transitions of a lease between holders. + * `renew_time` (`str`) - renewTime is a time when the current holder of a lease has last updated the lease. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + LeaseList is a list of Lease objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `acquire_time` (`pulumi.Input[str]`) - acquireTime is a time when the current lease was acquired. + * `holder_identity` (`pulumi.Input[str]`) - holderIdentity contains the identity of the holder of a current lease. + * `lease_duration_seconds` (`pulumi.Input[float]`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + * `lease_transitions` (`pulumi.Input[float]`) - leaseTransitions is the number of transitions of a lease between holders. + * `renew_time` (`pulumi.Input[str]`) - renewTime is a time when the current holder of a lease has last updated the lease. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(LeaseList, __self__).__init__( + 'kubernetes:coordination.k8s.io/v1:LeaseList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing LeaseList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return LeaseList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py deleted file mode 100755 index ddcf1001d6..0000000000 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py +++ /dev/null @@ -1,115 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Lease(pulumi.CustomResource): - """ - Lease defines a lease concept. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the Lease. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a Lease resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the Lease. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'coordination.k8s.io/v1beta1' - __props__['kind'] = 'Lease' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:coordination.k8s.io/v1:Lease"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(Lease, self).__init__( - "kubernetes:coordination.k8s.io/v1beta1:Lease", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Lease` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Lease(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py deleted file mode 100755 index 40ab0f6677..0000000000 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class LeaseList(pulumi.CustomResource): - """ - LeaseList is a list of Lease objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a LeaseList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of schema objects. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'coordination.k8s.io/v1beta1' - __props__['kind'] = 'LeaseList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(LeaseList, self).__init__( - "kubernetes:coordination.k8s.io/v1beta1:LeaseList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `LeaseList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return LeaseList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py old mode 100755 new mode 100644 index 67de519c15..8c72d39e4c --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .Lease import (Lease) -from .LeaseList import (LeaseList) +from .lease import * +from .lease_list import * diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py new file mode 100644 index 0000000000..6561cd9b12 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py @@ -0,0 +1,197 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Lease(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `acquire_time` (`str`) - acquireTime is a time when the current lease was acquired. + * `holder_identity` (`str`) - holderIdentity contains the identity of the holder of a current lease. + * `lease_duration_seconds` (`float`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + * `lease_transitions` (`float`) - leaseTransitions is the number of transitions of a lease between holders. + * `renew_time` (`str`) - renewTime is a time when the current holder of a lease has last updated the lease. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Lease defines a lease concept. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `acquire_time` (`pulumi.Input[str]`) - acquireTime is a time when the current lease was acquired. + * `holder_identity` (`pulumi.Input[str]`) - holderIdentity contains the identity of the holder of a current lease. + * `lease_duration_seconds` (`pulumi.Input[float]`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + * `lease_transitions` (`pulumi.Input[float]`) - leaseTransitions is the number of transitions of a lease between holders. + * `renew_time` (`pulumi.Input[str]`) - renewTime is a time when the current holder of a lease has last updated the lease. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:coordination.k8s.io/v1:Lease")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Lease, __self__).__init__( + 'kubernetes:coordination.k8s.io/v1beta1:Lease', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Lease resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Lease(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py new file mode 100644 index 0000000000..b444d62b39 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py @@ -0,0 +1,219 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class LeaseList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `acquire_time` (`str`) - acquireTime is a time when the current lease was acquired. + * `holder_identity` (`str`) - holderIdentity contains the identity of the holder of a current lease. + * `lease_duration_seconds` (`float`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + * `lease_transitions` (`float`) - leaseTransitions is the number of transitions of a lease between holders. + * `renew_time` (`str`) - renewTime is a time when the current holder of a lease has last updated the lease. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + LeaseList is a list of Lease objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `acquire_time` (`pulumi.Input[str]`) - acquireTime is a time when the current lease was acquired. + * `holder_identity` (`pulumi.Input[str]`) - holderIdentity contains the identity of the holder of a current lease. + * `lease_duration_seconds` (`pulumi.Input[float]`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. + * `lease_transitions` (`pulumi.Input[float]`) - leaseTransitions is the number of transitions of a lease between holders. + * `renew_time` (`pulumi.Input[str]`) - renewTime is a time when the current holder of a lease has last updated the lease. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(LeaseList, __self__).__init__( + 'kubernetes:coordination.k8s.io/v1beta1:LeaseList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing LeaseList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return LeaseList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/__init__.py b/sdk/python/pulumi_kubernetes/core/__init__.py old mode 100755 new mode 100644 index 4b0a1b1483..e2a396b5dc --- a/sdk/python/pulumi_kubernetes/core/__init__.py +++ b/sdk/python/pulumi_kubernetes/core/__init__.py @@ -1,8 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", -] +__all__ = ['v1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/core/v1/Binding.py b/sdk/python/pulumi_kubernetes/core/v1/Binding.py deleted file mode 100755 index 7eb6490f78..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/Binding.py +++ /dev/null @@ -1,111 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Binding(pulumi.CustomResource): - """ - Binding ties one object to another; for example, a pod is bound to a node by a scheduler. - Deprecated in 1.7, please use the bindings subresource of pods instead. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - target: pulumi.Output[dict] - """ - The target object that you want to bind to the standard object. - """ - - def __init__(self, resource_name, opts=None, target=None, metadata=None, __name__=None, __opts__=None): - """ - Create a Binding resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] target: The target object that you want to bind to the standard object. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'Binding' - if target is None: - raise TypeError('Missing required property target') - __props__['target'] = target - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(Binding, self).__init__( - "kubernetes:core/v1:Binding", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Binding` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Binding(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py deleted file mode 100755 index a9277ac037..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ComponentStatus(pulumi.CustomResource): - """ - ComponentStatus (and ComponentStatusList) holds the cluster validation info. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - conditions: pulumi.Output[list] - """ - List of component conditions observed - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, conditions=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ComponentStatus resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] conditions: List of component conditions observed - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'ComponentStatus' - __props__['conditions'] = conditions - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ComponentStatus, self).__init__( - "kubernetes:core/v1:ComponentStatus", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ComponentStatus` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ComponentStatus(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py deleted file mode 100755 index d43ebfc877..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ComponentStatusList(pulumi.CustomResource): - """ - Status of all the conditions for the component as a list of ComponentStatus objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of ComponentStatus objects. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ComponentStatusList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of ComponentStatus objects. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'ComponentStatusList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ComponentStatusList, self).__init__( - "kubernetes:core/v1:ComponentStatusList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ComponentStatusList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ComponentStatusList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py deleted file mode 100755 index 88318f47c7..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py +++ /dev/null @@ -1,140 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ConfigMap(pulumi.CustomResource): - """ - ConfigMap holds configuration data for pods to consume. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - binary_data: pulumi.Output[dict] - """ - BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' - or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored - in BinaryData must not overlap with the ones in the Data field, this is enforced during - validation process. Using this field will require 1.10+ apiserver and kubelet. - """ - - data: pulumi.Output[dict] - """ - Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' - or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in - Data must not overlap with the keys in the BinaryData field, this is enforced during validation - process. - """ - - immutable: pulumi.Output[bool] - """ - 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. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, binary_data=None, data=None, immutable=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ConfigMap resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] binary_data: BinaryData contains the binary data. Each key must consist of alphanumeric - characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in - the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the - Data field, this is enforced during validation process. Using this field will require - 1.10+ apiserver and kubelet. - :param pulumi.Input[dict] data: Data contains the configuration data. Each key must consist of alphanumeric - characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the - BinaryData field. The keys stored in Data must not overlap with the keys in the - BinaryData field, this is enforced during validation process. - :param pulumi.Input[bool] immutable: 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. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'ConfigMap' - __props__['binaryData'] = binary_data - __props__['data'] = data - __props__['immutable'] = immutable - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ConfigMap, self).__init__( - "kubernetes:core/v1:ConfigMap", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ConfigMap` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ConfigMap(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py deleted file mode 100755 index 849bbc642d..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ConfigMapList(pulumi.CustomResource): - """ - ConfigMapList is a resource containing a list of ConfigMap objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of ConfigMaps. - """ - - metadata: pulumi.Output[dict] - """ - More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ConfigMapList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of ConfigMaps. - :param pulumi.Input[dict] metadata: More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'ConfigMapList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ConfigMapList, self).__init__( - "kubernetes:core/v1:ConfigMapList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ConfigMapList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ConfigMapList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py b/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py deleted file mode 100755 index 8c8f4625dd..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py +++ /dev/null @@ -1,129 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Endpoints(pulumi.CustomResource): - """ - Endpoints is a collection of endpoints that implement the actual service. Example: - Name: "mysvc", - Subsets: [ - { - Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], - Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] - }, - { - Addresses: [{"ip": "10.10.3.3"}], - Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] - }, - ] - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - subsets: pulumi.Output[list] - """ - The set of all endpoints is the union of all subsets. Addresses are placed into subsets - according to the IPs they share. A single address with multiple ports, some of which are ready - and some of which are not (because they come from different containers) will result in the - address being displayed in different subsets for the different ports. No address will appear in - both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that - comprise a service. - """ - - def __init__(self, resource_name, opts=None, metadata=None, subsets=None, __name__=None, __opts__=None): - """ - Create a Endpoints resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[list] subsets: The set of all endpoints is the union of all subsets. Addresses are placed into - subsets according to the IPs they share. A single address with multiple ports, some - of which are ready and some of which are not (because they come from different - containers) will result in the address being displayed in different subsets for the - different ports. No address will appear in both Addresses and NotReadyAddresses in - the same subset. Sets of addresses and ports that comprise a service. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'Endpoints' - __props__['metadata'] = metadata - __props__['subsets'] = subsets - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(Endpoints, self).__init__( - "kubernetes:core/v1:Endpoints", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Endpoints` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Endpoints(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py deleted file mode 100755 index ecac061742..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class EndpointsList(pulumi.CustomResource): - """ - EndpointsList is a list of endpoints. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of endpoints. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a EndpointsList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of endpoints. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'EndpointsList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(EndpointsList, self).__init__( - "kubernetes:core/v1:EndpointsList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `EndpointsList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return EndpointsList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Event.py b/sdk/python/pulumi_kubernetes/core/v1/Event.py deleted file mode 100755 index 8547147637..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/Event.py +++ /dev/null @@ -1,211 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Event(pulumi.CustomResource): - """ - Event is a report of an event somewhere in the cluster. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - action: pulumi.Output[str] - """ - What action was taken/failed regarding to the Regarding object. - """ - - count: pulumi.Output[int] - """ - The number of times this event has occurred. - """ - - event_time: pulumi.Output[str] - """ - Time when this Event was first observed. - """ - - first_timestamp: pulumi.Output[str] - """ - The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) - """ - - involved_object: pulumi.Output[dict] - """ - The object that this event is about. - """ - - last_timestamp: pulumi.Output[str] - """ - The time at which the most recent occurrence of this event was recorded. - """ - - message: pulumi.Output[str] - """ - A human-readable description of the status of this operation. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - reason: pulumi.Output[str] - """ - This should be a short, machine understandable string that gives the reason for the transition - into the object's current status. - """ - - related: pulumi.Output[dict] - """ - Optional secondary object for more complex actions. - """ - - reporting_component: pulumi.Output[str] - """ - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - """ - - reporting_instance: pulumi.Output[str] - """ - ID of the controller instance, e.g. `kubelet-xyzf`. - """ - - series: pulumi.Output[dict] - """ - Data about the Event series this event represents or nil if it's a singleton Event. - """ - - source: pulumi.Output[dict] - """ - The component reporting this event. Should be a short machine understandable string. - """ - - type: pulumi.Output[str] - """ - Type of this event (Normal, Warning), new types could be added in the future - """ - - def __init__(self, resource_name, opts=None, involved_object=None, metadata=None, action=None, count=None, event_time=None, first_timestamp=None, last_timestamp=None, message=None, reason=None, related=None, reporting_component=None, reporting_instance=None, series=None, source=None, type=None, __name__=None, __opts__=None): - """ - Create a Event resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] involved_object: The object that this event is about. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[str] action: What action was taken/failed regarding to the Regarding object. - :param pulumi.Input[int] count: The number of times this event has occurred. - :param pulumi.Input[str] event_time: Time when this Event was first observed. - :param pulumi.Input[str] first_timestamp: The time at which the event was first recorded. (Time of server receipt is in - TypeMeta.) - :param pulumi.Input[str] last_timestamp: The time at which the most recent occurrence of this event was recorded. - :param pulumi.Input[str] message: A human-readable description of the status of this operation. - :param pulumi.Input[str] reason: This should be a short, machine understandable string that gives the reason for the - transition into the object's current status. - :param pulumi.Input[dict] related: Optional secondary object for more complex actions. - :param pulumi.Input[str] reporting_component: Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - :param pulumi.Input[str] reporting_instance: ID of the controller instance, e.g. `kubelet-xyzf`. - :param pulumi.Input[dict] series: Data about the Event series this event represents or nil if it's a singleton Event. - :param pulumi.Input[dict] source: The component reporting this event. Should be a short machine understandable string. - :param pulumi.Input[str] type: Type of this event (Normal, Warning), new types could be added in the future - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'Event' - if involved_object is None: - raise TypeError('Missing required property involved_object') - __props__['involvedObject'] = involved_object - if metadata is None: - raise TypeError('Missing required property metadata') - __props__['metadata'] = metadata - __props__['action'] = action - __props__['count'] = count - __props__['eventTime'] = event_time - __props__['firstTimestamp'] = first_timestamp - __props__['lastTimestamp'] = last_timestamp - __props__['message'] = message - __props__['reason'] = reason - __props__['related'] = related - __props__['reportingComponent'] = reporting_component - __props__['reportingInstance'] = reporting_instance - __props__['series'] = series - __props__['source'] = source - __props__['type'] = type - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:events.k8s.io/v1beta1:Event"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(Event, self).__init__( - "kubernetes:core/v1:Event", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Event` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Event(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/EventList.py b/sdk/python/pulumi_kubernetes/core/v1/EventList.py deleted file mode 100755 index a00754378f..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/EventList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class EventList(pulumi.CustomResource): - """ - EventList is a list of events. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of events - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a EventList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of events - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'EventList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(EventList, self).__init__( - "kubernetes:core/v1:EventList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `EventList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return EventList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py deleted file mode 100755 index c159f55c9e..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class LimitRange(pulumi.CustomResource): - """ - LimitRange sets resource usage limits for each kind of resource in a Namespace. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec defines the limits enforced. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a LimitRange resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the limits enforced. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'LimitRange' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(LimitRange, self).__init__( - "kubernetes:core/v1:LimitRange", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `LimitRange` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return LimitRange(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py deleted file mode 100755 index 1bfa9aa009..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py +++ /dev/null @@ -1,112 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class LimitRangeList(pulumi.CustomResource): - """ - LimitRangeList is a list of LimitRange items. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of LimitRange objects. More info: - https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a LimitRangeList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of LimitRange objects. More info: - https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'LimitRangeList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(LimitRangeList, self).__init__( - "kubernetes:core/v1:LimitRangeList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `LimitRangeList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return LimitRangeList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Namespace.py b/sdk/python/pulumi_kubernetes/core/v1/Namespace.py deleted file mode 100755 index 9d48ef065a..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/Namespace.py +++ /dev/null @@ -1,116 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Namespace(pulumi.CustomResource): - """ - Namespace provides a scope for Names. Use of multiple namespaces is optional. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec defines the behavior of the Namespace. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Status describes the current status of a Namespace. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a Namespace resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the behavior of the Namespace. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'Namespace' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(Namespace, self).__init__( - "kubernetes:core/v1:Namespace", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Namespace` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Namespace(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py deleted file mode 100755 index 5638e8714f..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py +++ /dev/null @@ -1,112 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class NamespaceList(pulumi.CustomResource): - """ - NamespaceList is a list of Namespaces. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of Namespace objects in the list. More info: - https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a NamespaceList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of Namespace objects in the list. More info: - https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'NamespaceList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(NamespaceList, self).__init__( - "kubernetes:core/v1:NamespaceList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `NamespaceList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return NamespaceList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Node.py b/sdk/python/pulumi_kubernetes/core/v1/Node.py deleted file mode 100755 index 54d846fe94..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/Node.py +++ /dev/null @@ -1,117 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Node(pulumi.CustomResource): - """ - Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. - in etcd). - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec defines the behavior of a node. - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Most recently observed status of the node. Populated by the system. Read-only. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a Node resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the behavior of a node. - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'Node' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(Node, self).__init__( - "kubernetes:core/v1:Node", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Node` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Node(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py deleted file mode 100755 index 6ea2cd7c3e..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class NodeList(pulumi.CustomResource): - """ - NodeList is the whole list of all Nodes which have been registered with master. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of nodes - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a NodeList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of nodes - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'NodeList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(NodeList, self).__init__( - "kubernetes:core/v1:NodeList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `NodeList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return NodeList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py deleted file mode 100755 index 68b35106c2..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py +++ /dev/null @@ -1,120 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PersistentVolume(pulumi.CustomResource): - """ - PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to - a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an - administrator. More info: - https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - """ - - status: pulumi.Output[dict] - """ - Status represents the current information/status for the persistent volume. Populated by the - system. Read-only. More info: - https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a PersistentVolume resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines a specification of a persistent volume owned by the cluster. Provisioned - by an administrator. More info: - https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'PersistentVolume' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PersistentVolume, self).__init__( - "kubernetes:core/v1:PersistentVolume", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PersistentVolume` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PersistentVolume(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py deleted file mode 100755 index 2f46c6b1cc..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +++ /dev/null @@ -1,117 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PersistentVolumeClaim(pulumi.CustomResource): - """ - PersistentVolumeClaim is a user's request for and claim to a persistent volume - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec defines the desired characteristics of a volume requested by a pod author. More info: - https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - """ - - status: pulumi.Output[dict] - """ - Status represents the current information/status of a persistent volume claim. Read-only. More - info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a PersistentVolumeClaim resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the desired characteristics of a volume requested by a pod author. More - info: - https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'PersistentVolumeClaim' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PersistentVolumeClaim, self).__init__( - "kubernetes:core/v1:PersistentVolumeClaim", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PersistentVolumeClaim` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PersistentVolumeClaim(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py deleted file mode 100755 index 6fc0d33f74..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +++ /dev/null @@ -1,112 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PersistentVolumeClaimList(pulumi.CustomResource): - """ - PersistentVolumeClaimList is a list of PersistentVolumeClaim items. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - A list of persistent volume claims. More info: - https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a PersistentVolumeClaimList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: A list of persistent volume claims. More info: - https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'PersistentVolumeClaimList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PersistentVolumeClaimList, self).__init__( - "kubernetes:core/v1:PersistentVolumeClaimList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PersistentVolumeClaimList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PersistentVolumeClaimList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py deleted file mode 100755 index c0cb0dccdf..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py +++ /dev/null @@ -1,112 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PersistentVolumeList(pulumi.CustomResource): - """ - PersistentVolumeList is a list of PersistentVolume items. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of persistent volumes. More info: - https://kubernetes.io/docs/concepts/storage/persistent-volumes - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a PersistentVolumeList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of persistent volumes. More info: - https://kubernetes.io/docs/concepts/storage/persistent-volumes - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'PersistentVolumeList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PersistentVolumeList, self).__init__( - "kubernetes:core/v1:PersistentVolumeList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PersistentVolumeList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PersistentVolumeList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Pod.py b/sdk/python/pulumi_kubernetes/core/v1/Pod.py deleted file mode 100755 index 83f9fbc491..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/Pod.py +++ /dev/null @@ -1,133 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Pod(pulumi.CustomResource): - """ - Pod is a collection of containers that can run on a host. This resource is created by clients - and scheduled onto hosts. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The Pod is scheduled ("PodScheduled"" '.status.condition' is true). - 2. The Pod is initialized ("Initialized" '.status.condition' is true). - 3. The Pod is ready ("Ready" '.status.condition' is true) and the '.status.phase' is - set to "Running". - Or (for Jobs): The Pod succeeded ('.status.phase' set to "Succeeded"). - - If the Pod has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of the pod. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Most recently observed status of the pod. This data may not be up to date. Populated by the - system. Read-only. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a Pod resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired behavior of the pod. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'Pod' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(Pod, self).__init__( - "kubernetes:core/v1:Pod", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Pod` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Pod(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodList.py b/sdk/python/pulumi_kubernetes/core/v1/PodList.py deleted file mode 100755 index daa6fd6ee5..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PodList.py +++ /dev/null @@ -1,112 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PodList(pulumi.CustomResource): - """ - PodList is a list of Pods. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of pods. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a PodList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of pods. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'PodList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PodList, self).__init__( - "kubernetes:core/v1:PodList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PodList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PodList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py deleted file mode 100755 index e4e56d0c81..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PodTemplate(pulumi.CustomResource): - """ - PodTemplate describes a template for creating copies of a predefined pod. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - template: pulumi.Output[dict] - """ - Template defines the pods that will be created from this pod template. - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, template=None, __name__=None, __opts__=None): - """ - Create a PodTemplate resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] template: Template defines the pods that will be created from this pod template. - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'PodTemplate' - __props__['metadata'] = metadata - __props__['template'] = template - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PodTemplate, self).__init__( - "kubernetes:core/v1:PodTemplate", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PodTemplate` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PodTemplate(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py deleted file mode 100755 index eb71108f1f..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PodTemplateList(pulumi.CustomResource): - """ - PodTemplateList is a list of PodTemplates. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of pod templates - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a PodTemplateList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of pod templates - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'PodTemplateList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PodTemplateList, self).__init__( - "kubernetes:core/v1:PodTemplateList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PodTemplateList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PodTemplateList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py deleted file mode 100755 index 259fd88d4b..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py +++ /dev/null @@ -1,121 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ReplicationController(pulumi.CustomResource): - """ - ReplicationController represents the configuration of a replication controller. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - If the Labels of a ReplicationController are empty, they are defaulted to be the same as the - Pod(s) that the replication controller manages. Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec defines the specification of the desired behavior of the replication controller. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Status is the most recently observed status of the replication controller. This data may be out - of date by some window of time. Populated by the system. Read-only. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a ReplicationController resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: If the Labels of a ReplicationController are empty, they are defaulted to be the same - as the Pod(s) that the replication controller manages. Standard object's metadata. - More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the replication controller. - More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'ReplicationController' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ReplicationController, self).__init__( - "kubernetes:core/v1:ReplicationController", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ReplicationController` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ReplicationController(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py deleted file mode 100755 index 942cf88bf0..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py +++ /dev/null @@ -1,112 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ReplicationControllerList(pulumi.CustomResource): - """ - ReplicationControllerList is a collection of replication controllers. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of replication controllers. More info: - https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ReplicationControllerList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of replication controllers. More info: - https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'ReplicationControllerList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ReplicationControllerList, self).__init__( - "kubernetes:core/v1:ReplicationControllerList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ReplicationControllerList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ReplicationControllerList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py deleted file mode 100755 index 7bb50c1d6f..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py +++ /dev/null @@ -1,116 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ResourceQuota(pulumi.CustomResource): - """ - ResourceQuota sets aggregate quota restrictions enforced per namespace - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec defines the desired quota. - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Status defines the actual enforced quota and its current usage. - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a ResourceQuota resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the desired quota. - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'ResourceQuota' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ResourceQuota, self).__init__( - "kubernetes:core/v1:ResourceQuota", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ResourceQuota` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ResourceQuota(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py deleted file mode 100755 index ea8bcf8475..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py +++ /dev/null @@ -1,112 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ResourceQuotaList(pulumi.CustomResource): - """ - ResourceQuotaList is a list of ResourceQuota items. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of ResourceQuota objects. More info: - https://kubernetes.io/docs/concepts/policy/resource-quotas/ - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ResourceQuotaList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of ResourceQuota objects. More info: - https://kubernetes.io/docs/concepts/policy/resource-quotas/ - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'ResourceQuotaList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ResourceQuotaList, self).__init__( - "kubernetes:core/v1:ResourceQuotaList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ResourceQuotaList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ResourceQuotaList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Secret.py b/sdk/python/pulumi_kubernetes/core/v1/Secret.py deleted file mode 100755 index e7a95c59ac..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/Secret.py +++ /dev/null @@ -1,161 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Secret(pulumi.CustomResource): - """ - Secret holds secret data of a certain type. The total bytes of the values in the Data field must - be less than MaxSecretSize bytes. - - Note: While Pulumi automatically encrypts the 'data' and 'stringData' - fields, this encryption only applies to Pulumi's context, including the state file, - the Service, the CLI, etc. Kubernetes does not encrypt Secret resources by default, - and the contents are visible to users with access to the Secret in Kubernetes using - tools like 'kubectl'. - - For more information on securing Kubernetes Secrets, see the following links: - https://kubernetes.io/docs/concepts/configuration/secret/#security-properties - https://kubernetes.io/docs/concepts/configuration/secret/#risks - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - data: pulumi.Output[dict] - """ - Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or - '.'. The serialized form of the secret data is a base64 encoded string, representing the - arbitrary (possibly non-string) data value here. Described in - https://tools.ietf.org/html/rfc4648#section-4 - """ - - immutable: pulumi.Output[bool] - """ - Immutable, if set to true, ensures that data stored in the Secret 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. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - string_data: pulumi.Output[dict] - """ - stringData allows specifying non-binary secret data in string form. It is provided as a - write-only convenience method. All keys and values are merged into the data field on write, - overwriting any existing values. It is never output when reading from the API. - """ - - type: pulumi.Output[str] - """ - Used to facilitate programmatic handling of secret data. - """ - - def __init__(self, resource_name, opts=None, data=None, immutable=None, metadata=None, string_data=None, type=None, __name__=None, __opts__=None): - """ - Create a Secret resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] data: Data contains the secret data. Each key must consist of alphanumeric characters, '-', - '_' or '.'. The serialized form of the secret data is a base64 encoded string, - representing the arbitrary (possibly non-string) data value here. Described in - https://tools.ietf.org/html/rfc4648#section-4 - :param pulumi.Input[bool] immutable: Immutable, if set to true, ensures that data stored in the Secret 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. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] string_data: stringData allows specifying non-binary secret data in string form. It is provided as - a write-only convenience method. All keys and values are merged into the data field - on write, overwriting any existing values. It is never output when reading from the - API. - :param pulumi.Input[str] type: Used to facilitate programmatic handling of secret data. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'Secret' - __props__['data'] = pulumi.Output.secret(data) if data is not None else None - __props__['immutable'] = immutable - __props__['metadata'] = metadata - __props__['stringData'] = pulumi.Output.secret(string_data) if string_data is not None else None - __props__['type'] = type - - __props__['status'] = None - - additional_secret_outputs = [ - "data", - "stringData", - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - additional_secret_outputs=additional_secret_outputs, - )) - - super(Secret, self).__init__( - "kubernetes:core/v1:Secret", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Secret` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Secret(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py deleted file mode 100755 index 860b16ad18..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py +++ /dev/null @@ -1,112 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class SecretList(pulumi.CustomResource): - """ - SecretList is a list of Secret. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of secret objects. More info: - https://kubernetes.io/docs/concepts/configuration/secret - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a SecretList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of secret objects. More info: - https://kubernetes.io/docs/concepts/configuration/secret - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'SecretList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(SecretList, self).__init__( - "kubernetes:core/v1:SecretList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `SecretList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return SecretList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Service.py b/sdk/python/pulumi_kubernetes/core/v1/Service.py deleted file mode 100755 index 274811f85b..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/Service.py +++ /dev/null @@ -1,143 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Service(pulumi.CustomResource): - """ - Service is a named abstraction of software service (for example, mysql) consisting of local port - (for example 3306) that the proxy listens on, and the selector that determines which pods will - answer requests sent through the proxy. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. Service object exists. - 2. Related Endpoint objects are created. Each time we get an update, wait 10 seconds - for any stragglers. - 3. The endpoints objects target some number of living objects (unless the Service is - an "empty headless" Service [1] or a Service with '.spec.type: ExternalName'). - 4. External IP address is allocated (if Service has '.spec.type: LoadBalancer'). - - Known limitations: - Services targeting ReplicaSets (and, by extension, Deployments, - StatefulSets, etc.) with '.spec.replicas' set to 0 are not handled, and will time - out. To work around this limitation, set 'pulumi.com/skipAwait: "true"' on - '.metadata.annotations' for the Service. Work to handle this case is in progress [2]. - - [1] https://kubernetes.io/docs/concepts/services-networking/service/#headless-services - [2] https://github.com/pulumi/pulumi-kubernetes/pull/703 - - If the Service has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec defines the behavior of a service. - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Most recently observed status of the service. Populated by the system. Read-only. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a Service resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the behavior of a service. - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'Service' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(Service, self).__init__( - "kubernetes:core/v1:Service", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Service` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Service(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py deleted file mode 100755 index a80855941a..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py +++ /dev/null @@ -1,135 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ServiceAccount(pulumi.CustomResource): - """ - ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, - for an identity * a principal that can be authenticated and authorized * a set of secrets - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - automount_service_account_token: pulumi.Output[bool] - """ - AutomountServiceAccountToken indicates whether pods running as this service account should have - an API token automatically mounted. Can be overridden at the pod level. - """ - - image_pull_secrets: pulumi.Output[list] - """ - ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any - images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets - because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the - kubelet. More info: - https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - secrets: pulumi.Output[list] - """ - Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. - More info: https://kubernetes.io/docs/concepts/configuration/secret - """ - - def __init__(self, resource_name, opts=None, automount_service_account_token=None, image_pull_secrets=None, metadata=None, secrets=None, __name__=None, __opts__=None): - """ - Create a ServiceAccount resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[bool] automount_service_account_token: AutomountServiceAccountToken indicates whether pods running as this service account - should have an API token automatically mounted. Can be overridden at the pod level. - :param pulumi.Input[list] image_pull_secrets: ImagePullSecrets is a list of references to secrets in the same namespace to use for - pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are - distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets - are only accessed by the kubelet. More info: - https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[list] secrets: Secrets is the list of secrets allowed to be used by pods running using this - ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'ServiceAccount' - __props__['automountServiceAccountToken'] = automount_service_account_token - __props__['imagePullSecrets'] = image_pull_secrets - __props__['metadata'] = metadata - __props__['secrets'] = secrets - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ServiceAccount, self).__init__( - "kubernetes:core/v1:ServiceAccount", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ServiceAccount` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ServiceAccount(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py deleted file mode 100755 index 20891ac36d..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py +++ /dev/null @@ -1,112 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ServiceAccountList(pulumi.CustomResource): - """ - ServiceAccountList is a list of ServiceAccount objects - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of ServiceAccounts. More info: - https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ServiceAccountList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of ServiceAccounts. More info: - https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'ServiceAccountList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ServiceAccountList, self).__init__( - "kubernetes:core/v1:ServiceAccountList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ServiceAccountList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ServiceAccountList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py deleted file mode 100755 index 488270455a..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ServiceList(pulumi.CustomResource): - """ - ServiceList holds a list of services. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of services - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ServiceList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of services - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'ServiceList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ServiceList, self).__init__( - "kubernetes:core/v1:ServiceList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ServiceList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ServiceList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/__init__.py b/sdk/python/pulumi_kubernetes/core/v1/__init__.py old mode 100755 new mode 100644 index 353a9f8712..49b1c9913a --- a/sdk/python/pulumi_kubernetes/core/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/core/v1/__init__.py @@ -1,38 +1,38 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .Binding import (Binding) -from .ComponentStatus import (ComponentStatus) -from .ComponentStatusList import (ComponentStatusList) -from .ConfigMap import (ConfigMap) -from .ConfigMapList import (ConfigMapList) -from .Endpoints import (Endpoints) -from .EndpointsList import (EndpointsList) -from .Event import (Event) -from .EventList import (EventList) -from .LimitRange import (LimitRange) -from .LimitRangeList import (LimitRangeList) -from .Namespace import (Namespace) -from .NamespaceList import (NamespaceList) -from .Node import (Node) -from .NodeList import (NodeList) -from .PersistentVolume import (PersistentVolume) -from .PersistentVolumeClaim import (PersistentVolumeClaim) -from .PersistentVolumeClaimList import (PersistentVolumeClaimList) -from .PersistentVolumeList import (PersistentVolumeList) -from .Pod import (Pod) -from .PodList import (PodList) -from .PodTemplate import (PodTemplate) -from .PodTemplateList import (PodTemplateList) -from .ReplicationController import (ReplicationController) -from .ReplicationControllerList import (ReplicationControllerList) -from .ResourceQuota import (ResourceQuota) -from .ResourceQuotaList import (ResourceQuotaList) -from .Secret import (Secret) -from .SecretList import (SecretList) -from .Service import (Service) -from .ServiceAccount import (ServiceAccount) -from .ServiceAccountList import (ServiceAccountList) -from .ServiceList import (ServiceList) +from .binding import * +from .component_status import * +from .component_status_list import * +from .config_map import * +from .config_map_list import * +from .endpoints import * +from .endpoints_list import * +from .event import * +from .event_list import * +from .limit_range import * +from .limit_range_list import * +from .namespace import * +from .namespace_list import * +from .node import * +from .node_list import * +from .persistent_volume import * +from .persistent_volume_claim import * +from .persistent_volume_claim_list import * +from .persistent_volume_list import * +from .pod import * +from .pod_list import * +from .pod_template import * +from .pod_template_list import * +from .replication_controller import * +from .replication_controller_list import * +from .resource_quota import * +from .resource_quota_list import * +from .secret import * +from .secret_list import * +from .service import * +from .service_account import * +from .service_account_list import * +from .service_list import * diff --git a/sdk/python/pulumi_kubernetes/core/v1/binding.py b/sdk/python/pulumi_kubernetes/core/v1/binding.py new file mode 100644 index 0000000000..49b689a20d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/binding.py @@ -0,0 +1,201 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Binding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + target: pulumi.Output[dict] + """ + The target object that you want to bind to the standard object. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, target=None, __props__=None, __name__=None, __opts__=None): + """ + Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] target: The target object that you want to bind to the standard object. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **target** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if target is None: + raise TypeError("Missing required property 'target'") + __props__['target'] = target + super(Binding, __self__).__init__( + 'kubernetes:core/v1:Binding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Binding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Binding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/component_status.py b/sdk/python/pulumi_kubernetes/core/v1/component_status.py new file mode 100644 index 0000000000..0322a94f14 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/component_status.py @@ -0,0 +1,193 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ComponentStatus(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + conditions: pulumi.Output[list] + """ + List of component conditions observed + * `error` (`str`) - Condition error code for a component. For example, a health check error code. + * `message` (`str`) - Message about the condition for a component. For example, information about a health check. + * `status` (`str`) - Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". + * `type` (`str`) - Type of condition for a component. Valid value: "Healthy" + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + def __init__(__self__, resource_name, opts=None, api_version=None, conditions=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ComponentStatus (and ComponentStatusList) holds the cluster validation info. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] conditions: List of component conditions observed + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **conditions** object supports the following: + + * `error` (`pulumi.Input[str]`) - Condition error code for a component. For example, a health check error code. + * `message` (`pulumi.Input[str]`) - Message about the condition for a component. For example, information about a health check. + * `status` (`pulumi.Input[str]`) - Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". + * `type` (`pulumi.Input[str]`) - Type of condition for a component. Valid value: "Healthy" + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['conditions'] = conditions + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ComponentStatus, __self__).__init__( + 'kubernetes:core/v1:ComponentStatus', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ComponentStatus resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ComponentStatus(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py b/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py new file mode 100644 index 0000000000..da6569bff1 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py @@ -0,0 +1,217 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ComponentStatusList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ComponentStatus objects. + * `api_version` (`str`) - 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 + * `conditions` (`list`) - List of component conditions observed + * `error` (`str`) - Condition error code for a component. For example, a health check error code. + * `message` (`str`) - Message about the condition for a component. For example, information about a health check. + * `status` (`str`) - Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". + * `type` (`str`) - Type of condition for a component. Valid value: "Healthy" + + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + Status of all the conditions for the component as a list of ComponentStatus objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ComponentStatus objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `conditions` (`pulumi.Input[list]`) - List of component conditions observed + * `error` (`pulumi.Input[str]`) - Condition error code for a component. For example, a health check error code. + * `message` (`pulumi.Input[str]`) - Message about the condition for a component. For example, information about a health check. + * `status` (`pulumi.Input[str]`) - Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". + * `type` (`pulumi.Input[str]`) - Type of condition for a component. Valid value: "Healthy" + + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ComponentStatusList, __self__).__init__( + 'kubernetes:core/v1:ComponentStatusList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ComponentStatusList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ComponentStatusList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/config_map.py b/sdk/python/pulumi_kubernetes/core/v1/config_map.py new file mode 100644 index 0000000000..76ea6c83ac --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/config_map.py @@ -0,0 +1,194 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ConfigMap(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + binary_data: pulumi.Output[dict] + """ + BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + """ + data: pulumi.Output[dict] + """ + Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + """ + immutable: pulumi.Output[bool] + """ + 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. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + def __init__(__self__, resource_name, opts=None, api_version=None, binary_data=None, data=None, immutable=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ConfigMap holds configuration data for pods to consume. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[dict] binary_data: BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + :param pulumi.Input[dict] data: Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + :param pulumi.Input[bool] immutable: 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. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['binary_data'] = binary_data + __props__['data'] = data + __props__['immutable'] = immutable + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ConfigMap, __self__).__init__( + 'kubernetes:core/v1:ConfigMap', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ConfigMap resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ConfigMap(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py b/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py new file mode 100644 index 0000000000..df206e16dd --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py @@ -0,0 +1,211 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ConfigMapList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of ConfigMaps. + * `api_version` (`str`) - 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 + * `binary_data` (`dict`) - BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + * `data` (`dict`) - Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + * `immutable` (`bool`) - 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. + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ConfigMapList is a resource containing a list of ConfigMap objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of ConfigMaps. + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `binary_data` (`pulumi.Input[dict]`) - BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + * `data` (`pulumi.Input[dict]`) - Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + * `immutable` (`pulumi.Input[bool]`) - 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. + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ConfigMapList, __self__).__init__( + 'kubernetes:core/v1:ConfigMapList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ConfigMapList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ConfigMapList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/endpoints.py b/sdk/python/pulumi_kubernetes/core/v1/endpoints.py new file mode 100644 index 0000000000..8b22d2bab5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/endpoints.py @@ -0,0 +1,234 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Endpoints(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + subsets: pulumi.Output[list] + """ + The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + * `addresses` (`list`) - IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. + * `hostname` (`str`) - The Hostname of this endpoint + * `ip` (`str`) - The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. + * `node_name` (`str`) - Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + * `targetRef` (`dict`) - Reference to object providing the endpoint. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `notReadyAddresses` (`list`) - IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + * `ports` (`list`) - Port numbers available on the related IP addresses. + * `appProtocol` (`str`) - 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. + * `name` (`str`) - The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. + * `port` (`float`) - The port number of the endpoint. + * `protocol` (`str`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, subsets=None, __props__=None, __name__=None, __opts__=None): + """ + Endpoints is a collection of endpoints that implement the actual service. Example: + Name: "mysvc", + Subsets: [ + { + Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + }, + { + Addresses: [{"ip": "10.10.3.3"}], + Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] + }, + ] + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[list] subsets: The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **subsets** object supports the following: + + * `addresses` (`pulumi.Input[list]`) - IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. + * `hostname` (`pulumi.Input[str]`) - The Hostname of this endpoint + * `ip` (`pulumi.Input[str]`) - The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. + * `node_name` (`pulumi.Input[str]`) - Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + * `targetRef` (`pulumi.Input[dict]`) - Reference to object providing the endpoint. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `notReadyAddresses` (`pulumi.Input[list]`) - IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + * `ports` (`pulumi.Input[list]`) - Port numbers available on the related IP addresses. + * `appProtocol` (`pulumi.Input[str]`) - 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. + * `name` (`pulumi.Input[str]`) - The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. + * `port` (`pulumi.Input[float]`) - The port number of the endpoint. + * `protocol` (`pulumi.Input[str]`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['subsets'] = subsets + super(Endpoints, __self__).__init__( + 'kubernetes:core/v1:Endpoints', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Endpoints resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Endpoints(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py b/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py new file mode 100644 index 0000000000..52fd463166 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py @@ -0,0 +1,247 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class EndpointsList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of endpoints. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `subsets` (`list`) - The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + * `addresses` (`list`) - IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. + * `hostname` (`str`) - The Hostname of this endpoint + * `ip` (`str`) - The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. + * `node_name` (`str`) - Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + * `targetRef` (`dict`) - Reference to object providing the endpoint. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `notReadyAddresses` (`list`) - IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + * `ports` (`list`) - Port numbers available on the related IP addresses. + * `appProtocol` (`str`) - 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. + * `name` (`str`) - The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. + * `port` (`float`) - The port number of the endpoint. + * `protocol` (`str`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + EndpointsList is a list of endpoints. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of endpoints. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `subsets` (`pulumi.Input[list]`) - The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + * `addresses` (`pulumi.Input[list]`) - IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. + * `hostname` (`pulumi.Input[str]`) - The Hostname of this endpoint + * `ip` (`pulumi.Input[str]`) - The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. + * `node_name` (`pulumi.Input[str]`) - Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + * `targetRef` (`pulumi.Input[dict]`) - Reference to object providing the endpoint. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `notReadyAddresses` (`pulumi.Input[list]`) - IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. + * `ports` (`pulumi.Input[list]`) - Port numbers available on the related IP addresses. + * `appProtocol` (`pulumi.Input[str]`) - 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. + * `name` (`pulumi.Input[str]`) - The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. + * `port` (`pulumi.Input[float]`) - The port number of the endpoint. + * `protocol` (`pulumi.Input[str]`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(EndpointsList, __self__).__init__( + 'kubernetes:core/v1:EndpointsList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing EndpointsList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return EndpointsList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/event.py b/sdk/python/pulumi_kubernetes/core/v1/event.py new file mode 100644 index 0000000000..5183215f8d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/event.py @@ -0,0 +1,306 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Event(pulumi.CustomResource): + action: pulumi.Output[str] + """ + What action was taken/failed regarding to the Regarding object. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + count: pulumi.Output[float] + """ + The number of times this event has occurred. + """ + event_time: pulumi.Output[str] + """ + Time when this Event was first observed. + """ + first_timestamp: pulumi.Output[str] + """ + The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + """ + involved_object: pulumi.Output[dict] + """ + The object that this event is about. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + """ + kind: pulumi.Output[str] + """ + 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 + """ + last_timestamp: pulumi.Output[str] + """ + The time at which the most recent occurrence of this event was recorded. + """ + message: pulumi.Output[str] + """ + A human-readable description of the status of this operation. + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + reason: pulumi.Output[str] + """ + This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + """ + related: pulumi.Output[dict] + """ + Optional secondary object for more complex actions. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + """ + reporting_component: pulumi.Output[str] + """ + Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + """ + reporting_instance: pulumi.Output[str] + """ + ID of the controller instance, e.g. `kubelet-xyzf`. + """ + series: pulumi.Output[dict] + """ + Data about the Event series this event represents or nil if it's a singleton Event. + * `count` (`float`) - Number of occurrences in this series up to the last heartbeat time + * `last_observed_time` (`str`) - Time of the last occurrence observed + * `state` (`str`) - State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18 + """ + source: pulumi.Output[dict] + """ + The component reporting this event. Should be a short machine understandable string. + * `component` (`str`) - Component from which the event is generated. + * `host` (`str`) - Node name on which the event is generated. + """ + type: pulumi.Output[str] + """ + Type of this event (Normal, Warning), new types could be added in the future + """ + def __init__(__self__, resource_name, opts=None, action=None, api_version=None, count=None, event_time=None, first_timestamp=None, involved_object=None, kind=None, last_timestamp=None, message=None, metadata=None, reason=None, related=None, reporting_component=None, reporting_instance=None, series=None, source=None, type=None, __props__=None, __name__=None, __opts__=None): + """ + Event is a report of an event somewhere in the cluster. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] action: What action was taken/failed regarding to the Regarding object. + :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 + :param pulumi.Input[float] count: The number of times this event has occurred. + :param pulumi.Input[str] event_time: Time when this Event was first observed. + :param pulumi.Input[str] first_timestamp: The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + :param pulumi.Input[dict] involved_object: The object that this event is about. + :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 + :param pulumi.Input[str] last_timestamp: The time at which the most recent occurrence of this event was recorded. + :param pulumi.Input[str] message: A human-readable description of the status of this operation. + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] reason: This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + :param pulumi.Input[dict] related: Optional secondary object for more complex actions. + :param pulumi.Input[str] reporting_component: Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + :param pulumi.Input[str] reporting_instance: ID of the controller instance, e.g. `kubelet-xyzf`. + :param pulumi.Input[dict] series: Data about the Event series this event represents or nil if it's a singleton Event. + :param pulumi.Input[dict] source: The component reporting this event. Should be a short machine understandable string. + :param pulumi.Input[str] type: Type of this event (Normal, Warning), new types could be added in the future + + The **involved_object** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **series** object supports the following: + + * `count` (`pulumi.Input[float]`) - Number of occurrences in this series up to the last heartbeat time + * `last_observed_time` (`pulumi.Input[str]`) - Time of the last occurrence observed + * `state` (`pulumi.Input[str]`) - State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18 + + The **source** object supports the following: + + * `component` (`pulumi.Input[str]`) - Component from which the event is generated. + * `host` (`pulumi.Input[str]`) - Node name on which the event is generated. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['action'] = action + __props__['api_version'] = api_version + __props__['count'] = count + __props__['event_time'] = event_time + __props__['first_timestamp'] = first_timestamp + if involved_object is None: + raise TypeError("Missing required property 'involved_object'") + __props__['involved_object'] = involved_object + __props__['kind'] = kind + __props__['last_timestamp'] = last_timestamp + __props__['message'] = message + if metadata is None: + raise TypeError("Missing required property 'metadata'") + __props__['metadata'] = metadata + __props__['reason'] = reason + __props__['related'] = related + __props__['reporting_component'] = reporting_component + __props__['reporting_instance'] = reporting_instance + __props__['series'] = series + __props__['source'] = source + __props__['type'] = type + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:events.k8s.io/v1beta1:Event")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Event, __self__).__init__( + 'kubernetes:core/v1:Event', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Event resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Event(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/event_list.py b/sdk/python/pulumi_kubernetes/core/v1/event_list.py new file mode 100644 index 0000000000..fc390c2bbb --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/event_list.py @@ -0,0 +1,265 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class EventList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of events + * `action` (`str`) - What action was taken/failed regarding to the Regarding object. + * `api_version` (`str`) - 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 + * `count` (`float`) - The number of times this event has occurred. + * `event_time` (`str`) - Time when this Event was first observed. + * `first_timestamp` (`str`) - The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + * `involved_object` (`dict`) - The object that this event is about. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `kind` (`str`) - 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 + * `last_timestamp` (`str`) - The time at which the most recent occurrence of this event was recorded. + * `message` (`str`) - A human-readable description of the status of this operation. + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `reason` (`str`) - This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + * `related` (`dict`) - Optional secondary object for more complex actions. + * `reporting_component` (`str`) - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + * `reporting_instance` (`str`) - ID of the controller instance, e.g. `kubelet-xyzf`. + * `series` (`dict`) - Data about the Event series this event represents or nil if it's a singleton Event. + * `count` (`float`) - Number of occurrences in this series up to the last heartbeat time + * `last_observed_time` (`str`) - Time of the last occurrence observed + * `state` (`str`) - State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18 + + * `source` (`dict`) - The component reporting this event. Should be a short machine understandable string. + * `component` (`str`) - Component from which the event is generated. + * `host` (`str`) - Node name on which the event is generated. + + * `type` (`str`) - Type of this event (Normal, Warning), new types could be added in the future + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + EventList is a list of events. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of events + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `action` (`pulumi.Input[str]`) - What action was taken/failed regarding to the Regarding object. + * `api_version` (`pulumi.Input[str]`) - 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 + * `count` (`pulumi.Input[float]`) - The number of times this event has occurred. + * `event_time` (`pulumi.Input[str]`) - Time when this Event was first observed. + * `first_timestamp` (`pulumi.Input[str]`) - The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + * `involved_object` (`pulumi.Input[dict]`) - The object that this event is about. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `kind` (`pulumi.Input[str]`) - 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 + * `last_timestamp` (`pulumi.Input[str]`) - The time at which the most recent occurrence of this event was recorded. + * `message` (`pulumi.Input[str]`) - A human-readable description of the status of this operation. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `reason` (`pulumi.Input[str]`) - This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + * `related` (`pulumi.Input[dict]`) - Optional secondary object for more complex actions. + * `reporting_component` (`pulumi.Input[str]`) - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + * `reporting_instance` (`pulumi.Input[str]`) - ID of the controller instance, e.g. `kubelet-xyzf`. + * `series` (`pulumi.Input[dict]`) - Data about the Event series this event represents or nil if it's a singleton Event. + * `count` (`pulumi.Input[float]`) - Number of occurrences in this series up to the last heartbeat time + * `last_observed_time` (`pulumi.Input[str]`) - Time of the last occurrence observed + * `state` (`pulumi.Input[str]`) - State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18 + + * `source` (`pulumi.Input[dict]`) - The component reporting this event. Should be a short machine understandable string. + * `component` (`pulumi.Input[str]`) - Component from which the event is generated. + * `host` (`pulumi.Input[str]`) - Node name on which the event is generated. + + * `type` (`pulumi.Input[str]`) - Type of this event (Normal, Warning), new types could be added in the future + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(EventList, __self__).__init__( + 'kubernetes:core/v1:EventList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing EventList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return EventList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/limit_range.py b/sdk/python/pulumi_kubernetes/core/v1/limit_range.py new file mode 100644 index 0000000000..f0df90bae5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/limit_range.py @@ -0,0 +1,199 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class LimitRange(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `limits` (`list`) - Limits is the list of LimitRangeItem objects that are enforced. + * `default` (`dict`) - Default resource requirement limit value by resource name if resource limit is omitted. + * `defaultRequest` (`dict`) - DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + * `max` (`dict`) - Max usage constraints on this kind by resource name. + * `maxLimitRequestRatio` (`dict`) - MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + * `min` (`dict`) - Min usage constraints on this kind by resource name. + * `type` (`str`) - Type of resource that this limit applies to. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + LimitRange sets resource usage limits for each kind of resource in a Namespace. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `limits` (`pulumi.Input[list]`) - Limits is the list of LimitRangeItem objects that are enforced. + * `default` (`pulumi.Input[dict]`) - Default resource requirement limit value by resource name if resource limit is omitted. + * `defaultRequest` (`pulumi.Input[dict]`) - DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + * `max` (`pulumi.Input[dict]`) - Max usage constraints on this kind by resource name. + * `maxLimitRequestRatio` (`pulumi.Input[dict]`) - MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + * `min` (`pulumi.Input[dict]`) - Min usage constraints on this kind by resource name. + * `type` (`pulumi.Input[str]`) - Type of resource that this limit applies to. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + super(LimitRange, __self__).__init__( + 'kubernetes:core/v1:LimitRange', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing LimitRange resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return LimitRange(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py b/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py new file mode 100644 index 0000000000..d671903839 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py @@ -0,0 +1,223 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class LimitRangeList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `limits` (`list`) - Limits is the list of LimitRangeItem objects that are enforced. + * `default` (`dict`) - Default resource requirement limit value by resource name if resource limit is omitted. + * `defaultRequest` (`dict`) - DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + * `max` (`dict`) - Max usage constraints on this kind by resource name. + * `maxLimitRequestRatio` (`dict`) - MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + * `min` (`dict`) - Min usage constraints on this kind by resource name. + * `type` (`str`) - Type of resource that this limit applies to. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + LimitRangeList is a list of LimitRange items. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `limits` (`pulumi.Input[list]`) - Limits is the list of LimitRangeItem objects that are enforced. + * `default` (`pulumi.Input[dict]`) - Default resource requirement limit value by resource name if resource limit is omitted. + * `defaultRequest` (`pulumi.Input[dict]`) - DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + * `max` (`pulumi.Input[dict]`) - Max usage constraints on this kind by resource name. + * `maxLimitRequestRatio` (`pulumi.Input[dict]`) - MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + * `min` (`pulumi.Input[dict]`) - Min usage constraints on this kind by resource name. + * `type` (`pulumi.Input[str]`) - Type of resource that this limit applies to. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(LimitRangeList, __self__).__init__( + 'kubernetes:core/v1:LimitRangeList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing LimitRangeList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return LimitRangeList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/namespace.py b/sdk/python/pulumi_kubernetes/core/v1/namespace.py new file mode 100644 index 0000000000..d7b1d73b2a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/namespace.py @@ -0,0 +1,200 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Namespace(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `finalizers` (`list`) - Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + """ + status: pulumi.Output[dict] + """ + Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `conditions` (`list`) - Represents the latest available observations of a namespace's current state. + * `lastTransitionTime` (`str`) + * `message` (`str`) + * `reason` (`str`) + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of namespace controller condition. + + * `phase` (`str`) - Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Namespace provides a scope for Names. Use of multiple namespaces is optional. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `finalizers` (`pulumi.Input[list]`) - Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(Namespace, __self__).__init__( + 'kubernetes:core/v1:Namespace', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Namespace resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Namespace(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py b/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py new file mode 100644 index 0000000000..110ead8bea --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py @@ -0,0 +1,231 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class NamespaceList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `finalizers` (`list`) - Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + + * `status` (`dict`) - Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `conditions` (`list`) - Represents the latest available observations of a namespace's current state. + * `lastTransitionTime` (`str`) + * `message` (`str`) + * `reason` (`str`) + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of namespace controller condition. + + * `phase` (`str`) - Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + NamespaceList is a list of Namespaces. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `finalizers` (`pulumi.Input[list]`) - Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + + * `status` (`pulumi.Input[dict]`) - Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a namespace's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) + * `message` (`pulumi.Input[str]`) + * `reason` (`pulumi.Input[str]`) + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of namespace controller condition. + + * `phase` (`pulumi.Input[str]`) - Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(NamespaceList, __self__).__init__( + 'kubernetes:core/v1:NamespaceList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing NamespaceList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return NamespaceList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/node.py b/sdk/python/pulumi_kubernetes/core/v1/node.py new file mode 100644 index 0000000000..1c1b669426 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/node.py @@ -0,0 +1,281 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Node(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `config_source` (`dict`) - If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field + * `config_map` (`dict`) - ConfigMap is a reference to a Node's ConfigMap + * `kubelet_config_key` (`str`) - KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. + * `name` (`str`) - Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. + * `namespace` (`str`) - Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. + * `resource_version` (`str`) - ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + * `uid` (`str`) - UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + + * `external_id` (`str`) - Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 + * `pod_cidr` (`str`) - PodCIDR represents the pod IP range assigned to the node. + * `pod_cid_rs` (`list`) - podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. + * `provider_id` (`str`) - ID of the node assigned by the cloud provider in the format: :// + * `taints` (`list`) - If specified, the node's taints. + * `effect` (`str`) - Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Required. The taint key to be applied to a node. + * `timeAdded` (`str`) - TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. + * `value` (`str`) - The taint value corresponding to the taint key. + + * `unschedulable` (`bool`) - Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `addresses` (`list`) - List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example. + * `address` (`str`) - The node address. + * `type` (`str`) - Node address type, one of Hostname, ExternalIP or InternalIP. + + * `allocatable` (`dict`) - Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. + * `capacity` (`dict`) - Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `conditions` (`list`) - Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition + * `lastHeartbeatTime` (`str`) - Last time we got an update on a given condition. + * `lastTransitionTime` (`str`) - Last time the condition transit from one status to another. + * `message` (`str`) - Human readable message indicating details about last transition. + * `reason` (`str`) - (brief) reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of node condition. + + * `config` (`dict`) - Status of the config assigned to the node via the dynamic Kubelet config feature. + * `active` (`dict`) - Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error. + * `config_map` (`dict`) - ConfigMap is a reference to a Node's ConfigMap + * `kubelet_config_key` (`str`) - KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. + * `name` (`str`) - Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. + * `namespace` (`str`) - Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. + * `resource_version` (`str`) - ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + * `uid` (`str`) - UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + + * `assigned` (`dict`) - Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned. + * `error` (`str`) - Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. + * `last_known_good` (`dict`) - LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future. + + * `daemon_endpoints` (`dict`) - Endpoints of daemons running on the Node. + * `kubelet_endpoint` (`dict`) - Endpoint on which Kubelet is listening. + * `port` (`float`) - Port number of the given endpoint. + + * `images` (`list`) - List of container images on this node + * `names` (`list`) - Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"] + * `sizeBytes` (`float`) - The size of the image in bytes. + + * `node_info` (`dict`) - Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info + * `architecture` (`str`) - The Architecture reported by the node + * `boot_id` (`str`) - Boot ID reported by the node. + * `container_runtime_version` (`str`) - ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). + * `kernel_version` (`str`) - Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + * `kube_proxy_version` (`str`) - KubeProxy Version reported by the node. + * `kubelet_version` (`str`) - Kubelet Version reported by the node. + * `machine_id` (`str`) - MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html + * `operating_system` (`str`) - The Operating System reported by the node + * `os_image` (`str`) - OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). + * `system_uuid` (`str`) - 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 + + * `phase` (`str`) - NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. + * `volumes_attached` (`list`) - List of volumes that are attached to the node. + * `devicePath` (`str`) - DevicePath represents the device path where the volume should be available + * `name` (`str`) - Name of the attached volume + + * `volumes_in_use` (`list`) - List of attachable volumes in use (mounted) by the node. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `config_source` (`pulumi.Input[dict]`) - If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field + * `config_map` (`pulumi.Input[dict]`) - ConfigMap is a reference to a Node's ConfigMap + * `kubelet_config_key` (`pulumi.Input[str]`) - KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. + * `name` (`pulumi.Input[str]`) - Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. + * `namespace` (`pulumi.Input[str]`) - Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. + * `resource_version` (`pulumi.Input[str]`) - ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + * `uid` (`pulumi.Input[str]`) - UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + + * `external_id` (`pulumi.Input[str]`) - Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 + * `pod_cidr` (`pulumi.Input[str]`) - PodCIDR represents the pod IP range assigned to the node. + * `pod_cid_rs` (`pulumi.Input[list]`) - podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. + * `provider_id` (`pulumi.Input[str]`) - ID of the node assigned by the cloud provider in the format: :// + * `taints` (`pulumi.Input[list]`) - If specified, the node's taints. + * `effect` (`pulumi.Input[str]`) - Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Required. The taint key to be applied to a node. + * `timeAdded` (`pulumi.Input[str]`) - TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. + * `value` (`pulumi.Input[str]`) - The taint value corresponding to the taint key. + + * `unschedulable` (`pulumi.Input[bool]`) - Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(Node, __self__).__init__( + 'kubernetes:core/v1:Node', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Node resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Node(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/node_list.py b/sdk/python/pulumi_kubernetes/core/v1/node_list.py new file mode 100644 index 0000000000..f585810b99 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/node_list.py @@ -0,0 +1,343 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class NodeList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of nodes + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `config_source` (`dict`) - If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field + * `config_map` (`dict`) - ConfigMap is a reference to a Node's ConfigMap + * `kubelet_config_key` (`str`) - KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. + * `name` (`str`) - Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. + * `namespace` (`str`) - Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. + * `resource_version` (`str`) - ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + * `uid` (`str`) - UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + + * `external_id` (`str`) - Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 + * `pod_cidr` (`str`) - PodCIDR represents the pod IP range assigned to the node. + * `pod_cid_rs` (`list`) - podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. + * `provider_id` (`str`) - ID of the node assigned by the cloud provider in the format: :// + * `taints` (`list`) - If specified, the node's taints. + * `effect` (`str`) - Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Required. The taint key to be applied to a node. + * `timeAdded` (`str`) - TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. + * `value` (`str`) - The taint value corresponding to the taint key. + + * `unschedulable` (`bool`) - Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration + + * `status` (`dict`) - Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `addresses` (`list`) - List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example. + * `address` (`str`) - The node address. + * `type` (`str`) - Node address type, one of Hostname, ExternalIP or InternalIP. + + * `allocatable` (`dict`) - Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. + * `capacity` (`dict`) - Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `conditions` (`list`) - Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition + * `lastHeartbeatTime` (`str`) - Last time we got an update on a given condition. + * `lastTransitionTime` (`str`) - Last time the condition transit from one status to another. + * `message` (`str`) - Human readable message indicating details about last transition. + * `reason` (`str`) - (brief) reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of node condition. + + * `config` (`dict`) - Status of the config assigned to the node via the dynamic Kubelet config feature. + * `active` (`dict`) - Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error. + * `assigned` (`dict`) - Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned. + * `error` (`str`) - Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. + * `last_known_good` (`dict`) - LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future. + + * `daemon_endpoints` (`dict`) - Endpoints of daemons running on the Node. + * `kubelet_endpoint` (`dict`) - Endpoint on which Kubelet is listening. + * `port` (`float`) - Port number of the given endpoint. + + * `images` (`list`) - List of container images on this node + * `names` (`list`) - Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"] + * `sizeBytes` (`float`) - The size of the image in bytes. + + * `node_info` (`dict`) - Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info + * `architecture` (`str`) - The Architecture reported by the node + * `boot_id` (`str`) - Boot ID reported by the node. + * `container_runtime_version` (`str`) - ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). + * `kernel_version` (`str`) - Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + * `kube_proxy_version` (`str`) - KubeProxy Version reported by the node. + * `kubelet_version` (`str`) - Kubelet Version reported by the node. + * `machine_id` (`str`) - MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html + * `operating_system` (`str`) - The Operating System reported by the node + * `os_image` (`str`) - OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). + * `system_uuid` (`str`) - 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 + + * `phase` (`str`) - NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. + * `volumes_attached` (`list`) - List of volumes that are attached to the node. + * `devicePath` (`str`) - DevicePath represents the device path where the volume should be available + * `name` (`str`) - Name of the attached volume + + * `volumes_in_use` (`list`) - List of attachable volumes in use (mounted) by the node. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + NodeList is the whole list of all Nodes which have been registered with master. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of nodes + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `config_source` (`pulumi.Input[dict]`) - If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field + * `config_map` (`pulumi.Input[dict]`) - ConfigMap is a reference to a Node's ConfigMap + * `kubelet_config_key` (`pulumi.Input[str]`) - KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. + * `name` (`pulumi.Input[str]`) - Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. + * `namespace` (`pulumi.Input[str]`) - Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. + * `resource_version` (`pulumi.Input[str]`) - ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + * `uid` (`pulumi.Input[str]`) - UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. + + * `external_id` (`pulumi.Input[str]`) - Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 + * `pod_cidr` (`pulumi.Input[str]`) - PodCIDR represents the pod IP range assigned to the node. + * `pod_cid_rs` (`pulumi.Input[list]`) - podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. + * `provider_id` (`pulumi.Input[str]`) - ID of the node assigned by the cloud provider in the format: :// + * `taints` (`pulumi.Input[list]`) - If specified, the node's taints. + * `effect` (`pulumi.Input[str]`) - Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Required. The taint key to be applied to a node. + * `timeAdded` (`pulumi.Input[str]`) - TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. + * `value` (`pulumi.Input[str]`) - The taint value corresponding to the taint key. + + * `unschedulable` (`pulumi.Input[bool]`) - Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration + + * `status` (`pulumi.Input[dict]`) - Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `addresses` (`pulumi.Input[list]`) - List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example. + * `address` (`pulumi.Input[str]`) - The node address. + * `type` (`pulumi.Input[str]`) - Node address type, one of Hostname, ExternalIP or InternalIP. + + * `allocatable` (`pulumi.Input[dict]`) - Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. + * `capacity` (`pulumi.Input[dict]`) - Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `conditions` (`pulumi.Input[list]`) - Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition + * `lastHeartbeatTime` (`pulumi.Input[str]`) - Last time we got an update on a given condition. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transit from one status to another. + * `message` (`pulumi.Input[str]`) - Human readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - (brief) reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of node condition. + + * `config` (`pulumi.Input[dict]`) - Status of the config assigned to the node via the dynamic Kubelet config feature. + * `active` (`pulumi.Input[dict]`) - Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error. + * `assigned` (`pulumi.Input[dict]`) - Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned. + * `error` (`pulumi.Input[str]`) - Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. + * `last_known_good` (`pulumi.Input[dict]`) - LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future. + + * `daemon_endpoints` (`pulumi.Input[dict]`) - Endpoints of daemons running on the Node. + * `kubelet_endpoint` (`pulumi.Input[dict]`) - Endpoint on which Kubelet is listening. + * `port` (`pulumi.Input[float]`) - Port number of the given endpoint. + + * `images` (`pulumi.Input[list]`) - List of container images on this node + * `names` (`pulumi.Input[list]`) - Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"] + * `sizeBytes` (`pulumi.Input[float]`) - The size of the image in bytes. + + * `node_info` (`pulumi.Input[dict]`) - Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info + * `architecture` (`pulumi.Input[str]`) - The Architecture reported by the node + * `boot_id` (`pulumi.Input[str]`) - Boot ID reported by the node. + * `container_runtime_version` (`pulumi.Input[str]`) - ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). + * `kernel_version` (`pulumi.Input[str]`) - Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + * `kube_proxy_version` (`pulumi.Input[str]`) - KubeProxy Version reported by the node. + * `kubelet_version` (`pulumi.Input[str]`) - Kubelet Version reported by the node. + * `machine_id` (`pulumi.Input[str]`) - MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html + * `operating_system` (`pulumi.Input[str]`) - The Operating System reported by the node + * `os_image` (`pulumi.Input[str]`) - OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). + * `system_uuid` (`pulumi.Input[str]`) - 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 + + * `phase` (`pulumi.Input[str]`) - NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. + * `volumes_attached` (`pulumi.Input[list]`) - List of volumes that are attached to the node. + * `devicePath` (`pulumi.Input[str]`) - DevicePath represents the device path where the volume should be available + * `name` (`pulumi.Input[str]`) - Name of the attached volume + + * `volumes_in_use` (`pulumi.Input[list]`) - List of attachable volumes in use (mounted) by the node. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(NodeList, __self__).__init__( + 'kubernetes:core/v1:NodeList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing NodeList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return NodeList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py new file mode 100644 index 0000000000..f9b74eb337 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py @@ -0,0 +1,553 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PersistentVolume(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`str`) - Share Name + + * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`str`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`dict`) - Attributes of the volume to publish. + * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`dict`) - Local represents directly-attached storage with node affinity + * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`dict`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + """ + status: pulumi.Output[dict] + """ + Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + * `message` (`str`) - A human-readable message indicating details about why the volume is in this state. + * `phase` (`str`) - Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase + * `reason` (`str`) - Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. + * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(PersistentVolume, __self__).__init__( + 'kubernetes:core/v1:PersistentVolume', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PersistentVolume resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PersistentVolume(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py new file mode 100644 index 0000000000..fce4aef9a0 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py @@ -0,0 +1,243 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PersistentVolumeClaim(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`list`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `data_source` (`dict`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `resources` (`dict`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `selector` (`dict`) - A label query over volumes to consider for binding. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `storage_class_name` (`str`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * `volume_mode` (`str`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * `volume_name` (`str`) - VolumeName is the binding reference to the PersistentVolume backing this claim. + """ + status: pulumi.Output[dict] + """ + Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`list`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `capacity` (`dict`) - Represents the actual resources of the underlying volume. + * `conditions` (`list`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + * `lastProbeTime` (`str`) - Last time we probed the condition. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - Human-readable message indicating details about last transition. + * `reason` (`str`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. + * `status` (`str`) + * `type` (`str`) + + * `phase` (`str`) - Phase represents the current phase of PersistentVolumeClaim. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PersistentVolumeClaim is a user's request for and claim to a persistent volume + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(PersistentVolumeClaim, __self__).__init__( + 'kubernetes:core/v1:PersistentVolumeClaim', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PersistentVolumeClaim resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PersistentVolumeClaim(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py new file mode 100644 index 0000000000..00840617a5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py @@ -0,0 +1,277 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PersistentVolumeClaimList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`list`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `data_source` (`dict`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `resources` (`dict`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `selector` (`dict`) - A label query over volumes to consider for binding. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `storage_class_name` (`str`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * `volume_mode` (`str`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * `volume_name` (`str`) - VolumeName is the binding reference to the PersistentVolume backing this claim. + + * `status` (`dict`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`list`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `capacity` (`dict`) - Represents the actual resources of the underlying volume. + * `conditions` (`list`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + * `lastProbeTime` (`str`) - Last time we probed the condition. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - Human-readable message indicating details about last transition. + * `reason` (`str`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. + * `status` (`str`) + * `type` (`str`) + + * `phase` (`str`) - Phase represents the current phase of PersistentVolumeClaim. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PersistentVolumeClaimList is a list of PersistentVolumeClaim items. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. + + * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. + * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. + * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. + * `status` (`pulumi.Input[str]`) + * `type` (`pulumi.Input[str]`) + + * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(PersistentVolumeClaimList, __self__).__init__( + 'kubernetes:core/v1:PersistentVolumeClaimList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PersistentVolumeClaimList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PersistentVolumeClaimList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py new file mode 100644 index 0000000000..066a5495d3 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py @@ -0,0 +1,579 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PersistentVolumeList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`str`) - Share Name + + * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`str`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`dict`) - Attributes of the volume to publish. + * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`dict`) - Local represents directly-attached storage with node affinity + * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`dict`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `status` (`dict`) - Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + * `message` (`str`) - A human-readable message indicating details about why the volume is in this state. + * `phase` (`str`) - Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase + * `reason` (`str`) - Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PersistentVolumeList is a list of PersistentVolume items. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. + * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `status` (`pulumi.Input[dict]`) - Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + * `message` (`pulumi.Input[str]`) - A human-readable message indicating details about why the volume is in this state. + * `phase` (`pulumi.Input[str]`) - Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase + * `reason` (`pulumi.Input[str]`) - Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(PersistentVolumeList, __self__).__init__( + 'kubernetes:core/v1:PersistentVolumeList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PersistentVolumeList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PersistentVolumeList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod.py b/sdk/python/pulumi_kubernetes/core/v1/pod.py new file mode 100644 index 0000000000..5c17c257ba --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/pod.py @@ -0,0 +1,1181 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Pod(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `conditions` (`list`) - Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + * `lastProbeTime` (`str`) - Last time we probed the condition. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - Human-readable message indicating details about last transition. + * `reason` (`str`) - Unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`str`) - Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + * `type` (`str`) - Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + + * `container_statuses` (`list`) - The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + * `containerID` (`str`) - Container's ID in the format 'docker://'. + * `image` (`str`) - The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images + * `imageID` (`str`) - ImageID of the container's image. + * `lastState` (`dict`) - Details about the container's last termination condition. + * `running` (`dict`) - Details about a running container + * `startedAt` (`str`) - Time at which the container was last (re-)started + + * `terminated` (`dict`) - Details about a terminated container + * `containerID` (`str`) - Container's ID in the format 'docker://' + * `exitCode` (`float`) - Exit status from the last termination of the container + * `finishedAt` (`str`) - Time at which the container last terminated + * `message` (`str`) - Message regarding the last termination of the container + * `reason` (`str`) - (brief) reason from the last termination of the container + * `signal` (`float`) - Signal from the last termination of the container + * `startedAt` (`str`) - Time at which previous execution of the container started + + * `waiting` (`dict`) - Details about a waiting container + * `message` (`str`) - Message regarding why the container is not yet running. + * `reason` (`str`) - (brief) reason the container is not yet running. + + * `name` (`str`) - This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. + * `ready` (`bool`) - Specifies whether the container has passed its readiness probe. + * `restartCount` (`float`) - The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. + * `started` (`bool`) - Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined. + * `state` (`dict`) - Details about the container's current condition. + + * `ephemeral_container_statuses` (`list`) - Status for any ephemeral containers that have run in this pod. This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature. + * `host_ip` (`str`) - IP address of the host to which the pod is assigned. Empty if not yet scheduled. + * `init_container_statuses` (`list`) - The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + * `message` (`str`) - A human readable message indicating details about why the pod is in this condition. + * `nominated_node_name` (`str`) - nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. + * `phase` (`str`) - The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: + + Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. + + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase + * `pod_ip` (`str`) - IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. + * `pod_i_ps` (`list`) - podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. + * `ip` (`str`) - ip is an IP address (IPv4 or IPv6) assigned to the pod + + * `qos_class` (`str`) - The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md + * `reason` (`str`) - A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' + * `start_time` (`str`) - RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Pod is scheduled ("PodScheduled"" '.status.condition' is true). + 2. The Pod is initialized ("Initialized" '.status.condition' is true). + 3. The Pod is ready ("Ready" '.status.condition' is true) and the '.status.phase' is + set to "Running". + Or (for Jobs): The Pod succeeded ('.status.phase' set to "Succeeded"). + + If the Pod has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(Pod, __self__).__init__( + 'kubernetes:core/v1:Pod', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Pod resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Pod(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_list.py b/sdk/python/pulumi_kubernetes/core/v1/pod_list.py new file mode 100644 index 0000000000..0855b3f0b0 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/pod_list.py @@ -0,0 +1,1241 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `status` (`dict`) - Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `conditions` (`list`) - Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + * `lastProbeTime` (`str`) - Last time we probed the condition. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - Human-readable message indicating details about last transition. + * `reason` (`str`) - Unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`str`) - Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + * `type` (`str`) - Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + + * `container_statuses` (`list`) - The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + * `containerID` (`str`) - Container's ID in the format 'docker://'. + * `image` (`str`) - The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images + * `imageID` (`str`) - ImageID of the container's image. + * `lastState` (`dict`) - Details about the container's last termination condition. + * `running` (`dict`) - Details about a running container + * `startedAt` (`str`) - Time at which the container was last (re-)started + + * `terminated` (`dict`) - Details about a terminated container + * `containerID` (`str`) - Container's ID in the format 'docker://' + * `exitCode` (`float`) - Exit status from the last termination of the container + * `finishedAt` (`str`) - Time at which the container last terminated + * `message` (`str`) - Message regarding the last termination of the container + * `reason` (`str`) - (brief) reason from the last termination of the container + * `signal` (`float`) - Signal from the last termination of the container + * `startedAt` (`str`) - Time at which previous execution of the container started + + * `waiting` (`dict`) - Details about a waiting container + * `message` (`str`) - Message regarding why the container is not yet running. + * `reason` (`str`) - (brief) reason the container is not yet running. + + * `name` (`str`) - This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. + * `ready` (`bool`) - Specifies whether the container has passed its readiness probe. + * `restartCount` (`float`) - The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. + * `started` (`bool`) - Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined. + * `state` (`dict`) - Details about the container's current condition. + + * `ephemeral_container_statuses` (`list`) - Status for any ephemeral containers that have run in this pod. This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature. + * `host_ip` (`str`) - IP address of the host to which the pod is assigned. Empty if not yet scheduled. + * `init_container_statuses` (`list`) - The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + * `message` (`str`) - A human readable message indicating details about why the pod is in this condition. + * `nominated_node_name` (`str`) - nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. + * `phase` (`str`) - The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: + + Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. + + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase + * `pod_ip` (`str`) - IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. + * `pod_i_ps` (`list`) - podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. + * `ip` (`str`) - ip is an IP address (IPv4 or IPv6) assigned to the pod + + * `qos_class` (`str`) - The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md + * `reason` (`str`) - A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' + * `start_time` (`str`) - RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PodList is a list of Pods. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `status` (`pulumi.Input[dict]`) - Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `conditions` (`pulumi.Input[list]`) - Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - Unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + * `type` (`pulumi.Input[str]`) - Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + + * `container_statuses` (`pulumi.Input[list]`) - The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + * `containerID` (`pulumi.Input[str]`) - Container's ID in the format 'docker://'. + * `image` (`pulumi.Input[str]`) - The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images + * `imageID` (`pulumi.Input[str]`) - ImageID of the container's image. + * `lastState` (`pulumi.Input[dict]`) - Details about the container's last termination condition. + * `running` (`pulumi.Input[dict]`) - Details about a running container + * `startedAt` (`pulumi.Input[str]`) - Time at which the container was last (re-)started + + * `terminated` (`pulumi.Input[dict]`) - Details about a terminated container + * `containerID` (`pulumi.Input[str]`) - Container's ID in the format 'docker://' + * `exitCode` (`pulumi.Input[float]`) - Exit status from the last termination of the container + * `finishedAt` (`pulumi.Input[str]`) - Time at which the container last terminated + * `message` (`pulumi.Input[str]`) - Message regarding the last termination of the container + * `reason` (`pulumi.Input[str]`) - (brief) reason from the last termination of the container + * `signal` (`pulumi.Input[float]`) - Signal from the last termination of the container + * `startedAt` (`pulumi.Input[str]`) - Time at which previous execution of the container started + + * `waiting` (`pulumi.Input[dict]`) - Details about a waiting container + * `message` (`pulumi.Input[str]`) - Message regarding why the container is not yet running. + * `reason` (`pulumi.Input[str]`) - (brief) reason the container is not yet running. + + * `name` (`pulumi.Input[str]`) - This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. + * `ready` (`pulumi.Input[bool]`) - Specifies whether the container has passed its readiness probe. + * `restartCount` (`pulumi.Input[float]`) - The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. + * `started` (`pulumi.Input[bool]`) - Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined. + * `state` (`pulumi.Input[dict]`) - Details about the container's current condition. + + * `ephemeral_container_statuses` (`pulumi.Input[list]`) - Status for any ephemeral containers that have run in this pod. This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature. + * `host_ip` (`pulumi.Input[str]`) - IP address of the host to which the pod is assigned. Empty if not yet scheduled. + * `init_container_statuses` (`pulumi.Input[list]`) - The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about why the pod is in this condition. + * `nominated_node_name` (`pulumi.Input[str]`) - nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. + * `phase` (`pulumi.Input[str]`) - The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: + + Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. + + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase + * `pod_ip` (`pulumi.Input[str]`) - IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. + * `pod_i_ps` (`pulumi.Input[list]`) - podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. + * `ip` (`pulumi.Input[str]`) - ip is an IP address (IPv4 or IPv6) assigned to the pod + + * `qos_class` (`pulumi.Input[str]`) - The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md + * `reason` (`pulumi.Input[str]`) - A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' + * `start_time` (`pulumi.Input[str]`) - RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(PodList, __self__).__init__( + 'kubernetes:core/v1:PodList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_template.py b/sdk/python/pulumi_kubernetes/core/v1/pod_template.py new file mode 100644 index 0000000000..dec118c440 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/pod_template.py @@ -0,0 +1,1160 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodTemplate(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + template: pulumi.Output[dict] + """ + Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, template=None, __props__=None, __name__=None, __opts__=None): + """ + PodTemplate describes a template for creating copies of a predefined pod. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] template: Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **template** object supports the following: + + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['template'] = template + super(PodTemplate, __self__).__init__( + 'kubernetes:core/v1:PodTemplate', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodTemplate resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodTemplate(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py b/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py new file mode 100644 index 0000000000..e5e5588386 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py @@ -0,0 +1,1137 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodTemplateList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of pod templates + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `template` (`dict`) - Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PodTemplateList is a list of PodTemplates. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of pod templates + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `template` (`pulumi.Input[dict]`) - Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(PodTemplateList, __self__).__init__( + 'kubernetes:core/v1:PodTemplateList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodTemplateList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodTemplateList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py b/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py new file mode 100644 index 0000000000..3aa993bbc3 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py @@ -0,0 +1,1185 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ReplicationController(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + * `selector` (`dict`) - Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + """ + status: pulumi.Output[dict] + """ + Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replication controller. + * `conditions` (`list`) - Represents the latest available observations of a replication controller's current state. + * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of replication controller condition. + + * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replication controller. + * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed replication controller. + * `ready_replicas` (`float`) - The number of ready replicas for this replication controller. + * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicationController represents the configuration of a replication controller. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(ReplicationController, __self__).__init__( + 'kubernetes:core/v1:ReplicationController', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicationController resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicationController(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py b/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py new file mode 100644 index 0000000000..5b21445096 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py @@ -0,0 +1,1173 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ReplicationControllerList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + * `selector` (`dict`) - Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `status` (`dict`) - Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replication controller. + * `conditions` (`list`) - Represents the latest available observations of a replication controller's current state. + * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of replication controller condition. + + * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replication controller. + * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed replication controller. + * `ready_replicas` (`float`) - The number of ready replicas for this replication controller. + * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicationControllerList is a collection of replication controllers. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `status` (`pulumi.Input[dict]`) - Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `available_replicas` (`pulumi.Input[float]`) - The number of available replicas (ready for at least minReadySeconds) for this replication controller. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a replication controller's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - The last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of replication controller condition. + + * `fully_labeled_replicas` (`pulumi.Input[float]`) - The number of pods that have labels matching the labels of the pod template of the replication controller. + * `observed_generation` (`pulumi.Input[float]`) - ObservedGeneration reflects the generation of the most recently observed replication controller. + * `ready_replicas` (`pulumi.Input[float]`) - The number of ready replicas for this replication controller. + * `replicas` (`pulumi.Input[float]`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ReplicationControllerList, __self__).__init__( + 'kubernetes:core/v1:ReplicationControllerList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicationControllerList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicationControllerList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py b/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py new file mode 100644 index 0000000000..440894bd64 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py @@ -0,0 +1,208 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ResourceQuota(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `hard` (`dict`) - hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * `scope_selector` (`dict`) - scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. + * `match_expressions` (`list`) - A list of scope selector requirements by scope of the resources. + * `operator` (`str`) - Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. + * `scopeName` (`str`) - The name of the scope that the selector applies to. + * `values` (`list`) - 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. This array is replaced during a strategic merge patch. + + * `scopes` (`list`) - A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + """ + status: pulumi.Output[dict] + """ + Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `hard` (`dict`) - Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * `used` (`dict`) - Used is the current observed total usage of the resource in the namespace. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + ResourceQuota sets aggregate quota restrictions enforced per namespace + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `hard` (`pulumi.Input[dict]`) - hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * `scope_selector` (`pulumi.Input[dict]`) - scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. + * `match_expressions` (`pulumi.Input[list]`) - A list of scope selector requirements by scope of the resources. + * `operator` (`pulumi.Input[str]`) - Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. + * `scopeName` (`pulumi.Input[str]`) - The name of the scope that the selector applies to. + * `values` (`pulumi.Input[list]`) - 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. This array is replaced during a strategic merge patch. + + * `scopes` (`pulumi.Input[list]`) - A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(ResourceQuota, __self__).__init__( + 'kubernetes:core/v1:ResourceQuota', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ResourceQuota resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ResourceQuota(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py b/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py new file mode 100644 index 0000000000..451f45d860 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py @@ -0,0 +1,233 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ResourceQuotaList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `hard` (`dict`) - hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * `scope_selector` (`dict`) - scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. + * `match_expressions` (`list`) - A list of scope selector requirements by scope of the resources. + * `operator` (`str`) - Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. + * `scopeName` (`str`) - The name of the scope that the selector applies to. + * `values` (`list`) - 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. This array is replaced during a strategic merge patch. + + * `scopes` (`list`) - A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + + * `status` (`dict`) - Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `hard` (`dict`) - Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * `used` (`dict`) - Used is the current observed total usage of the resource in the namespace. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ResourceQuotaList is a list of ResourceQuota items. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `hard` (`pulumi.Input[dict]`) - hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * `scope_selector` (`pulumi.Input[dict]`) - scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. + * `match_expressions` (`pulumi.Input[list]`) - A list of scope selector requirements by scope of the resources. + * `operator` (`pulumi.Input[str]`) - Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. + * `scopeName` (`pulumi.Input[str]`) - The name of the scope that the selector applies to. + * `values` (`pulumi.Input[list]`) - 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. This array is replaced during a strategic merge patch. + + * `scopes` (`pulumi.Input[list]`) - A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. + + * `status` (`pulumi.Input[dict]`) - Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `hard` (`pulumi.Input[dict]`) - Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + * `used` (`pulumi.Input[dict]`) - Used is the current observed total usage of the resource in the namespace. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ResourceQuotaList, __self__).__init__( + 'kubernetes:core/v1:ResourceQuotaList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ResourceQuotaList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ResourceQuotaList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/secret.py b/sdk/python/pulumi_kubernetes/core/v1/secret.py new file mode 100644 index 0000000000..087ead9284 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/secret.py @@ -0,0 +1,210 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Secret(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + data: pulumi.Output[dict] + """ + Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + """ + immutable: pulumi.Output[bool] + """ + Immutable, if set to true, ensures that data stored in the Secret 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. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + string_data: pulumi.Output[dict] + """ + stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. + """ + type: pulumi.Output[str] + """ + Used to facilitate programmatic handling of secret data. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, data=None, immutable=None, kind=None, metadata=None, string_data=None, type=None, __props__=None, __name__=None, __opts__=None): + """ + Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. + + Note: While Pulumi automatically encrypts the 'data' and 'stringData' + fields, this encryption only applies to Pulumi's context, including the state file, + the Service, the CLI, etc. Kubernetes does not encrypt Secret resources by default, + and the contents are visible to users with access to the Secret in Kubernetes using + tools like 'kubectl'. + + For more information on securing Kubernetes Secrets, see the following links: + https://kubernetes.io/docs/concepts/configuration/secret/#security-properties + https://kubernetes.io/docs/concepts/configuration/secret/#risks + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[dict] data: Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + :param pulumi.Input[bool] immutable: Immutable, if set to true, ensures that data stored in the Secret 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. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] string_data: stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. + :param pulumi.Input[str] type: Used to facilitate programmatic handling of secret data. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['data'] = data + __props__['immutable'] = immutable + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['string_data'] = string_data + __props__['type'] = type + super(Secret, __self__).__init__( + 'kubernetes:core/v1:Secret', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Secret resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Secret(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/secret_list.py b/sdk/python/pulumi_kubernetes/core/v1/secret_list.py new file mode 100644 index 0000000000..eaf3bb73e1 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/secret_list.py @@ -0,0 +1,215 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SecretList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret + * `api_version` (`str`) - 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 + * `data` (`dict`) - Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + * `immutable` (`bool`) - Immutable, if set to true, ensures that data stored in the Secret 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. + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `string_data` (`dict`) - stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. + * `type` (`str`) - Used to facilitate programmatic handling of secret data. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + SecretList is a list of Secret. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `data` (`pulumi.Input[dict]`) - Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + * `immutable` (`pulumi.Input[bool]`) - Immutable, if set to true, ensures that data stored in the Secret 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. + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `string_data` (`pulumi.Input[dict]`) - stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. + * `type` (`pulumi.Input[str]`) - Used to facilitate programmatic handling of secret data. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(SecretList, __self__).__init__( + 'kubernetes:core/v1:SecretList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SecretList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SecretList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/service.py b/sdk/python/pulumi_kubernetes/core/v1/service.py new file mode 100644 index 0000000000..59cfe9862e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/service.py @@ -0,0 +1,269 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Service(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `cluster_ip` (`str`) - clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are "None", empty string (""), or a valid IP address. "None" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * `external_i_ps` (`list`) - externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. + * `external_name` (`str`) - externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. + * `external_traffic_policy` (`str`) - externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. + * `health_check_node_port` (`float`) - healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. + * `ip_family` (`str`) - ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. IPv6). If a specific IP family is requested, the clusterIP field will be allocated from that family, if it is available in the cluster. If no IP family is requested, the cluster's primary IP family will be used. Other IP fields (loadBalancerIP, loadBalancerSourceRanges, externalIPs) and controllers which allocate external load-balancers should use the same IP family. Endpoints for this Service will be of this family. This field is immutable after creation. Assigning a ServiceIPFamily not available in the cluster (e.g. IPv6 in IPv4 only cluster) is an error condition and will fail during clusterIP assignment. + * `load_balancer_ip` (`str`) - Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. + * `load_balancer_source_ranges` (`list`) - If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ + * `ports` (`list`) - The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * `appProtocol` (`str`) - 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. + * `name` (`str`) - The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. + * `nodePort` (`float`) - The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + * `port` (`float`) - The port that will be exposed by this service. + * `protocol` (`str`) - The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. + * `targetPort` (`dict`) - Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service + + * `publish_not_ready_addresses` (`bool`) - publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. + * `selector` (`dict`) - Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ + * `session_affinity` (`str`) - Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * `session_affinity_config` (`dict`) - sessionAffinityConfig contains the configurations of session affinity. + * `client_ip` (`dict`) - clientIP contains the configurations of Client IP based session affinity. + * `timeout_seconds` (`float`) - timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). + + * `topology_keys` (`list`) - topologyKeys is a preference-order list of topology keys which implementations of services should use to preferentially sort endpoints when accessing this Service, it can not be used at the same time as externalTrafficPolicy=Local. Topology keys must be valid label keys and at most 16 keys may be specified. Endpoints are chosen based on the first topology key with available backends. If this field is specified and all entries have no backends that match the topology of the client, the service has no backends for that client and connections should fail. The special value "*" may be used to mean "any topology". This catch-all value, if used, only makes sense as the last value in the list. If this is not specified or empty, no topology constraints will be applied. + * `type` (`str`) - type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ExternalName" maps to the specified externalName. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `load_balancer` (`dict`) - LoadBalancer contains the current status of the load-balancer, if one is present. + * `ingress` (`list`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + * `hostname` (`str`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + * `ip` (`str`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. Service object exists. + 2. Related Endpoint objects are created. Each time we get an update, wait 10 seconds + for any stragglers. + 3. The endpoints objects target some number of living objects (unless the Service is + an "empty headless" Service [1] or a Service with '.spec.type: ExternalName'). + 4. External IP address is allocated (if Service has '.spec.type: LoadBalancer'). + + Known limitations: + Services targeting ReplicaSets (and, by extension, Deployments, + StatefulSets, etc.) with '.spec.replicas' set to 0 are not handled, and will time + out. To work around this limitation, set 'pulumi.com/skipAwait: "true"' on + '.metadata.annotations' for the Service. Work to handle this case is in progress [2]. + + [1] https://kubernetes.io/docs/concepts/services-networking/service/#headless-services + [2] https://github.com/pulumi/pulumi-kubernetes/pull/703 + + If the Service has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `cluster_ip` (`pulumi.Input[str]`) - clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are "None", empty string (""), or a valid IP address. "None" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * `external_i_ps` (`pulumi.Input[list]`) - externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. + * `external_name` (`pulumi.Input[str]`) - externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. + * `external_traffic_policy` (`pulumi.Input[str]`) - externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. + * `health_check_node_port` (`pulumi.Input[float]`) - healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. + * `ip_family` (`pulumi.Input[str]`) - ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. IPv6). If a specific IP family is requested, the clusterIP field will be allocated from that family, if it is available in the cluster. If no IP family is requested, the cluster's primary IP family will be used. Other IP fields (loadBalancerIP, loadBalancerSourceRanges, externalIPs) and controllers which allocate external load-balancers should use the same IP family. Endpoints for this Service will be of this family. This field is immutable after creation. Assigning a ServiceIPFamily not available in the cluster (e.g. IPv6 in IPv4 only cluster) is an error condition and will fail during clusterIP assignment. + * `load_balancer_ip` (`pulumi.Input[str]`) - Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. + * `load_balancer_source_ranges` (`pulumi.Input[list]`) - If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ + * `ports` (`pulumi.Input[list]`) - The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * `appProtocol` (`pulumi.Input[str]`) - 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. + * `name` (`pulumi.Input[str]`) - The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. + * `nodePort` (`pulumi.Input[float]`) - The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + * `port` (`pulumi.Input[float]`) - The port that will be exposed by this service. + * `protocol` (`pulumi.Input[str]`) - The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. + * `targetPort` (`pulumi.Input[dict]`) - Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service + + * `publish_not_ready_addresses` (`pulumi.Input[bool]`) - publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. + * `selector` (`pulumi.Input[dict]`) - Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ + * `session_affinity` (`pulumi.Input[str]`) - Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * `session_affinity_config` (`pulumi.Input[dict]`) - sessionAffinityConfig contains the configurations of session affinity. + * `client_ip` (`pulumi.Input[dict]`) - clientIP contains the configurations of Client IP based session affinity. + * `timeout_seconds` (`pulumi.Input[float]`) - timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). + + * `topology_keys` (`pulumi.Input[list]`) - topologyKeys is a preference-order list of topology keys which implementations of services should use to preferentially sort endpoints when accessing this Service, it can not be used at the same time as externalTrafficPolicy=Local. Topology keys must be valid label keys and at most 16 keys may be specified. Endpoints are chosen based on the first topology key with available backends. If this field is specified and all entries have no backends that match the topology of the client, the service has no backends for that client and connections should fail. The special value "*" may be used to mean "any topology". This catch-all value, if used, only makes sense as the last value in the list. If this is not specified or empty, no topology constraints will be applied. + * `type` (`pulumi.Input[str]`) - type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ExternalName" maps to the specified externalName. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(Service, __self__).__init__( + 'kubernetes:core/v1:Service', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Service resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Service(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_account.py b/sdk/python/pulumi_kubernetes/core/v1/service_account.py new file mode 100644 index 0000000000..76b4d5c15e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/service_account.py @@ -0,0 +1,216 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ServiceAccount(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + automount_service_account_token: pulumi.Output[bool] + """ + AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + """ + image_pull_secrets: pulumi.Output[list] + """ + ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + secrets: pulumi.Output[list] + """ + Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + """ + def __init__(__self__, resource_name, opts=None, api_version=None, automount_service_account_token=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None, __props__=None, __name__=None, __opts__=None): + """ + ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[bool] automount_service_account_token: AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + :param pulumi.Input[list] image_pull_secrets: ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[list] secrets: Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret + + The **image_pull_secrets** object supports the following: + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **secrets** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['automount_service_account_token'] = automount_service_account_token + __props__['image_pull_secrets'] = image_pull_secrets + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['secrets'] = secrets + super(ServiceAccount, __self__).__init__( + 'kubernetes:core/v1:ServiceAccount', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ServiceAccount resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ServiceAccount(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py b/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py new file mode 100644 index 0000000000..a1a511c66d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py @@ -0,0 +1,231 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ServiceAccountList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `api_version` (`str`) - 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 + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + * `image_pull_secrets` (`list`) - ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `secrets` (`list`) - Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ServiceAccountList is a list of ServiceAccount objects + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `secrets` (`pulumi.Input[list]`) - Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ServiceAccountList, __self__).__init__( + 'kubernetes:core/v1:ServiceAccountList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ServiceAccountList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ServiceAccountList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_list.py b/sdk/python/pulumi_kubernetes/core/v1/service_list.py new file mode 100644 index 0000000000..badb8ddcbd --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/service_list.py @@ -0,0 +1,271 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ServiceList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of services + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `cluster_ip` (`str`) - clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are "None", empty string (""), or a valid IP address. "None" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * `external_i_ps` (`list`) - externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. + * `external_name` (`str`) - externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. + * `external_traffic_policy` (`str`) - externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. + * `health_check_node_port` (`float`) - healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. + * `ip_family` (`str`) - ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. IPv6). If a specific IP family is requested, the clusterIP field will be allocated from that family, if it is available in the cluster. If no IP family is requested, the cluster's primary IP family will be used. Other IP fields (loadBalancerIP, loadBalancerSourceRanges, externalIPs) and controllers which allocate external load-balancers should use the same IP family. Endpoints for this Service will be of this family. This field is immutable after creation. Assigning a ServiceIPFamily not available in the cluster (e.g. IPv6 in IPv4 only cluster) is an error condition and will fail during clusterIP assignment. + * `load_balancer_ip` (`str`) - Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. + * `load_balancer_source_ranges` (`list`) - If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ + * `ports` (`list`) - The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * `appProtocol` (`str`) - 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. + * `name` (`str`) - The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. + * `nodePort` (`float`) - The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + * `port` (`float`) - The port that will be exposed by this service. + * `protocol` (`str`) - The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. + * `targetPort` (`dict`) - Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service + + * `publish_not_ready_addresses` (`bool`) - publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. + * `selector` (`dict`) - Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ + * `session_affinity` (`str`) - Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * `session_affinity_config` (`dict`) - sessionAffinityConfig contains the configurations of session affinity. + * `client_ip` (`dict`) - clientIP contains the configurations of Client IP based session affinity. + * `timeout_seconds` (`float`) - timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). + + * `topology_keys` (`list`) - topologyKeys is a preference-order list of topology keys which implementations of services should use to preferentially sort endpoints when accessing this Service, it can not be used at the same time as externalTrafficPolicy=Local. Topology keys must be valid label keys and at most 16 keys may be specified. Endpoints are chosen based on the first topology key with available backends. If this field is specified and all entries have no backends that match the topology of the client, the service has no backends for that client and connections should fail. The special value "*" may be used to mean "any topology". This catch-all value, if used, only makes sense as the last value in the list. If this is not specified or empty, no topology constraints will be applied. + * `type` (`str`) - type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ExternalName" maps to the specified externalName. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types + + * `status` (`dict`) - Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `load_balancer` (`dict`) - LoadBalancer contains the current status of the load-balancer, if one is present. + * `ingress` (`list`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + * `hostname` (`str`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + * `ip` (`str`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ServiceList holds a list of services. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of services + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `cluster_ip` (`pulumi.Input[str]`) - clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are "None", empty string (""), or a valid IP address. "None" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * `external_i_ps` (`pulumi.Input[list]`) - externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. + * `external_name` (`pulumi.Input[str]`) - externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. + * `external_traffic_policy` (`pulumi.Input[str]`) - externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. + * `health_check_node_port` (`pulumi.Input[float]`) - healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. + * `ip_family` (`pulumi.Input[str]`) - ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. IPv6). If a specific IP family is requested, the clusterIP field will be allocated from that family, if it is available in the cluster. If no IP family is requested, the cluster's primary IP family will be used. Other IP fields (loadBalancerIP, loadBalancerSourceRanges, externalIPs) and controllers which allocate external load-balancers should use the same IP family. Endpoints for this Service will be of this family. This field is immutable after creation. Assigning a ServiceIPFamily not available in the cluster (e.g. IPv6 in IPv4 only cluster) is an error condition and will fail during clusterIP assignment. + * `load_balancer_ip` (`pulumi.Input[str]`) - Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. + * `load_balancer_source_ranges` (`pulumi.Input[list]`) - If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ + * `ports` (`pulumi.Input[list]`) - The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * `appProtocol` (`pulumi.Input[str]`) - 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. + * `name` (`pulumi.Input[str]`) - The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. + * `nodePort` (`pulumi.Input[float]`) - The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + * `port` (`pulumi.Input[float]`) - The port that will be exposed by this service. + * `protocol` (`pulumi.Input[str]`) - The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. + * `targetPort` (`pulumi.Input[dict]`) - Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service + + * `publish_not_ready_addresses` (`pulumi.Input[bool]`) - publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. + * `selector` (`pulumi.Input[dict]`) - Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ + * `session_affinity` (`pulumi.Input[str]`) - Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + * `session_affinity_config` (`pulumi.Input[dict]`) - sessionAffinityConfig contains the configurations of session affinity. + * `client_ip` (`pulumi.Input[dict]`) - clientIP contains the configurations of Client IP based session affinity. + * `timeout_seconds` (`pulumi.Input[float]`) - timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). + + * `topology_keys` (`pulumi.Input[list]`) - topologyKeys is a preference-order list of topology keys which implementations of services should use to preferentially sort endpoints when accessing this Service, it can not be used at the same time as externalTrafficPolicy=Local. Topology keys must be valid label keys and at most 16 keys may be specified. Endpoints are chosen based on the first topology key with available backends. If this field is specified and all entries have no backends that match the topology of the client, the service has no backends for that client and connections should fail. The special value "*" may be used to mean "any topology". This catch-all value, if used, only makes sense as the last value in the list. If this is not specified or empty, no topology constraints will be applied. + * `type` (`pulumi.Input[str]`) - type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ExternalName" maps to the specified externalName. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types + + * `status` (`pulumi.Input[dict]`) - Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `load_balancer` (`pulumi.Input[dict]`) - LoadBalancer contains the current status of the load-balancer, if one is present. + * `ingress` (`pulumi.Input[list]`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + * `hostname` (`pulumi.Input[str]`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + * `ip` (`pulumi.Input[str]`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ServiceList, __self__).__init__( + 'kubernetes:core/v1:ServiceList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ServiceList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ServiceList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/discovery/__init__.py b/sdk/python/pulumi_kubernetes/discovery/__init__.py old mode 100755 new mode 100644 index 3569e9ec84..a311e81ad2 --- a/sdk/python/pulumi_kubernetes/discovery/__init__.py +++ b/sdk/python/pulumi_kubernetes/discovery/__init__.py @@ -1,8 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1beta1", -] +__all__ = ['v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py deleted file mode 100755 index acbfb405e6..0000000000 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +++ /dev/null @@ -1,141 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class EndpointSlice(pulumi.CustomResource): - """ - EndpointSlice represents a subset of the endpoints that implement a service. For a given service - there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce - the full set of endpoints. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - address_type: pulumi.Output[str] - """ - addressType specifies the type of address carried by this EndpointSlice. All addresses in this - slice must be the same type. This field is immutable after creation. The following address types - are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. - * FQDN: Represents a Fully Qualified Domain Name. - """ - - endpoints: pulumi.Output[list] - """ - endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 - endpoints. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - ports: pulumi.Output[list] - """ - ports specifies the list of network ports exposed by each endpoint in this slice. Each port must - have a unique name. When ports is empty, it indicates that there are no defined ports. When a - port is defined with a nil port value, it indicates "all ports". Each slice may include a - maximum of 100 ports. - """ - - def __init__(self, resource_name, opts=None, address_type=None, endpoints=None, metadata=None, ports=None, __name__=None, __opts__=None): - """ - Create a EndpointSlice resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[str] address_type: addressType specifies the type of address carried by this EndpointSlice. All - addresses in this slice must be the same type. This field is immutable after - creation. The following address types are currently supported: * IPv4: Represents an - IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully - Qualified Domain Name. - :param pulumi.Input[list] endpoints: endpoints is a list of unique endpoints in this slice. Each slice may include a - maximum of 1000 endpoints. - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] ports: ports specifies the list of network ports exposed by each endpoint in this slice. - Each port must have a unique name. When ports is empty, it indicates that there are - no defined ports. When a port is defined with a nil port value, it indicates "all - ports". Each slice may include a maximum of 100 ports. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'discovery.k8s.io/v1beta1' - __props__['kind'] = 'EndpointSlice' - if address_type is None: - raise TypeError('Missing required property address_type') - __props__['addressType'] = address_type - if endpoints is None: - raise TypeError('Missing required property endpoints') - __props__['endpoints'] = endpoints - __props__['metadata'] = metadata - __props__['ports'] = ports - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(EndpointSlice, self).__init__( - "kubernetes:discovery.k8s.io/v1beta1:EndpointSlice", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `EndpointSlice` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return EndpointSlice(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py deleted file mode 100755 index 99cadd1b2c..0000000000 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class EndpointSliceList(pulumi.CustomResource): - """ - EndpointSliceList represents a list of endpoint slices - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of endpoint slices - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a EndpointSliceList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of endpoint slices - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'discovery.k8s.io/v1beta1' - __props__['kind'] = 'EndpointSliceList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(EndpointSliceList, self).__init__( - "kubernetes:discovery.k8s.io/v1beta1:EndpointSliceList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `EndpointSliceList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return EndpointSliceList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py old mode 100755 new mode 100644 index 698380159d..89d95aa3ee --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .EndpointSlice import (EndpointSlice) -from .EndpointSliceList import (EndpointSliceList) +from .endpoint_slice import * +from .endpoint_slice_list import * diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py new file mode 100644 index 0000000000..a3f783a5b9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py @@ -0,0 +1,254 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class EndpointSlice(pulumi.CustomResource): + address_type: pulumi.Output[str] + """ + addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + endpoints: pulumi.Output[list] + """ + endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + * `addresses` (`list`) - addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. + * `conditions` (`dict`) - conditions contains information about the current status of the endpoint. + * `ready` (`bool`) - ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. + + * `hostname` (`str`) - hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation. + * `targetRef` (`dict`) - targetRef is a reference to a Kubernetes object that represents this endpoint. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `topology` (`dict`) - topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node + where the endpoint is located. This should match the corresponding + node label. + * topology.kubernetes.io/zone: the value indicates the zone where the + endpoint is located. This should match the corresponding node label. + * topology.kubernetes.io/region: the value indicates the region where the + endpoint is located. This should match the corresponding node label. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + ports: pulumi.Output[list] + """ + ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + * `appProtocol` (`str`) - 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. + * `name` (`str`) - The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. + * `port` (`float`) - The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. + * `protocol` (`str`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + """ + def __init__(__self__, resource_name, opts=None, address_type=None, api_version=None, endpoints=None, kind=None, metadata=None, ports=None, __props__=None, __name__=None, __opts__=None): + """ + EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] address_type: addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + :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 + :param pulumi.Input[list] endpoints: endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] ports: ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + + The **endpoints** object supports the following: + + * `addresses` (`pulumi.Input[list]`) - addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. + * `conditions` (`pulumi.Input[dict]`) - conditions contains information about the current status of the endpoint. + * `ready` (`pulumi.Input[bool]`) - ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. + + * `hostname` (`pulumi.Input[str]`) - hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation. + * `targetRef` (`pulumi.Input[dict]`) - targetRef is a reference to a Kubernetes object that represents this endpoint. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `topology` (`pulumi.Input[dict]`) - topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node + where the endpoint is located. This should match the corresponding + node label. + * topology.kubernetes.io/zone: the value indicates the zone where the + endpoint is located. This should match the corresponding node label. + * topology.kubernetes.io/region: the value indicates the region where the + endpoint is located. This should match the corresponding node label. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **ports** object supports the following: + + * `appProtocol` (`pulumi.Input[str]`) - 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. + * `name` (`pulumi.Input[str]`) - The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. + * `port` (`pulumi.Input[float]`) - The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. + * `protocol` (`pulumi.Input[str]`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + if address_type is None: + raise TypeError("Missing required property 'address_type'") + __props__['address_type'] = address_type + __props__['api_version'] = api_version + if endpoints is None: + raise TypeError("Missing required property 'endpoints'") + __props__['endpoints'] = endpoints + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['ports'] = ports + super(EndpointSlice, __self__).__init__( + 'kubernetes:discovery.k8s.io/v1beta1:EndpointSlice', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing EndpointSlice resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return EndpointSlice(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py new file mode 100644 index 0000000000..e299caea0d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py @@ -0,0 +1,265 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class EndpointSliceList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of endpoint slices + * `address_type` (`str`) - addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + * `api_version` (`str`) - 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 + * `endpoints` (`list`) - endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + * `addresses` (`list`) - addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. + * `conditions` (`dict`) - conditions contains information about the current status of the endpoint. + * `ready` (`bool`) - ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. + + * `hostname` (`str`) - hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation. + * `targetRef` (`dict`) - targetRef is a reference to a Kubernetes object that represents this endpoint. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `topology` (`dict`) - topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node + where the endpoint is located. This should match the corresponding + node label. + * topology.kubernetes.io/zone: the value indicates the zone where the + endpoint is located. This should match the corresponding node label. + * topology.kubernetes.io/region: the value indicates the region where the + endpoint is located. This should match the corresponding node label. + + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `ports` (`list`) - ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + * `appProtocol` (`str`) - 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. + * `name` (`str`) - The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. + * `port` (`float`) - The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. + * `protocol` (`str`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + EndpointSliceList represents a list of endpoint slices + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of endpoint slices + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + + The **items** object supports the following: + + * `address_type` (`pulumi.Input[str]`) - addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + * `api_version` (`pulumi.Input[str]`) - 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 + * `endpoints` (`pulumi.Input[list]`) - endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + * `addresses` (`pulumi.Input[list]`) - addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. + * `conditions` (`pulumi.Input[dict]`) - conditions contains information about the current status of the endpoint. + * `ready` (`pulumi.Input[bool]`) - ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. + + * `hostname` (`pulumi.Input[str]`) - hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation. + * `targetRef` (`pulumi.Input[dict]`) - targetRef is a reference to a Kubernetes object that represents this endpoint. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `topology` (`pulumi.Input[dict]`) - topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node + where the endpoint is located. This should match the corresponding + node label. + * topology.kubernetes.io/zone: the value indicates the zone where the + endpoint is located. This should match the corresponding node label. + * topology.kubernetes.io/region: the value indicates the region where the + endpoint is located. This should match the corresponding node label. + + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `ports` (`pulumi.Input[list]`) - ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + * `appProtocol` (`pulumi.Input[str]`) - 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. + * `name` (`pulumi.Input[str]`) - The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. + * `port` (`pulumi.Input[float]`) - The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. + * `protocol` (`pulumi.Input[str]`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(EndpointSliceList, __self__).__init__( + 'kubernetes:discovery.k8s.io/v1beta1:EndpointSliceList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing EndpointSliceList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return EndpointSliceList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/events/__init__.py b/sdk/python/pulumi_kubernetes/events/__init__.py old mode 100755 new mode 100644 index 3569e9ec84..a311e81ad2 --- a/sdk/python/pulumi_kubernetes/events/__init__.py +++ b/sdk/python/pulumi_kubernetes/events/__init__.py @@ -1,8 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1beta1", -] +__all__ = ['v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py b/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py deleted file mode 100755 index 2b674ad05b..0000000000 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py +++ /dev/null @@ -1,212 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Event(pulumi.CustomResource): - """ - Event is a report of an event somewhere in the cluster. It generally denotes some state change - in the system. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - action: pulumi.Output[str] - """ - What action was taken/failed regarding to the regarding object. - """ - - deprecated_count: pulumi.Output[int] - """ - Deprecated field assuring backward compatibility with core.v1 Event type - """ - - deprecated_first_timestamp: pulumi.Output[str] - """ - Deprecated field assuring backward compatibility with core.v1 Event type - """ - - deprecated_last_timestamp: pulumi.Output[str] - """ - Deprecated field assuring backward compatibility with core.v1 Event type - """ - - deprecated_source: pulumi.Output[dict] - """ - Deprecated field assuring backward compatibility with core.v1 Event type - """ - - event_time: pulumi.Output[str] - """ - Required. Time when this Event was first observed. - """ - - metadata: pulumi.Output[dict] - - - note: pulumi.Output[str] - """ - Optional. A human-readable description of the status of this operation. Maximal length of the - note is 1kB, but libraries should be prepared to handle values up to 64kB. - """ - - reason: pulumi.Output[str] - """ - Why the action was taken. - """ - - regarding: pulumi.Output[dict] - """ - The object this Event is about. In most cases it's an Object reporting controller implements. - E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on - some changes in a ReplicaSet object. - """ - - related: pulumi.Output[dict] - """ - Optional secondary object for more complex actions. E.g. when regarding object triggers a - creation or deletion of related object. - """ - - reporting_controller: pulumi.Output[str] - """ - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - """ - - reporting_instance: pulumi.Output[str] - """ - ID of the controller instance, e.g. `kubelet-xyzf`. - """ - - series: pulumi.Output[dict] - """ - Data about the Event series this event represents or nil if it's a singleton Event. - """ - - type: pulumi.Output[str] - """ - Type of this event (Normal, Warning), new types could be added in the future. - """ - - def __init__(self, resource_name, opts=None, event_time=None, action=None, deprecated_count=None, deprecated_first_timestamp=None, deprecated_last_timestamp=None, deprecated_source=None, metadata=None, note=None, reason=None, regarding=None, related=None, reporting_controller=None, reporting_instance=None, series=None, type=None, __name__=None, __opts__=None): - """ - Create a Event resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[str] event_time: Required. Time when this Event was first observed. - :param pulumi.Input[str] action: What action was taken/failed regarding to the regarding object. - :param pulumi.Input[int] deprecated_count: Deprecated field assuring backward compatibility with core.v1 Event type - :param pulumi.Input[str] deprecated_first_timestamp: Deprecated field assuring backward compatibility with core.v1 Event type - :param pulumi.Input[str] deprecated_last_timestamp: Deprecated field assuring backward compatibility with core.v1 Event type - :param pulumi.Input[dict] deprecated_source: Deprecated field assuring backward compatibility with core.v1 Event type - :param pulumi.Input[dict] metadata: - :param pulumi.Input[str] note: Optional. A human-readable description of the status of this operation. Maximal - length of the note is 1kB, but libraries should be prepared to handle values up to - 64kB. - :param pulumi.Input[str] reason: Why the action was taken. - :param pulumi.Input[dict] regarding: The object this Event is about. In most cases it's an Object reporting controller - implements. E.g. ReplicaSetController implements ReplicaSets and this event is - emitted because it acts on some changes in a ReplicaSet object. - :param pulumi.Input[dict] related: Optional secondary object for more complex actions. E.g. when regarding object - triggers a creation or deletion of related object. - :param pulumi.Input[str] reporting_controller: Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - :param pulumi.Input[str] reporting_instance: ID of the controller instance, e.g. `kubelet-xyzf`. - :param pulumi.Input[dict] series: Data about the Event series this event represents or nil if it's a singleton Event. - :param pulumi.Input[str] type: Type of this event (Normal, Warning), new types could be added in the future. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'events.k8s.io/v1beta1' - __props__['kind'] = 'Event' - if event_time is None: - raise TypeError('Missing required property event_time') - __props__['eventTime'] = event_time - __props__['action'] = action - __props__['deprecatedCount'] = deprecated_count - __props__['deprecatedFirstTimestamp'] = deprecated_first_timestamp - __props__['deprecatedLastTimestamp'] = deprecated_last_timestamp - __props__['deprecatedSource'] = deprecated_source - __props__['metadata'] = metadata - __props__['note'] = note - __props__['reason'] = reason - __props__['regarding'] = regarding - __props__['related'] = related - __props__['reportingController'] = reporting_controller - __props__['reportingInstance'] = reporting_instance - __props__['series'] = series - __props__['type'] = type - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:core/v1:Event"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(Event, self).__init__( - "kubernetes:events.k8s.io/v1beta1:Event", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Event` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Event(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py deleted file mode 100755 index 09e3611f76..0000000000 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class EventList(pulumi.CustomResource): - """ - EventList is a list of Event objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a EventList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of schema objects. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'events.k8s.io/v1beta1' - __props__['kind'] = 'EventList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(EventList, self).__init__( - "kubernetes:events.k8s.io/v1beta1:EventList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `EventList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return EventList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py old mode 100755 new mode 100644 index 64e9724c8d..998e210a6d --- a/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .Event import (Event) -from .EventList import (EventList) +from .event import * +from .event_list import * diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/event.py b/sdk/python/pulumi_kubernetes/events/v1beta1/event.py new file mode 100644 index 0000000000..2a2d2ad3be --- /dev/null +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/event.py @@ -0,0 +1,254 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Event(pulumi.CustomResource): + action: pulumi.Output[str] + """ + What action was taken/failed regarding to the regarding object. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + deprecated_count: pulumi.Output[float] + """ + Deprecated field assuring backward compatibility with core.v1 Event type + """ + deprecated_first_timestamp: pulumi.Output[str] + """ + Deprecated field assuring backward compatibility with core.v1 Event type + """ + deprecated_last_timestamp: pulumi.Output[str] + """ + Deprecated field assuring backward compatibility with core.v1 Event type + """ + deprecated_source: pulumi.Output[dict] + """ + Deprecated field assuring backward compatibility with core.v1 Event type + * `component` (`str`) - Component from which the event is generated. + * `host` (`str`) - Node name on which the event is generated. + """ + event_time: pulumi.Output[str] + """ + Required. Time when this Event was first observed. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + note: pulumi.Output[str] + """ + Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + """ + reason: pulumi.Output[str] + """ + Why the action was taken. + """ + regarding: pulumi.Output[dict] + """ + The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + """ + related: pulumi.Output[dict] + """ + Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + """ + reporting_controller: pulumi.Output[str] + """ + Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + """ + reporting_instance: pulumi.Output[str] + """ + ID of the controller instance, e.g. `kubelet-xyzf`. + """ + series: pulumi.Output[dict] + """ + Data about the Event series this event represents or nil if it's a singleton Event. + * `count` (`float`) - Number of occurrences in this series up to the last heartbeat time + * `last_observed_time` (`str`) - Time when last Event from the series was seen before last heartbeat. + * `state` (`str`) - Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18 + """ + type: pulumi.Output[str] + """ + Type of this event (Normal, Warning), new types could be added in the future. + """ + def __init__(__self__, resource_name, opts=None, action=None, api_version=None, deprecated_count=None, deprecated_first_timestamp=None, deprecated_last_timestamp=None, deprecated_source=None, event_time=None, kind=None, metadata=None, note=None, reason=None, regarding=None, related=None, reporting_controller=None, reporting_instance=None, series=None, type=None, __props__=None, __name__=None, __opts__=None): + """ + Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] action: What action was taken/failed regarding to the regarding object. + :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 + :param pulumi.Input[float] deprecated_count: Deprecated field assuring backward compatibility with core.v1 Event type + :param pulumi.Input[str] deprecated_first_timestamp: Deprecated field assuring backward compatibility with core.v1 Event type + :param pulumi.Input[str] deprecated_last_timestamp: Deprecated field assuring backward compatibility with core.v1 Event type + :param pulumi.Input[dict] deprecated_source: Deprecated field assuring backward compatibility with core.v1 Event type + :param pulumi.Input[str] event_time: Required. Time when this Event was first observed. + :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 + :param pulumi.Input[str] note: Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + :param pulumi.Input[str] reason: Why the action was taken. + :param pulumi.Input[dict] regarding: The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + :param pulumi.Input[dict] related: Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + :param pulumi.Input[str] reporting_controller: Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + :param pulumi.Input[str] reporting_instance: ID of the controller instance, e.g. `kubelet-xyzf`. + :param pulumi.Input[dict] series: Data about the Event series this event represents or nil if it's a singleton Event. + :param pulumi.Input[str] type: Type of this event (Normal, Warning), new types could be added in the future. + + The **deprecated_source** object supports the following: + + * `component` (`pulumi.Input[str]`) - Component from which the event is generated. + * `host` (`pulumi.Input[str]`) - Node name on which the event is generated. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **regarding** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + The **series** object supports the following: + + * `count` (`pulumi.Input[float]`) - Number of occurrences in this series up to the last heartbeat time + * `last_observed_time` (`pulumi.Input[str]`) - Time when last Event from the series was seen before last heartbeat. + * `state` (`pulumi.Input[str]`) - Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['action'] = action + __props__['api_version'] = api_version + __props__['deprecated_count'] = deprecated_count + __props__['deprecated_first_timestamp'] = deprecated_first_timestamp + __props__['deprecated_last_timestamp'] = deprecated_last_timestamp + __props__['deprecated_source'] = deprecated_source + if event_time is None: + raise TypeError("Missing required property 'event_time'") + __props__['event_time'] = event_time + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['note'] = note + __props__['reason'] = reason + __props__['regarding'] = regarding + __props__['related'] = related + __props__['reporting_controller'] = reporting_controller + __props__['reporting_instance'] = reporting_instance + __props__['series'] = series + __props__['type'] = type + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:core/v1:Event")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Event, __self__).__init__( + 'kubernetes:events.k8s.io/v1beta1:Event', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Event resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Event(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py b/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py new file mode 100644 index 0000000000..3913a5d513 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py @@ -0,0 +1,265 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class EventList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + * `action` (`str`) - What action was taken/failed regarding to the regarding object. + * `api_version` (`str`) - 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 + * `deprecated_count` (`float`) - Deprecated field assuring backward compatibility with core.v1 Event type + * `deprecated_first_timestamp` (`str`) - Deprecated field assuring backward compatibility with core.v1 Event type + * `deprecated_last_timestamp` (`str`) - Deprecated field assuring backward compatibility with core.v1 Event type + * `deprecated_source` (`dict`) - Deprecated field assuring backward compatibility with core.v1 Event type + * `component` (`str`) - Component from which the event is generated. + * `host` (`str`) - Node name on which the event is generated. + + * `event_time` (`str`) - Required. Time when this Event was first observed. + * `kind` (`str`) - 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 + * `metadata` (`dict`) + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `note` (`str`) - Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + * `reason` (`str`) - Why the action was taken. + * `regarding` (`dict`) - The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `related` (`dict`) - Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + * `reporting_controller` (`str`) - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + * `reporting_instance` (`str`) - ID of the controller instance, e.g. `kubelet-xyzf`. + * `series` (`dict`) - Data about the Event series this event represents or nil if it's a singleton Event. + * `count` (`float`) - Number of occurrences in this series up to the last heartbeat time + * `last_observed_time` (`str`) - Time when last Event from the series was seen before last heartbeat. + * `state` (`str`) - Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18 + + * `type` (`str`) - Type of this event (Normal, Warning), new types could be added in the future. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + EventList is a list of Event objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `action` (`pulumi.Input[str]`) - What action was taken/failed regarding to the regarding object. + * `api_version` (`pulumi.Input[str]`) - 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 + * `deprecated_count` (`pulumi.Input[float]`) - Deprecated field assuring backward compatibility with core.v1 Event type + * `deprecated_first_timestamp` (`pulumi.Input[str]`) - Deprecated field assuring backward compatibility with core.v1 Event type + * `deprecated_last_timestamp` (`pulumi.Input[str]`) - Deprecated field assuring backward compatibility with core.v1 Event type + * `deprecated_source` (`pulumi.Input[dict]`) - Deprecated field assuring backward compatibility with core.v1 Event type + * `component` (`pulumi.Input[str]`) - Component from which the event is generated. + * `host` (`pulumi.Input[str]`) - Node name on which the event is generated. + + * `event_time` (`pulumi.Input[str]`) - Required. Time when this Event was first observed. + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `note` (`pulumi.Input[str]`) - Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + * `reason` (`pulumi.Input[str]`) - Why the action was taken. + * `regarding` (`pulumi.Input[dict]`) - The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `related` (`pulumi.Input[dict]`) - Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + * `reporting_controller` (`pulumi.Input[str]`) - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + * `reporting_instance` (`pulumi.Input[str]`) - ID of the controller instance, e.g. `kubelet-xyzf`. + * `series` (`pulumi.Input[dict]`) - Data about the Event series this event represents or nil if it's a singleton Event. + * `count` (`pulumi.Input[float]`) - Number of occurrences in this series up to the last heartbeat time + * `last_observed_time` (`pulumi.Input[str]`) - Time when last Event from the series was seen before last heartbeat. + * `state` (`pulumi.Input[str]`) - Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18 + + * `type` (`pulumi.Input[str]`) - Type of this event (Normal, Warning), new types could be added in the future. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(EventList, __self__).__init__( + 'kubernetes:events.k8s.io/v1beta1:EventList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing EventList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return EventList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/__init__.py b/sdk/python/pulumi_kubernetes/extensions/__init__.py old mode 100755 new mode 100644 index 3569e9ec84..a311e81ad2 --- a/sdk/python/pulumi_kubernetes/extensions/__init__.py +++ b/sdk/python/pulumi_kubernetes/extensions/__init__.py @@ -1,8 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1beta1", -] +__all__ = ['v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py deleted file mode 100755 index 8462041b24..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +++ /dev/null @@ -1,126 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class DaemonSet(pulumi.CustomResource): - """ - DEPRECATED - extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported - by Kubernetes v1.16+ clusters. - - DaemonSet represents the configuration of a daemon set. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - The desired behavior of this daemon set. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - The current status of this daemon set. This data may be out of date by some window of time. - Populated by the system. Read-only. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a DaemonSet resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'extensions/v1beta1' - __props__['kind'] = 'DaemonSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1:DaemonSet"), - pulumi.Alias(type_="kubernetes:apps/v1beta2:DaemonSet"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(DaemonSet, self).__init__( - "kubernetes:extensions/v1beta1:DaemonSet", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `DaemonSet` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return DaemonSet(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py deleted file mode 100755 index 1fa811ce75..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class DaemonSetList(pulumi.CustomResource): - """ - DaemonSetList is a collection of daemon sets. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - A list of daemon sets. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a DaemonSetList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: A list of daemon sets. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'extensions/v1beta1' - __props__['kind'] = 'DaemonSetList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(DaemonSetList, self).__init__( - "kubernetes:extensions/v1beta1:DaemonSetList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `DaemonSetList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return DaemonSetList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py deleted file mode 100755 index 07c6301650..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py +++ /dev/null @@ -1,143 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Deployment(pulumi.CustomResource): - """ - DEPRECATED - extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported - by Kubernetes v1.16+ clusters. - - Deployment enables declarative updates for Pods and ReplicaSets. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The Deployment has begun to be updated by the Deployment controller. If the current - generation of the Deployment is > 1, then this means that the current generation must - be different from the generation reported by the last outputs. - 2. There exists a ReplicaSet whose revision is equal to the current revision of the - Deployment. - 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' - member is set to 'True'. - 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type - 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is - 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, - because it doesn't do a rollout (i.e., it simply creates the Deployment and - corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. - - If the Deployment has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata. - """ - - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of the Deployment. - """ - - status: pulumi.Output[dict] - """ - Most recently observed status of the Deployment. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a Deployment resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object metadata. - :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'extensions/v1beta1' - __props__['kind'] = 'Deployment' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1:Deployment"), - pulumi.Alias(type_="kubernetes:apps/v1beta1:Deployment"), - pulumi.Alias(type_="kubernetes:apps/v1beta2:Deployment"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(Deployment, self).__init__( - "kubernetes:extensions/v1beta1:Deployment", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Deployment` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Deployment(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py deleted file mode 100755 index 3f92682dd1..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class DeploymentList(pulumi.CustomResource): - """ - DeploymentList is a list of Deployments. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of Deployments. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a DeploymentList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of Deployments. - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'extensions/v1beta1' - __props__['kind'] = 'DeploymentList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(DeploymentList, self).__init__( - "kubernetes:extensions/v1beta1:DeploymentList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `DeploymentList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return DeploymentList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py deleted file mode 100755 index c80733e667..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py +++ /dev/null @@ -1,140 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Ingress(pulumi.CustomResource): - """ - DEPRECATED - extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and - not supported by Kubernetes v1.20+ clusters. - - Ingress is a collection of rules that allow inbound connections to reach the endpoints defined - by a backend. An Ingress can be configured to give services externally-reachable urls, load - balance traffic, terminate SSL, offer name based virtual hosting etc. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. Ingress object exists. - 2. Endpoint objects exist with matching names for each Ingress path (except when Service - type is ExternalName). - 3. Ingress entry exists for '.status.loadBalancer.ingress'. - - If the Ingress has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec is the desired state of the Ingress. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Status is the current state of the Ingress. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a Ingress resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec is the desired state of the Ingress. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'extensions/v1beta1' - __props__['kind'] = 'Ingress' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:networking.k8s.io/v1beta1:Ingress"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(Ingress, self).__init__( - "kubernetes:extensions/v1beta1:Ingress", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Ingress` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Ingress(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py deleted file mode 100755 index fba92a8d6e..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class IngressList(pulumi.CustomResource): - """ - IngressList is a collection of Ingress. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of Ingress. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a IngressList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of Ingress. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'extensions/v1beta1' - __props__['kind'] = 'IngressList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(IngressList, self).__init__( - "kubernetes:extensions/v1beta1:IngressList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `IngressList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return IngressList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py deleted file mode 100755 index 3db9cebee4..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +++ /dev/null @@ -1,115 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class NetworkPolicy(pulumi.CustomResource): - """ - DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by - networking/v1/NetworkPolicy. NetworkPolicy describes what network traffic is allowed for a set - of Pods - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the desired behavior for this NetworkPolicy. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a NetworkPolicy resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired behavior for this NetworkPolicy. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'extensions/v1beta1' - __props__['kind'] = 'NetworkPolicy' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:networking.k8s.io/v1:NetworkPolicy"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(NetworkPolicy, self).__init__( - "kubernetes:extensions/v1beta1:NetworkPolicy", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `NetworkPolicy` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return NetworkPolicy(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py deleted file mode 100755 index 67c65bf551..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +++ /dev/null @@ -1,111 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class NetworkPolicyList(pulumi.CustomResource): - """ - DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by - networking/v1/NetworkPolicyList. Network Policy List is a list of NetworkPolicy objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a NetworkPolicyList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of schema objects. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'extensions/v1beta1' - __props__['kind'] = 'NetworkPolicyList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(NetworkPolicyList, self).__init__( - "kubernetes:extensions/v1beta1:NetworkPolicyList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `NetworkPolicyList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return NetworkPolicyList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py deleted file mode 100755 index c06aa71bfa..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +++ /dev/null @@ -1,115 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PodSecurityPolicy(pulumi.CustomResource): - """ - PodSecurityPolicy governs the ability to make requests that affect the Security Context that - will be applied to a pod and container. Deprecated: use PodSecurityPolicy from policy API Group - instead. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - spec defines the policy enforced. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a PodSecurityPolicy resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: spec defines the policy enforced. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'extensions/v1beta1' - __props__['kind'] = 'PodSecurityPolicy' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:policy/v1beta1:PodSecurityPolicy"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(PodSecurityPolicy, self).__init__( - "kubernetes:extensions/v1beta1:PodSecurityPolicy", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PodSecurityPolicy` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PodSecurityPolicy(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py deleted file mode 100755 index 7de7344509..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +++ /dev/null @@ -1,111 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PodSecurityPolicyList(pulumi.CustomResource): - """ - PodSecurityPolicyList is a list of PodSecurityPolicy objects. Deprecated: use - PodSecurityPolicyList from policy API Group instead. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is a list of schema objects. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a PodSecurityPolicyList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is a list of schema objects. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'extensions/v1beta1' - __props__['kind'] = 'PodSecurityPolicyList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PodSecurityPolicyList, self).__init__( - "kubernetes:extensions/v1beta1:PodSecurityPolicyList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PodSecurityPolicyList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PodSecurityPolicyList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py deleted file mode 100755 index d421fe318a..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +++ /dev/null @@ -1,128 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ReplicaSet(pulumi.CustomResource): - """ - DEPRECATED - extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported - by Kubernetes v1.16+ clusters. - - ReplicaSet ensures that a specified number of pod replicas are running at any given time. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that - the ReplicaSet manages. Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec defines the specification of the desired behavior of the ReplicaSet. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Status is the most recently observed status of the ReplicaSet. This data may be out of date by - some window of time. Populated by the system. Read-only. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a ReplicaSet resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the - Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'extensions/v1beta1' - __props__['kind'] = 'ReplicaSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:apps/v1:ReplicaSet"), - pulumi.Alias(type_="kubernetes:apps/v1beta2:ReplicaSet"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ReplicaSet, self).__init__( - "kubernetes:extensions/v1beta1:ReplicaSet", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ReplicaSet` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ReplicaSet(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py deleted file mode 100755 index f8ebd79c4a..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +++ /dev/null @@ -1,112 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ReplicaSetList(pulumi.CustomResource): - """ - ReplicaSetList is a collection of ReplicaSets. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - List of ReplicaSets. More info: - https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ReplicaSetList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: List of ReplicaSets. More info: - https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'extensions/v1beta1' - __props__['kind'] = 'ReplicaSetList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ReplicaSetList, self).__init__( - "kubernetes:extensions/v1beta1:ReplicaSetList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ReplicaSetList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ReplicaSetList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py old mode 100755 new mode 100644 index d299bdf55f..87e0679ea8 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py @@ -1,17 +1,17 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .DaemonSet import (DaemonSet) -from .DaemonSetList import (DaemonSetList) -from .Deployment import (Deployment) -from .DeploymentList import (DeploymentList) -from .Ingress import (Ingress) -from .IngressList import (IngressList) -from .NetworkPolicy import (NetworkPolicy) -from .NetworkPolicyList import (NetworkPolicyList) -from .PodSecurityPolicy import (PodSecurityPolicy) -from .PodSecurityPolicyList import (PodSecurityPolicyList) -from .ReplicaSet import (ReplicaSet) -from .ReplicaSetList import (ReplicaSetList) +from .daemon_set import * +from .daemon_set_list import * +from .deployment import * +from .deployment_list import * +from .ingress import * +from .ingress_list import * +from .network_policy import * +from .network_policy_list import * +from .pod_security_policy import * +from .pod_security_policy_list import * +from .replica_set import * +from .replica_set_list import * diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py new file mode 100644 index 0000000000..6a7e04567a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py @@ -0,0 +1,1208 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + +class DaemonSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * `revision_history_limit` (`float`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`dict`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `template_generation` (`float`) - DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. + * `update_strategy` (`dict`) - An update strategy to replace existing DaemonSet pods with new pods. + * `rolling_update` (`dict`) - Rolling update config params. Present only if type = "RollingUpdate". + * `max_unavailable` (`dict`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + * `type` (`str`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is OnDelete. + """ + status: pulumi.Output[dict] + """ + The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `collision_count` (`float`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`list`) - Represents the latest available observations of a DaemonSet's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of DaemonSet condition. + + * `current_number_scheduled` (`float`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `desired_number_scheduled` (`float`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_available` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `number_misscheduled` (`float`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_ready` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + * `number_unavailable` (`float`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `observed_generation` (`float`) - The most recent generation observed by the daemon set controller. + * `updated_number_scheduled` (`float`) - The total number of nodes that are running updated daemon pod + """ + warnings.warn("extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + DaemonSet represents the configuration of a daemon set. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `min_ready_seconds` (`pulumi.Input[float]`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`pulumi.Input[dict]`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `template_generation` (`pulumi.Input[float]`) - DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. + * `update_strategy` (`pulumi.Input[dict]`) - An update strategy to replace existing DaemonSet pods with new pods. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if type = "RollingUpdate". + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + * `type` (`pulumi.Input[str]`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is OnDelete. + """ + pulumi.log.warn("DaemonSet is deprecated: extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:DaemonSet"), pulumi.Alias(type_="kubernetes:apps/v1beta2:DaemonSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(DaemonSet, __self__).__init__( + 'kubernetes:extensions/v1beta1:DaemonSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DaemonSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DaemonSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py new file mode 100644 index 0000000000..3b6aca02ca --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py @@ -0,0 +1,1195 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DaemonSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + A list of daemon sets. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * `revision_history_limit` (`float`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`dict`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `template_generation` (`float`) - DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. + * `update_strategy` (`dict`) - An update strategy to replace existing DaemonSet pods with new pods. + * `rolling_update` (`dict`) - Rolling update config params. Present only if type = "RollingUpdate". + * `max_unavailable` (`dict`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + * `type` (`str`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is OnDelete. + + * `status` (`dict`) - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `collision_count` (`float`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`list`) - Represents the latest available observations of a DaemonSet's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of DaemonSet condition. + + * `current_number_scheduled` (`float`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `desired_number_scheduled` (`float`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_available` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `number_misscheduled` (`float`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_ready` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + * `number_unavailable` (`float`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `observed_generation` (`float`) - The most recent generation observed by the daemon set controller. + * `updated_number_scheduled` (`float`) - The total number of nodes that are running updated daemon pod + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DaemonSetList is a collection of daemon sets. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: A list of daemon sets. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`pulumi.Input[float]`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. + * `selector` (`pulumi.Input[dict]`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `template_generation` (`pulumi.Input[float]`) - DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. + * `update_strategy` (`pulumi.Input[dict]`) - An update strategy to replace existing DaemonSet pods with new pods. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if type = "RollingUpdate". + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + + * `type` (`pulumi.Input[str]`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is OnDelete. + + * `status` (`pulumi.Input[dict]`) - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a DaemonSet's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of DaemonSet condition. + + * `current_number_scheduled` (`pulumi.Input[float]`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `desired_number_scheduled` (`pulumi.Input[float]`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_available` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `number_misscheduled` (`pulumi.Input[float]`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ + * `number_ready` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. + * `number_unavailable` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) + * `observed_generation` (`pulumi.Input[float]`) - The most recent generation observed by the daemon set controller. + * `updated_number_scheduled` (`pulumi.Input[float]`) - The total number of nodes that are running updated daemon pod + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(DaemonSetList, __self__).__init__( + 'kubernetes:extensions/v1beta1:DaemonSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DaemonSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DaemonSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py new file mode 100644 index 0000000000..2dbe0d9c76 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py @@ -0,0 +1,1241 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + +class Deployment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of the Deployment. + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`bool`) - Indicates that the deployment is paused and will not be processed by the deployment controller. + * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means "no deadline". + * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means "retaining all old RelicaSets". + * `rollback_to` (`dict`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + * `revision` (`float`) - The revision to rollback to. If set to 0, rollback to the last revision. + + * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`dict`) - Template describes the pods that will be created. + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the Deployment. + * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `lastUpdateTime` (`str`) - The last time this condition was updated. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of deployment condition. + + * `observed_generation` (`float`) - The generation observed by the deployment controller. + * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. + * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """ + warnings.warn("extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Deployment enables declarative updates for Pods and ReplicaSets. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Deployment has begun to be updated by the Deployment controller. If the current + generation of the Deployment is > 1, then this means that the current generation must + be different from the generation reported by the last outputs. + 2. There exists a ReplicaSet whose revision is equal to the current revision of the + Deployment. + 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' + member is set to 'True'. + 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type + 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is + 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, + because it doesn't do a rollout (i.e., it simply creates the Deployment and + corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. + + If the Deployment has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. + :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused and will not be processed by the deployment controller. + * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means "no deadline". + * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means "retaining all old RelicaSets". + * `rollback_to` (`pulumi.Input[dict]`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + * `revision` (`pulumi.Input[float]`) - The revision to rollback to. If set to 0, rollback to the last revision. + + * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + """ + pulumi.log.warn("Deployment is deprecated: extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta2:Deployment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Deployment, __self__).__init__( + 'kubernetes:extensions/v1beta1:Deployment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Deployment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Deployment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py new file mode 100644 index 0000000000..3afc51b90a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py @@ -0,0 +1,1205 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DeploymentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Deployments. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the Deployment. + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`bool`) - Indicates that the deployment is paused and will not be processed by the deployment controller. + * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means "no deadline". + * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means "retaining all old RelicaSets". + * `rollback_to` (`dict`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + * `revision` (`float`) - The revision to rollback to. If set to 0, rollback to the last revision. + + * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`dict`) - Template describes the pods that will be created. + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `status` (`dict`) - Most recently observed status of the Deployment. + * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. + * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. + * `lastUpdateTime` (`str`) - The last time this condition was updated. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of deployment condition. + + * `observed_generation` (`float`) - The generation observed by the deployment controller. + * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. + * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DeploymentList is a list of Deployments. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Deployments. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the Deployment. + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused and will not be processed by the deployment controller. + * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means "no deadline". + * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. + * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means "retaining all old RelicaSets". + * `rollback_to` (`pulumi.Input[dict]`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + * `revision` (`pulumi.Input[float]`) - The revision to rollback to. If set to 0, rollback to the last revision. + + * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. + * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + + * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `status` (`pulumi.Input[dict]`) - Most recently observed status of the Deployment. + * `available_replicas` (`pulumi.Input[float]`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. + * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a deployment's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. + * `lastUpdateTime` (`pulumi.Input[str]`) - The last time this condition was updated. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of deployment condition. + + * `observed_generation` (`pulumi.Input[float]`) - The generation observed by the deployment controller. + * `ready_replicas` (`pulumi.Input[float]`) - Total number of ready pods targeted by this deployment. + * `replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). + * `unavailable_replicas` (`pulumi.Input[float]`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. + * `updated_replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(DeploymentList, __self__).__init__( + 'kubernetes:extensions/v1beta1:DeploymentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DeploymentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DeploymentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py new file mode 100644 index 0000000000..b1eaf9042e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py @@ -0,0 +1,289 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.", DeprecationWarning) + +class Ingress(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `backend` (`dict`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + * `resource` (`dict`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `service_name` (`str`) - Specifies the name of the referenced service. + * `service_port` (`dict`) - Specifies the port of the referenced service. + + * `ingress_class_name` (`str`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. + * `rules` (`list`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + * `host` (`str`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to + the IP in the Spec of the parent Ingress. + 2. The `:` delimiter is not respected because ports are not allowed. + Currently the port of an Ingress is implicitly :80 for http and + :443 for https. + Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + + Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. + * `http` (`dict`) + * `paths` (`list`) - A collection of paths that map requests to backends. + * `backend` (`dict`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. + * `path` (`str`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. + * `pathType` (`str`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is + done on a path element by element basis. A path element refers is the + list of labels in the path split by the '/' separator. A request is a + match for path p if every p is an element-wise prefix of p of the + request path. Note that if the last element of the path is a substring + of the last element in request path, it is not a match (e.g. /foo/bar + matches /foo/bar/baz, but does not match /foo/barbaz). + * ImplementationSpecific: Interpretation of the Path matching is up to + the IngressClass. Implementations can treat this as a separate PathType + or treat it identically to Prefix or Exact path types. + Implementations are required to support all path types. Defaults to ImplementationSpecific. + + * `tls` (`list`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + * `hosts` (`list`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + * `secret_name` (`str`) - SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + """ + status: pulumi.Output[dict] + """ + Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `load_balancer` (`dict`) - LoadBalancer contains the current status of the load-balancer. + * `ingress` (`list`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + * `hostname` (`str`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + * `ip` (`str`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + """ + warnings.warn("extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. Ingress object exists. + 2. Endpoint objects exist with matching names for each Ingress path (except when Service + type is ExternalName). + 3. Ingress entry exists for '.status.loadBalancer.ingress'. + + If the Ingress has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `backend` (`pulumi.Input[dict]`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + * `resource` (`pulumi.Input[dict]`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `service_name` (`pulumi.Input[str]`) - Specifies the name of the referenced service. + * `service_port` (`pulumi.Input[dict]`) - Specifies the port of the referenced service. + + * `ingress_class_name` (`pulumi.Input[str]`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. + * `rules` (`pulumi.Input[list]`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + * `host` (`pulumi.Input[str]`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to + the IP in the Spec of the parent Ingress. + 2. The `:` delimiter is not respected because ports are not allowed. + Currently the port of an Ingress is implicitly :80 for http and + :443 for https. + Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + + Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. + * `http` (`pulumi.Input[dict]`) + * `paths` (`pulumi.Input[list]`) - A collection of paths that map requests to backends. + * `backend` (`pulumi.Input[dict]`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. + * `path` (`pulumi.Input[str]`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. + * `pathType` (`pulumi.Input[str]`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is + done on a path element by element basis. A path element refers is the + list of labels in the path split by the '/' separator. A request is a + match for path p if every p is an element-wise prefix of p of the + request path. Note that if the last element of the path is a substring + of the last element in request path, it is not a match (e.g. /foo/bar + matches /foo/bar/baz, but does not match /foo/barbaz). + * ImplementationSpecific: Interpretation of the Path matching is up to + the IngressClass. Implementations can treat this as a separate PathType + or treat it identically to Prefix or Exact path types. + Implementations are required to support all path types. Defaults to ImplementationSpecific. + + * `tls` (`pulumi.Input[list]`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + * `hosts` (`pulumi.Input[list]`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + * `secret_name` (`pulumi.Input[str]`) - SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + """ + pulumi.log.warn("Ingress is deprecated: extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:networking.k8s.io/v1beta1:Ingress")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Ingress, __self__).__init__( + 'kubernetes:extensions/v1beta1:Ingress', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Ingress resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Ingress(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py new file mode 100644 index 0000000000..573c0e922e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py @@ -0,0 +1,297 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class IngressList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Ingress. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `backend` (`dict`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + * `resource` (`dict`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `service_name` (`str`) - Specifies the name of the referenced service. + * `service_port` (`dict`) - Specifies the port of the referenced service. + + * `ingress_class_name` (`str`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. + * `rules` (`list`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + * `host` (`str`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to + the IP in the Spec of the parent Ingress. + 2. The `:` delimiter is not respected because ports are not allowed. + Currently the port of an Ingress is implicitly :80 for http and + :443 for https. + Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + + Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. + * `http` (`dict`) + * `paths` (`list`) - A collection of paths that map requests to backends. + * `backend` (`dict`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. + * `path` (`str`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. + * `pathType` (`str`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is + done on a path element by element basis. A path element refers is the + list of labels in the path split by the '/' separator. A request is a + match for path p if every p is an element-wise prefix of p of the + request path. Note that if the last element of the path is a substring + of the last element in request path, it is not a match (e.g. /foo/bar + matches /foo/bar/baz, but does not match /foo/barbaz). + * ImplementationSpecific: Interpretation of the Path matching is up to + the IngressClass. Implementations can treat this as a separate PathType + or treat it identically to Prefix or Exact path types. + Implementations are required to support all path types. Defaults to ImplementationSpecific. + + * `tls` (`list`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + * `hosts` (`list`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + * `secret_name` (`str`) - SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + + * `status` (`dict`) - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `load_balancer` (`dict`) - LoadBalancer contains the current status of the load-balancer. + * `ingress` (`list`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + * `hostname` (`str`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + * `ip` (`str`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + IngressList is a collection of Ingress. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Ingress. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `backend` (`pulumi.Input[dict]`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + * `resource` (`pulumi.Input[dict]`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `service_name` (`pulumi.Input[str]`) - Specifies the name of the referenced service. + * `service_port` (`pulumi.Input[dict]`) - Specifies the port of the referenced service. + + * `ingress_class_name` (`pulumi.Input[str]`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. + * `rules` (`pulumi.Input[list]`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + * `host` (`pulumi.Input[str]`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to + the IP in the Spec of the parent Ingress. + 2. The `:` delimiter is not respected because ports are not allowed. + Currently the port of an Ingress is implicitly :80 for http and + :443 for https. + Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + + Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. + * `http` (`pulumi.Input[dict]`) + * `paths` (`pulumi.Input[list]`) - A collection of paths that map requests to backends. + * `backend` (`pulumi.Input[dict]`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. + * `path` (`pulumi.Input[str]`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. + * `pathType` (`pulumi.Input[str]`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is + done on a path element by element basis. A path element refers is the + list of labels in the path split by the '/' separator. A request is a + match for path p if every p is an element-wise prefix of p of the + request path. Note that if the last element of the path is a substring + of the last element in request path, it is not a match (e.g. /foo/bar + matches /foo/bar/baz, but does not match /foo/barbaz). + * ImplementationSpecific: Interpretation of the Path matching is up to + the IngressClass. Implementations can treat this as a separate PathType + or treat it identically to Prefix or Exact path types. + Implementations are required to support all path types. Defaults to ImplementationSpecific. + + * `tls` (`pulumi.Input[list]`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + * `hosts` (`pulumi.Input[list]`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + * `secret_name` (`pulumi.Input[str]`) - SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + + * `status` (`pulumi.Input[dict]`) - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `load_balancer` (`pulumi.Input[dict]`) - LoadBalancer contains the current status of the load-balancer. + * `ingress` (`pulumi.Input[list]`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + * `hostname` (`pulumi.Input[str]`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + * `ip` (`pulumi.Input[str]`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(IngressList, __self__).__init__( + 'kubernetes:extensions/v1beta1:IngressList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing IngressList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return IngressList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py new file mode 100644 index 0000000000..25272769bd --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py @@ -0,0 +1,247 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class NetworkPolicy(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior for this NetworkPolicy. + * `egress` (`list`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + * `ports` (`list`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * `port` (`dict`) - If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. + * `protocol` (`str`) - Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + + * `to` (`list`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + * `ipBlock` (`dict`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + * `cidr` (`str`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" + * `except` (`list`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range + + * `namespaceSelector` (`dict`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. + + If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `pod_selector` (`dict`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. + + If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + + * `ingress` (`list`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). + * `from` (`list`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. + * `ports` (`list`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + + * `pod_selector` (`dict`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + * `policy_types` (`list`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. NetworkPolicy describes what network traffic is allowed for a set of Pods + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired behavior for this NetworkPolicy. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `egress` (`pulumi.Input[list]`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + * `ports` (`pulumi.Input[list]`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * `port` (`pulumi.Input[dict]`) - If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. + * `protocol` (`pulumi.Input[str]`) - Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + + * `to` (`pulumi.Input[list]`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + * `ipBlock` (`pulumi.Input[dict]`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + * `cidr` (`pulumi.Input[str]`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" + * `except` (`pulumi.Input[list]`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range + + * `namespaceSelector` (`pulumi.Input[dict]`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. + + If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `pod_selector` (`pulumi.Input[dict]`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. + + If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + + * `ingress` (`pulumi.Input[list]`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). + * `from` (`pulumi.Input[list]`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. + * `ports` (`pulumi.Input[list]`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + + * `pod_selector` (`pulumi.Input[dict]`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + * `policy_types` (`pulumi.Input[list]`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:networking.k8s.io/v1:NetworkPolicy")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(NetworkPolicy, __self__).__init__( + 'kubernetes:extensions/v1beta1:NetworkPolicy', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing NetworkPolicy resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return NetworkPolicy(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py new file mode 100644 index 0000000000..8d5e6f11cb --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py @@ -0,0 +1,269 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class NetworkPolicyList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior for this NetworkPolicy. + * `egress` (`list`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + * `ports` (`list`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * `port` (`dict`) - If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. + * `protocol` (`str`) - Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + + * `to` (`list`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + * `ipBlock` (`dict`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + * `cidr` (`str`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" + * `except` (`list`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range + + * `namespaceSelector` (`dict`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. + + If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `pod_selector` (`dict`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. + + If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + + * `ingress` (`list`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). + * `from` (`list`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. + * `ports` (`list`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + + * `pod_selector` (`dict`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + * `policy_types` (`list`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList. Network Policy List is a list of NetworkPolicy objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior for this NetworkPolicy. + * `egress` (`pulumi.Input[list]`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + * `ports` (`pulumi.Input[list]`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * `port` (`pulumi.Input[dict]`) - If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. + * `protocol` (`pulumi.Input[str]`) - Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + + * `to` (`pulumi.Input[list]`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + * `ipBlock` (`pulumi.Input[dict]`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + * `cidr` (`pulumi.Input[str]`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" + * `except` (`pulumi.Input[list]`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range + + * `namespaceSelector` (`pulumi.Input[dict]`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. + + If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `pod_selector` (`pulumi.Input[dict]`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. + + If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + + * `ingress` (`pulumi.Input[list]`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). + * `from` (`pulumi.Input[list]`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. + * `ports` (`pulumi.Input[list]`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + + * `pod_selector` (`pulumi.Input[dict]`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + * `policy_types` (`pulumi.Input[list]`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(NetworkPolicyList, __self__).__init__( + 'kubernetes:extensions/v1beta1:NetworkPolicyList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing NetworkPolicyList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return NetworkPolicyList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py new file mode 100644 index 0000000000..b692677dd8 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py @@ -0,0 +1,317 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodSecurityPolicy(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + spec defines the policy enforced. + * `allow_privilege_escalation` (`bool`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. + * `allowed_csi_drivers` (`list`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. + * `name` (`str`) - Name is the registered name of the CSI driver + + * `allowed_capabilities` (`list`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. + * `allowed_flex_volumes` (`list`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. + * `driver` (`str`) - driver is the name of the Flexvolume driver. + + * `allowed_host_paths` (`list`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. + * `pathPrefix` (`str`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. + + Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` + * `read_only` (`bool`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + + * `allowed_proc_mount_types` (`list`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. + * `allowed_unsafe_sysctls` (`list`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. + + Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. + * `default_add_capabilities` (`list`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. + * `default_allow_privilege_escalation` (`bool`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. + * `forbidden_sysctls` (`list`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. + + Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. + * `fs_group` (`dict`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + * `ranges` (`list`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + * `max` (`float`) - max is the end of the range, inclusive. + * `min` (`float`) - min is the start of the range, inclusive. + + * `rule` (`str`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + + * `host_ipc` (`bool`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. + * `host_network` (`bool`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + * `host_pid` (`bool`) - hostPID determines if the policy allows the use of HostPID in the pod spec. + * `host_ports` (`list`) - hostPorts determines which host port ranges are allowed to be exposed. + * `max` (`float`) - max is the end of the range, inclusive. + * `min` (`float`) - min is the start of the range, inclusive. + + * `privileged` (`bool`) - privileged determines if a pod can request to be run as privileged. + * `read_only_root_filesystem` (`bool`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + * `required_drop_capabilities` (`list`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + * `run_as_group` (`dict`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + * `ranges` (`list`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + + * `run_as_user` (`dict`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + * `ranges` (`list`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. + + * `runtime_class` (`dict`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. + * `allowed_runtime_class_names` (`list`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. + * `default_runtime_class_name` (`str`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. + + * `se_linux` (`dict`) - seLinux is the strategy that will dictate the allowable labels that may be set. + * `rule` (`str`) - rule is the strategy that will dictate the allowable labels that may be set. + * `se_linux_options` (`dict`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `supplemental_groups` (`dict`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + * `ranges` (`list`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`str`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + + * `volumes` (`list`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated: use PodSecurityPolicy from policy API Group instead. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: spec defines the policy enforced. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. + * `allowed_csi_drivers` (`pulumi.Input[list]`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. + * `name` (`pulumi.Input[str]`) - Name is the registered name of the CSI driver + + * `allowed_capabilities` (`pulumi.Input[list]`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. + * `allowed_flex_volumes` (`pulumi.Input[list]`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. + * `driver` (`pulumi.Input[str]`) - driver is the name of the Flexvolume driver. + + * `allowed_host_paths` (`pulumi.Input[list]`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. + * `pathPrefix` (`pulumi.Input[str]`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. + + Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` + * `read_only` (`pulumi.Input[bool]`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + + * `allowed_proc_mount_types` (`pulumi.Input[list]`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. + * `allowed_unsafe_sysctls` (`pulumi.Input[list]`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. + + Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. + * `default_add_capabilities` (`pulumi.Input[list]`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. + * `default_allow_privilege_escalation` (`pulumi.Input[bool]`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. + * `forbidden_sysctls` (`pulumi.Input[list]`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. + + Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. + * `fs_group` (`pulumi.Input[dict]`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. + * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. + + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + + * `host_ipc` (`pulumi.Input[bool]`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. + * `host_network` (`pulumi.Input[bool]`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + * `host_pid` (`pulumi.Input[bool]`) - hostPID determines if the policy allows the use of HostPID in the pod spec. + * `host_ports` (`pulumi.Input[list]`) - hostPorts determines which host port ranges are allowed to be exposed. + * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. + * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. + + * `privileged` (`pulumi.Input[bool]`) - privileged determines if a pod can request to be run as privileged. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + * `required_drop_capabilities` (`pulumi.Input[list]`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + * `run_as_group` (`pulumi.Input[dict]`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + + * `run_as_user` (`pulumi.Input[dict]`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. + + * `runtime_class` (`pulumi.Input[dict]`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. + * `allowed_runtime_class_names` (`pulumi.Input[list]`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. + * `default_runtime_class_name` (`pulumi.Input[str]`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. + + * `se_linux` (`pulumi.Input[dict]`) - seLinux is the strategy that will dictate the allowable labels that may be set. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable labels that may be set. + * `se_linux_options` (`pulumi.Input[dict]`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `supplemental_groups` (`pulumi.Input[dict]`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + + * `volumes` (`pulumi.Input[list]`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:policy/v1beta1:PodSecurityPolicy")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(PodSecurityPolicy, __self__).__init__( + 'kubernetes:extensions/v1beta1:PodSecurityPolicy', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodSecurityPolicy resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodSecurityPolicy(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py new file mode 100644 index 0000000000..82a1d99650 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py @@ -0,0 +1,339 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodSecurityPolicyList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is a list of schema objects. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - spec defines the policy enforced. + * `allow_privilege_escalation` (`bool`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. + * `allowed_csi_drivers` (`list`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. + * `name` (`str`) - Name is the registered name of the CSI driver + + * `allowed_capabilities` (`list`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. + * `allowed_flex_volumes` (`list`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. + * `driver` (`str`) - driver is the name of the Flexvolume driver. + + * `allowed_host_paths` (`list`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. + * `pathPrefix` (`str`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. + + Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` + * `read_only` (`bool`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + + * `allowed_proc_mount_types` (`list`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. + * `allowed_unsafe_sysctls` (`list`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. + + Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. + * `default_add_capabilities` (`list`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. + * `default_allow_privilege_escalation` (`bool`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. + * `forbidden_sysctls` (`list`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. + + Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. + * `fs_group` (`dict`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + * `ranges` (`list`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + * `max` (`float`) - max is the end of the range, inclusive. + * `min` (`float`) - min is the start of the range, inclusive. + + * `rule` (`str`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + + * `host_ipc` (`bool`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. + * `host_network` (`bool`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + * `host_pid` (`bool`) - hostPID determines if the policy allows the use of HostPID in the pod spec. + * `host_ports` (`list`) - hostPorts determines which host port ranges are allowed to be exposed. + * `max` (`float`) - max is the end of the range, inclusive. + * `min` (`float`) - min is the start of the range, inclusive. + + * `privileged` (`bool`) - privileged determines if a pod can request to be run as privileged. + * `read_only_root_filesystem` (`bool`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + * `required_drop_capabilities` (`list`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + * `run_as_group` (`dict`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + * `ranges` (`list`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + + * `run_as_user` (`dict`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + * `ranges` (`list`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. + + * `runtime_class` (`dict`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. + * `allowed_runtime_class_names` (`list`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. + * `default_runtime_class_name` (`str`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. + + * `se_linux` (`dict`) - seLinux is the strategy that will dictate the allowable labels that may be set. + * `rule` (`str`) - rule is the strategy that will dictate the allowable labels that may be set. + * `se_linux_options` (`dict`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `supplemental_groups` (`dict`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + * `ranges` (`list`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`str`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + + * `volumes` (`list`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PodSecurityPolicyList is a list of PodSecurityPolicy objects. Deprecated: use PodSecurityPolicyList from policy API Group instead. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - spec defines the policy enforced. + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. + * `allowed_csi_drivers` (`pulumi.Input[list]`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. + * `name` (`pulumi.Input[str]`) - Name is the registered name of the CSI driver + + * `allowed_capabilities` (`pulumi.Input[list]`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. + * `allowed_flex_volumes` (`pulumi.Input[list]`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. + * `driver` (`pulumi.Input[str]`) - driver is the name of the Flexvolume driver. + + * `allowed_host_paths` (`pulumi.Input[list]`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. + * `pathPrefix` (`pulumi.Input[str]`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. + + Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` + * `read_only` (`pulumi.Input[bool]`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + + * `allowed_proc_mount_types` (`pulumi.Input[list]`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. + * `allowed_unsafe_sysctls` (`pulumi.Input[list]`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. + + Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. + * `default_add_capabilities` (`pulumi.Input[list]`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. + * `default_allow_privilege_escalation` (`pulumi.Input[bool]`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. + * `forbidden_sysctls` (`pulumi.Input[list]`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. + + Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. + * `fs_group` (`pulumi.Input[dict]`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. + * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. + + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + + * `host_ipc` (`pulumi.Input[bool]`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. + * `host_network` (`pulumi.Input[bool]`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + * `host_pid` (`pulumi.Input[bool]`) - hostPID determines if the policy allows the use of HostPID in the pod spec. + * `host_ports` (`pulumi.Input[list]`) - hostPorts determines which host port ranges are allowed to be exposed. + * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. + * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. + + * `privileged` (`pulumi.Input[bool]`) - privileged determines if a pod can request to be run as privileged. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + * `required_drop_capabilities` (`pulumi.Input[list]`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + * `run_as_group` (`pulumi.Input[dict]`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + + * `run_as_user` (`pulumi.Input[dict]`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. + + * `runtime_class` (`pulumi.Input[dict]`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. + * `allowed_runtime_class_names` (`pulumi.Input[list]`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. + * `default_runtime_class_name` (`pulumi.Input[str]`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. + + * `se_linux` (`pulumi.Input[dict]`) - seLinux is the strategy that will dictate the allowable labels that may be set. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable labels that may be set. + * `se_linux_options` (`pulumi.Input[dict]`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `supplemental_groups` (`pulumi.Input[dict]`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + + * `volumes` (`pulumi.Input[list]`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(PodSecurityPolicyList, __self__).__init__( + 'kubernetes:extensions/v1beta1:PodSecurityPolicyList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodSecurityPolicyList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodSecurityPolicyList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py new file mode 100644 index 0000000000..7fde34226a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py @@ -0,0 +1,1190 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + +class ReplicaSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * `selector` (`dict`) - Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + """ + status: pulumi.Output[dict] + """ + Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. + * `conditions` (`list`) - Represents the latest available observations of a replica set's current state. + * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of replica set condition. + + * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replicaset. + * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + * `ready_replicas` (`float`) - The number of ready replicas for this replica set. + * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """ + warnings.warn("extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicaSet ensures that a specified number of pod replicas are running at any given time. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + """ + pulumi.log.warn("ReplicaSet is deprecated: extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:ReplicaSet"), pulumi.Alias(type_="kubernetes:apps/v1beta2:ReplicaSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ReplicaSet, __self__).__init__( + 'kubernetes:extensions/v1beta1:ReplicaSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicaSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicaSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py new file mode 100644 index 0000000000..3468521e21 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py @@ -0,0 +1,1173 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ReplicaSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * `selector` (`dict`) - Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`dict`) - If specified, the pod's scheduling constraints + * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`dict`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. + * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`str`) - The header field name + * `value` (`str`) - The header field value + + * `path` (`str`) - Path to access on the HTTP server. + * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`str`) - What host IP to bind the external port to. + * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`list`) - Added capabilities + * `drop` (`list`) - Removed capabilities + + * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`str`) - Required. + * `value` (`str`) + + * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`list`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. + * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`list`) - Hostnames for the above IP address. + * `ip` (`str`) - IP address of the host file entry. + + * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`str`) - Name of a property to set + * `value` (`str`) - Value of a property to set + + * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`list`) - If specified, the pod's tolerations. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `status` (`dict`) - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. + * `conditions` (`list`) - Represents the latest available observations of a replica set's current state. + * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. + * `message` (`str`) - A human readable message indicating details about the transition. + * `reason` (`str`) - The reason for the condition's last transition. + * `status` (`str`) - Status of the condition, one of True, False, Unknown. + * `type` (`str`) - Type of replica set condition. + + * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replicaset. + * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + * `ready_replicas` (`float`) - The number of ready replicas for this replica set. + * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicaSetList is a collection of ReplicaSets. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) + * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. + * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints + * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + + * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. + * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. + * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" + * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + + * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + + * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. + * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. + * `name` (`pulumi.Input[str]`) - The header field name + * `value` (`pulumi.Input[str]`) - The header field value + + * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. + * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. + + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. + * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + + * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + + * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. + * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. + * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + + * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. + * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. + * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. + * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. + * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". + + * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * `add` (`pulumi.Input[list]`) - Added capabilities + * `drop` (`pulumi.Input[list]`) - Removed capabilities + + * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. + * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. + * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. + * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod + + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. + * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. + * `name` (`pulumi.Input[str]`) - Required. + * `value` (`pulumi.Input[str]`) + + * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. + + * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. + * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. + * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. + * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. + * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. + * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. + * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. + * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. + * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. + * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. + * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false + * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. + * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. + * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. + * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. + * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. + * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. + * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. + + * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. + * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. + * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. + + * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. + * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. + * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. + * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. + * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. + * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. + * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. + * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. + + * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. + * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. + * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: + + 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". + * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. + * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + * `name` (`pulumi.Input[str]`) - Name of a property to set + * `value` (`pulumi.Input[str]`) - Value of a property to set + + * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + + * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. + * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. + * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. + * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. + * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. + * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. + * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. + * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. + * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `status` (`pulumi.Input[dict]`) - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `available_replicas` (`pulumi.Input[float]`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. + * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a replica set's current state. + * `lastTransitionTime` (`pulumi.Input[str]`) - The last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. + * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. + * `type` (`pulumi.Input[str]`) - Type of replica set condition. + + * `fully_labeled_replicas` (`pulumi.Input[float]`) - The number of pods that have labels matching the labels of the pod template of the replicaset. + * `observed_generation` (`pulumi.Input[float]`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. + * `ready_replicas` (`pulumi.Input[float]`) - The number of ready replicas for this replica set. + * `replicas` (`pulumi.Input[float]`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ReplicaSetList, __self__).__init__( + 'kubernetes:extensions/v1beta1:ReplicaSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicaSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicaSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py b/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py old mode 100755 new mode 100644 index 0dad491f98..d688fb9289 --- a/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py @@ -1,8 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1alpha1", -] +__all__ = ['v1alpha1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py deleted file mode 100755 index 9b71b9301f..0000000000 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +++ /dev/null @@ -1,118 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class FlowSchema(pulumi.CustomResource): - """ - FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of - inbound API requests with similar attributes and is identified by a pair of strings: the name of - the FlowSchema and a "flow distinguisher". - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - `metadata` is the standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - `spec` is the specification of the desired behavior of a FlowSchema. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - `status` is the current status of a FlowSchema. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a FlowSchema resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: `spec` is the specification of the desired behavior of a FlowSchema. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' - __props__['kind'] = 'FlowSchema' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(FlowSchema, self).__init__( - "kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchema", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `FlowSchema` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return FlowSchema(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py deleted file mode 100755 index 899bf80a12..0000000000 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class FlowSchemaList(pulumi.CustomResource): - """ - FlowSchemaList is a list of FlowSchema objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - `items` is a list of FlowSchemas. - """ - - metadata: pulumi.Output[dict] - """ - `metadata` is the standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a FlowSchemaList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: `items` is a list of FlowSchemas. - :param pulumi.Input[dict] metadata: `metadata` is the standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' - __props__['kind'] = 'FlowSchemaList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(FlowSchemaList, self).__init__( - "kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchemaList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `FlowSchemaList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return FlowSchemaList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py deleted file mode 100755 index fb31129efa..0000000000 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +++ /dev/null @@ -1,117 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PriorityLevelConfiguration(pulumi.CustomResource): - """ - PriorityLevelConfiguration represents the configuration of a priority level. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - `metadata` is the standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - `spec` is the specification of the desired behavior of a "request-priority". More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - `status` is the current status of a "request-priority". More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a PriorityLevelConfiguration resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: `spec` is the specification of the desired behavior of a "request-priority". More - info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' - __props__['kind'] = 'PriorityLevelConfiguration' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PriorityLevelConfiguration, self).__init__( - "kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfiguration", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PriorityLevelConfiguration` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PriorityLevelConfiguration(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py deleted file mode 100755 index ae388868b6..0000000000 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PriorityLevelConfigurationList(pulumi.CustomResource): - """ - PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - `items` is a list of request-priorities. - """ - - metadata: pulumi.Output[dict] - """ - `metadata` is the standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a PriorityLevelConfigurationList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: `items` is a list of request-priorities. - :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' - __props__['kind'] = 'PriorityLevelConfigurationList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PriorityLevelConfigurationList, self).__init__( - "kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfigurationList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PriorityLevelConfigurationList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PriorityLevelConfigurationList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py old mode 100755 new mode 100644 index 99b093dc89..9215eceb05 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py @@ -1,9 +1,9 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .FlowSchema import (FlowSchema) -from .FlowSchemaList import (FlowSchemaList) -from .PriorityLevelConfiguration import (PriorityLevelConfiguration) -from .PriorityLevelConfigurationList import (PriorityLevelConfigurationList) +from .flow_schema import * +from .flow_schema_list import * +from .priority_level_configuration import * +from .priority_level_configuration_list import * diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py new file mode 100644 index 0000000000..79a416443c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py @@ -0,0 +1,268 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class FlowSchema(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `distinguisher_method` (`dict`) - `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. + * `type` (`str`) - `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. + + * `matching_precedence` (`float`) - `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. + * `priority_level_configuration` (`dict`) - `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. + * `name` (`str`) - `name` is the name of the priority level configuration being referenced Required. + + * `rules` (`list`) - `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. + * `non_resource_rules` (`list`) - `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. + * `nonResourceURLs` (`list`) - `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: + - "/healthz" is legal + - "/hea*" is illegal + - "/hea" is legal but matches nothing + - "/hea/*" also matches nothing + - "/healthz/*" matches all per-component health checks. + "*" matches all non-resource urls. if it is present, it must be the only entry. Required. + * `verbs` (`list`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. + + * `resource_rules` (`list`) - `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. + * `apiGroups` (`list`) - `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. + * `clusterScope` (`bool`) - `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. + * `namespaces` (`list`) - `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. + * `resources` (`list`) - `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. + * `verbs` (`list`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. + + * `subjects` (`list`) - subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. + * `group` (`dict`) + * `name` (`str`) - name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. + + * `kind` (`str`) - Required + * `service_account` (`dict`) + * `name` (`str`) - `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. + * `namespace` (`str`) - `namespace` is the namespace of matching ServiceAccount objects. Required. + + * `user` (`dict`) + * `name` (`str`) - `name` is the username that matches, or "*" to match all usernames. Required. + """ + status: pulumi.Output[dict] + """ + `status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `conditions` (`list`) - `conditions` is a list of the current states of FlowSchema. + * `lastTransitionTime` (`str`) - `lastTransitionTime` is the last time the condition transitioned from one status to another. + * `message` (`str`) - `message` is a human-readable message indicating details about last transition. + * `reason` (`str`) - `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`str`) - `status` is the status of the condition. Can be True, False, Unknown. Required. + * `type` (`str`) - `type` is the type of the condition. Required. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `distinguisher_method` (`pulumi.Input[dict]`) - `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. + * `type` (`pulumi.Input[str]`) - `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. + + * `matching_precedence` (`pulumi.Input[float]`) - `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. + * `priority_level_configuration` (`pulumi.Input[dict]`) - `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. + * `name` (`pulumi.Input[str]`) - `name` is the name of the priority level configuration being referenced Required. + + * `rules` (`pulumi.Input[list]`) - `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. + * `non_resource_rules` (`pulumi.Input[list]`) - `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. + * `nonResourceURLs` (`pulumi.Input[list]`) - `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: + - "/healthz" is legal + - "/hea*" is illegal + - "/hea" is legal but matches nothing + - "/hea/*" also matches nothing + - "/healthz/*" matches all per-component health checks. + "*" matches all non-resource urls. if it is present, it must be the only entry. Required. + * `verbs` (`pulumi.Input[list]`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. + + * `resource_rules` (`pulumi.Input[list]`) - `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. + * `apiGroups` (`pulumi.Input[list]`) - `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. + * `clusterScope` (`pulumi.Input[bool]`) - `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. + * `namespaces` (`pulumi.Input[list]`) - `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. + * `resources` (`pulumi.Input[list]`) - `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. + * `verbs` (`pulumi.Input[list]`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. + + * `subjects` (`pulumi.Input[list]`) - subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. + * `group` (`pulumi.Input[dict]`) + * `name` (`pulumi.Input[str]`) - name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. + + * `kind` (`pulumi.Input[str]`) - Required + * `service_account` (`pulumi.Input[dict]`) + * `name` (`pulumi.Input[str]`) - `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. + * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of matching ServiceAccount objects. Required. + + * `user` (`pulumi.Input[dict]`) + * `name` (`pulumi.Input[str]`) - `name` is the username that matches, or "*" to match all usernames. Required. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(FlowSchema, __self__).__init__( + 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchema', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing FlowSchema resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return FlowSchema(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py new file mode 100644 index 0000000000..b078e5905d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py @@ -0,0 +1,297 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class FlowSchemaList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + `items` is a list of FlowSchemas. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `distinguisher_method` (`dict`) - `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. + * `type` (`str`) - `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. + + * `matching_precedence` (`float`) - `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. + * `priority_level_configuration` (`dict`) - `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. + * `name` (`str`) - `name` is the name of the priority level configuration being referenced Required. + + * `rules` (`list`) - `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. + * `non_resource_rules` (`list`) - `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. + * `nonResourceURLs` (`list`) - `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: + - "/healthz" is legal + - "/hea*" is illegal + - "/hea" is legal but matches nothing + - "/hea/*" also matches nothing + - "/healthz/*" matches all per-component health checks. + "*" matches all non-resource urls. if it is present, it must be the only entry. Required. + * `verbs` (`list`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. + + * `resource_rules` (`list`) - `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. + * `apiGroups` (`list`) - `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. + * `clusterScope` (`bool`) - `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. + * `namespaces` (`list`) - `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. + * `resources` (`list`) - `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. + * `verbs` (`list`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. + + * `subjects` (`list`) - subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. + * `group` (`dict`) + * `name` (`str`) - name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. + + * `kind` (`str`) - Required + * `service_account` (`dict`) + * `name` (`str`) - `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. + * `namespace` (`str`) - `namespace` is the namespace of matching ServiceAccount objects. Required. + + * `user` (`dict`) + * `name` (`str`) - `name` is the username that matches, or "*" to match all usernames. Required. + + * `status` (`dict`) - `status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `conditions` (`list`) - `conditions` is a list of the current states of FlowSchema. + * `lastTransitionTime` (`str`) - `lastTransitionTime` is the last time the condition transitioned from one status to another. + * `message` (`str`) - `message` is a human-readable message indicating details about last transition. + * `reason` (`str`) - `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`str`) - `status` is the status of the condition. Can be True, False, Unknown. Required. + * `type` (`str`) - `type` is the type of the condition. Required. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + FlowSchemaList is a list of FlowSchema objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: `items` is a list of FlowSchemas. + :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 + :param pulumi.Input[dict] metadata: `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `distinguisher_method` (`pulumi.Input[dict]`) - `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. + * `type` (`pulumi.Input[str]`) - `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. + + * `matching_precedence` (`pulumi.Input[float]`) - `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. + * `priority_level_configuration` (`pulumi.Input[dict]`) - `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. + * `name` (`pulumi.Input[str]`) - `name` is the name of the priority level configuration being referenced Required. + + * `rules` (`pulumi.Input[list]`) - `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. + * `non_resource_rules` (`pulumi.Input[list]`) - `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. + * `nonResourceURLs` (`pulumi.Input[list]`) - `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: + - "/healthz" is legal + - "/hea*" is illegal + - "/hea" is legal but matches nothing + - "/hea/*" also matches nothing + - "/healthz/*" matches all per-component health checks. + "*" matches all non-resource urls. if it is present, it must be the only entry. Required. + * `verbs` (`pulumi.Input[list]`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. + + * `resource_rules` (`pulumi.Input[list]`) - `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. + * `apiGroups` (`pulumi.Input[list]`) - `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. + * `clusterScope` (`pulumi.Input[bool]`) - `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. + * `namespaces` (`pulumi.Input[list]`) - `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. + * `resources` (`pulumi.Input[list]`) - `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. + * `verbs` (`pulumi.Input[list]`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. + + * `subjects` (`pulumi.Input[list]`) - subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. + * `group` (`pulumi.Input[dict]`) + * `name` (`pulumi.Input[str]`) - name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. + + * `kind` (`pulumi.Input[str]`) - Required + * `service_account` (`pulumi.Input[dict]`) + * `name` (`pulumi.Input[str]`) - `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. + * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of matching ServiceAccount objects. Required. + + * `user` (`pulumi.Input[dict]`) + * `name` (`pulumi.Input[str]`) - `name` is the username that matches, or "*" to match all usernames. Required. + + * `status` (`pulumi.Input[dict]`) - `status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `conditions` (`pulumi.Input[list]`) - `conditions` is a list of the current states of FlowSchema. + * `lastTransitionTime` (`pulumi.Input[str]`) - `lastTransitionTime` is the last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - `message` is a human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - `status` is the status of the condition. Can be True, False, Unknown. Required. + * `type` (`pulumi.Input[str]`) - `type` is the type of the condition. Required. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(FlowSchemaList, __self__).__init__( + 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchemaList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing FlowSchemaList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return FlowSchemaList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py new file mode 100644 index 0000000000..6aa290ae0b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py @@ -0,0 +1,226 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityLevelConfiguration(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `limited` (`dict`) - `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. + * `assured_concurrency_shares` (`float`) - `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: + + ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) + + bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. + * `limit_response` (`dict`) - `limitResponse` indicates what to do with requests that can not be executed right now + * `queuing` (`dict`) - `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. + * `hand_size` (`float`) - `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. + * `queue_length_limit` (`float`) - `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. + * `queues` (`float`) - `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. + + * `type` (`str`) - `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. + + * `type` (`str`) - `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. + """ + status: pulumi.Output[dict] + """ + `status` is the current status of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `conditions` (`list`) - `conditions` is the current state of "request-priority". + * `lastTransitionTime` (`str`) - `lastTransitionTime` is the last time the condition transitioned from one status to another. + * `message` (`str`) - `message` is a human-readable message indicating details about last transition. + * `reason` (`str`) - `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`str`) - `status` is the status of the condition. Can be True, False, Unknown. Required. + * `type` (`str`) - `type` is the type of the condition. Required. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PriorityLevelConfiguration represents the configuration of a priority level. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `limited` (`pulumi.Input[dict]`) - `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. + * `assured_concurrency_shares` (`pulumi.Input[float]`) - `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: + + ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) + + bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. + * `limit_response` (`pulumi.Input[dict]`) - `limitResponse` indicates what to do with requests that can not be executed right now + * `queuing` (`pulumi.Input[dict]`) - `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. + * `hand_size` (`pulumi.Input[float]`) - `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. + * `queue_length_limit` (`pulumi.Input[float]`) - `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. + * `queues` (`pulumi.Input[float]`) - `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. + + * `type` (`pulumi.Input[str]`) - `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. + + * `type` (`pulumi.Input[str]`) - `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(PriorityLevelConfiguration, __self__).__init__( + 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfiguration', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityLevelConfiguration resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityLevelConfiguration(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py new file mode 100644 index 0000000000..29632f3cce --- /dev/null +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py @@ -0,0 +1,255 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityLevelConfigurationList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + `items` is a list of request-priorities. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `limited` (`dict`) - `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. + * `assured_concurrency_shares` (`float`) - `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: + + ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) + + bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. + * `limit_response` (`dict`) - `limitResponse` indicates what to do with requests that can not be executed right now + * `queuing` (`dict`) - `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. + * `hand_size` (`float`) - `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. + * `queue_length_limit` (`float`) - `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. + * `queues` (`float`) - `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. + + * `type` (`str`) - `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. + + * `type` (`str`) - `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. + + * `status` (`dict`) - `status` is the current status of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `conditions` (`list`) - `conditions` is the current state of "request-priority". + * `lastTransitionTime` (`str`) - `lastTransitionTime` is the last time the condition transitioned from one status to another. + * `message` (`str`) - `message` is a human-readable message indicating details about last transition. + * `reason` (`str`) - `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`str`) - `status` is the status of the condition. Can be True, False, Unknown. Required. + * `type` (`str`) - `type` is the type of the condition. Required. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: `items` is a list of request-priorities. + :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 + :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `limited` (`pulumi.Input[dict]`) - `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. + * `assured_concurrency_shares` (`pulumi.Input[float]`) - `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: + + ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) + + bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. + * `limit_response` (`pulumi.Input[dict]`) - `limitResponse` indicates what to do with requests that can not be executed right now + * `queuing` (`pulumi.Input[dict]`) - `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. + * `hand_size` (`pulumi.Input[float]`) - `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. + * `queue_length_limit` (`pulumi.Input[float]`) - `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. + * `queues` (`pulumi.Input[float]`) - `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. + + * `type` (`pulumi.Input[str]`) - `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. + + * `type` (`pulumi.Input[str]`) - `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. + + * `status` (`pulumi.Input[dict]`) - `status` is the current status of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `conditions` (`pulumi.Input[list]`) - `conditions` is the current state of "request-priority". + * `lastTransitionTime` (`pulumi.Input[str]`) - `lastTransitionTime` is the last time the condition transitioned from one status to another. + * `message` (`pulumi.Input[str]`) - `message` is a human-readable message indicating details about last transition. + * `reason` (`pulumi.Input[str]`) - `reason` is a unique, one-word, CamelCase reason for the condition's last transition. + * `status` (`pulumi.Input[str]`) - `status` is the status of the condition. Can be True, False, Unknown. Required. + * `type` (`pulumi.Input[str]`) - `type` is the type of the condition. Required. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(PriorityLevelConfigurationList, __self__).__init__( + 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfigurationList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityLevelConfigurationList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityLevelConfigurationList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/meta/__init__.py b/sdk/python/pulumi_kubernetes/meta/__init__.py old mode 100755 new mode 100644 index 4b0a1b1483..e2a396b5dc --- a/sdk/python/pulumi_kubernetes/meta/__init__.py +++ b/sdk/python/pulumi_kubernetes/meta/__init__.py @@ -1,8 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", -] +__all__ = ['v1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/meta/v1/Status.py b/sdk/python/pulumi_kubernetes/meta/v1/Status.py deleted file mode 100755 index 52e9fecf3a..0000000000 --- a/sdk/python/pulumi_kubernetes/meta/v1/Status.py +++ /dev/null @@ -1,143 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Status(pulumi.CustomResource): - """ - Status is a return value for calls that don't return other objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - code: pulumi.Output[int] - """ - Suggested HTTP return code for this status, 0 if not set. - """ - - details: pulumi.Output[dict] - """ - Extended data associated with the reason. Each reason may define its own extended details. This - field is optional and the data returned is not guaranteed to conform to any schema except that - defined by the reason type. - """ - - message: pulumi.Output[str] - """ - A human-readable description of the status of this operation. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - - reason: pulumi.Output[str] - """ - A machine-readable description of why this operation is in the "Failure" status. If this value - is empty there is no information available. A Reason clarifies an HTTP status code but does not - override it. - """ - - status: pulumi.Output[str] - """ - Status of the operation. One of: "Success" or "Failure". More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, code=None, details=None, message=None, metadata=None, reason=None, __name__=None, __opts__=None): - """ - Create a Status resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[int] code: Suggested HTTP return code for this status, 0 if not set. - :param pulumi.Input[dict] details: Extended data associated with the reason. Each reason may define its own extended - details. This field is optional and the data returned is not guaranteed to conform to - any schema except that defined by the reason type. - :param pulumi.Input[str] message: A human-readable description of the status of this operation. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param pulumi.Input[str] reason: A machine-readable description of why this operation is in the "Failure" status. If - this value is empty there is no information available. A Reason clarifies an HTTP - status code but does not override it. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'v1' - __props__['kind'] = 'Status' - __props__['code'] = code - __props__['details'] = details - __props__['message'] = message - __props__['metadata'] = metadata - __props__['reason'] = reason - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(Status, self).__init__( - "kubernetes:core/v1:Status", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Status` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Status(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/meta/v1/__init__.py b/sdk/python/pulumi_kubernetes/meta/v1/__init__.py old mode 100755 new mode 100644 index 55f4e88959..019c986f0d --- a/sdk/python/pulumi_kubernetes/meta/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/__init__.py @@ -1,6 +1,6 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .Status import (Status) +from .status import * diff --git a/sdk/python/pulumi_kubernetes/meta/v1/status.py b/sdk/python/pulumi_kubernetes/meta/v1/status.py new file mode 100644 index 0000000000..a7fea89793 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/meta/v1/status.py @@ -0,0 +1,156 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Status(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + code: pulumi.Output[float] + """ + Suggested HTTP return code for this status, 0 if not set. + """ + details: pulumi.Output[dict] + """ + Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + * `causes` (`list`) - The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + * `field` (`str`) - The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. + + Examples: + "name" - the field "name" on the current resource + "items[0].name" - the field "name" on the first array entry in "items" + * `message` (`str`) - A human-readable description of the cause of the error. This field may be presented as-is to a reader. + * `reason` (`str`) - A machine-readable description of the cause of the error. If this value is empty there is no information available. + + * `group` (`str`) - The group attribute of the resource associated with the status StatusReason. + * `kind` (`str`) - The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + * `retry_after_seconds` (`float`) - If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. + * `uid` (`str`) - UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + kind: pulumi.Output[str] + """ + 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 + """ + message: pulumi.Output[str] + """ + A human-readable description of the status of this operation. + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + reason: pulumi.Output[str] + """ + A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + """ + status: pulumi.Output[str] + """ + Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, code=None, details=None, kind=None, message=None, metadata=None, reason=None, __props__=None, __name__=None, __opts__=None): + """ + Status is a return value for calls that don't return other objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[float] code: Suggested HTTP return code for this status, 0 if not set. + :param pulumi.Input[dict] details: Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + :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 + :param pulumi.Input[str] message: A human-readable description of the status of this operation. + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input[str] reason: A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + + The **details** object supports the following: + + * `causes` (`pulumi.Input[list]`) - The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + * `field` (`pulumi.Input[str]`) - The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. + + Examples: + "name" - the field "name" on the current resource + "items[0].name" - the field "name" on the first array entry in "items" + * `message` (`pulumi.Input[str]`) - A human-readable description of the cause of the error. This field may be presented as-is to a reader. + * `reason` (`pulumi.Input[str]`) - A machine-readable description of the cause of the error. If this value is empty there is no information available. + + * `group` (`pulumi.Input[str]`) - The group attribute of the resource associated with the status StatusReason. + * `kind` (`pulumi.Input[str]`) - The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + * `retry_after_seconds` (`pulumi.Input[float]`) - If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. + * `uid` (`pulumi.Input[str]`) - UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['code'] = code + __props__['details'] = details + __props__['kind'] = kind + __props__['message'] = message + __props__['metadata'] = metadata + __props__['reason'] = reason + __props__['status'] = None + super(Status, __self__).__init__( + 'kubernetes:meta/v1:Status', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Status resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Status(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/__init__.py b/sdk/python/pulumi_kubernetes/networking/__init__.py old mode 100755 new mode 100644 index 092556c5fd..4c1e851a21 --- a/sdk/python/pulumi_kubernetes/networking/__init__.py +++ b/sdk/python/pulumi_kubernetes/networking/__init__.py @@ -1,9 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", - "v1beta1", -] +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py deleted file mode 100755 index bcf2768568..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py +++ /dev/null @@ -1,113 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class NetworkPolicy(pulumi.CustomResource): - """ - NetworkPolicy describes what network traffic is allowed for a set of Pods - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the desired behavior for this NetworkPolicy. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a NetworkPolicy resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired behavior for this NetworkPolicy. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'networking.k8s.io/v1' - __props__['kind'] = 'NetworkPolicy' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:extensions/v1beta1:NetworkPolicy"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(NetworkPolicy, self).__init__( - "kubernetes:networking.k8s.io/v1:NetworkPolicy", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `NetworkPolicy` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return NetworkPolicy(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py deleted file mode 100755 index 358aa4ceec..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class NetworkPolicyList(pulumi.CustomResource): - """ - NetworkPolicyList is a list of NetworkPolicy objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a NetworkPolicyList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of schema objects. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'networking.k8s.io/v1' - __props__['kind'] = 'NetworkPolicyList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(NetworkPolicyList, self).__init__( - "kubernetes:networking.k8s.io/v1:NetworkPolicyList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `NetworkPolicyList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return NetworkPolicyList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1/__init__.py b/sdk/python/pulumi_kubernetes/networking/v1/__init__.py old mode 100755 new mode 100644 index c50bfd89bc..2e7b8c0546 --- a/sdk/python/pulumi_kubernetes/networking/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .NetworkPolicy import (NetworkPolicy) -from .NetworkPolicyList import (NetworkPolicyList) +from .network_policy import * +from .network_policy_list import * diff --git a/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py b/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py new file mode 100644 index 0000000000..fa49245ab7 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py @@ -0,0 +1,247 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class NetworkPolicy(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior for this NetworkPolicy. + * `egress` (`list`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + * `ports` (`list`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * `port` (`dict`) - The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. + * `protocol` (`str`) - The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + + * `to` (`list`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + * `ipBlock` (`dict`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + * `cidr` (`str`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" + * `except` (`list`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range + + * `namespaceSelector` (`dict`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. + + If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `pod_selector` (`dict`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. + + If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + + * `ingress` (`list`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) + * `from` (`list`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. + * `ports` (`list`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + + * `pod_selector` (`dict`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + * `policy_types` (`list`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + NetworkPolicy describes what network traffic is allowed for a set of Pods + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired behavior for this NetworkPolicy. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `egress` (`pulumi.Input[list]`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + * `ports` (`pulumi.Input[list]`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * `port` (`pulumi.Input[dict]`) - The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. + * `protocol` (`pulumi.Input[str]`) - The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + + * `to` (`pulumi.Input[list]`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + * `ipBlock` (`pulumi.Input[dict]`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + * `cidr` (`pulumi.Input[str]`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" + * `except` (`pulumi.Input[list]`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range + + * `namespaceSelector` (`pulumi.Input[dict]`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. + + If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `pod_selector` (`pulumi.Input[dict]`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. + + If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + + * `ingress` (`pulumi.Input[list]`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) + * `from` (`pulumi.Input[list]`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. + * `ports` (`pulumi.Input[list]`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + + * `pod_selector` (`pulumi.Input[dict]`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + * `policy_types` (`pulumi.Input[list]`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:extensions/v1beta1:NetworkPolicy")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(NetworkPolicy, __self__).__init__( + 'kubernetes:networking.k8s.io/v1:NetworkPolicy', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing NetworkPolicy resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return NetworkPolicy(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py b/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py new file mode 100644 index 0000000000..5b5120ec47 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py @@ -0,0 +1,269 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class NetworkPolicyList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired behavior for this NetworkPolicy. + * `egress` (`list`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + * `ports` (`list`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * `port` (`dict`) - The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. + * `protocol` (`str`) - The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + + * `to` (`list`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + * `ipBlock` (`dict`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + * `cidr` (`str`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" + * `except` (`list`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range + + * `namespaceSelector` (`dict`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. + + If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `pod_selector` (`dict`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. + + If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + + * `ingress` (`list`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) + * `from` (`list`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. + * `ports` (`list`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + + * `pod_selector` (`dict`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + * `policy_types` (`list`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + NetworkPolicyList is a list of NetworkPolicy objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior for this NetworkPolicy. + * `egress` (`pulumi.Input[list]`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 + * `ports` (`pulumi.Input[list]`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + * `port` (`pulumi.Input[dict]`) - The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. + * `protocol` (`pulumi.Input[str]`) - The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. + + * `to` (`pulumi.Input[list]`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. + * `ipBlock` (`pulumi.Input[dict]`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + * `cidr` (`pulumi.Input[str]`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" + * `except` (`pulumi.Input[list]`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range + + * `namespaceSelector` (`pulumi.Input[dict]`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. + + If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `pod_selector` (`pulumi.Input[dict]`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. + + If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + + * `ingress` (`pulumi.Input[list]`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) + * `from` (`pulumi.Input[list]`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. + * `ports` (`pulumi.Input[list]`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. + + * `pod_selector` (`pulumi.Input[dict]`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + * `policy_types` (`pulumi.Input[list]`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(NetworkPolicyList, __self__).__init__( + 'kubernetes:networking.k8s.io/v1:NetworkPolicyList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing NetworkPolicyList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return NetworkPolicyList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py deleted file mode 100755 index 3f034cc8f5..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py +++ /dev/null @@ -1,137 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Ingress(pulumi.CustomResource): - """ - Ingress is a collection of rules that allow inbound connections to reach the endpoints defined - by a backend. An Ingress can be configured to give services externally-reachable urls, load - balance traffic, terminate SSL, offer name based virtual hosting etc. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. Ingress object exists. - 2. Endpoint objects exist with matching names for each Ingress path (except when Service - type is ExternalName). - 3. Ingress entry exists for '.status.loadBalancer.ingress'. - - If the Ingress has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec is the desired state of the Ingress. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - status: pulumi.Output[dict] - """ - Status is the current state of the Ingress. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a Ingress resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec is the desired state of the Ingress. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'networking.k8s.io/v1beta1' - __props__['kind'] = 'Ingress' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:extensions/v1beta1:Ingress"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(Ingress, self).__init__( - "kubernetes:networking.k8s.io/v1beta1:Ingress", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Ingress` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Ingress(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py deleted file mode 100755 index 7f7a6193d6..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py +++ /dev/null @@ -1,114 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class IngressClass(pulumi.CustomResource): - """ - IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The - `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an - IngressClass should be considered default. When a single IngressClass resource has this - annotation set to true, new Ingress resources without a class specified will be assigned this - default class. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Spec is the desired state of the IngressClass. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a IngressClass resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec is the desired state of the IngressClass. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'networking.k8s.io/v1beta1' - __props__['kind'] = 'IngressClass' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(IngressClass, self).__init__( - "kubernetes:networking.k8s.io/v1beta1:IngressClass", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `IngressClass` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return IngressClass(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py deleted file mode 100755 index 22212ea723..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class IngressClassList(pulumi.CustomResource): - """ - IngressClassList is a collection of IngressClasses. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of IngressClasses. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a IngressClassList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of IngressClasses. - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'networking.k8s.io/v1beta1' - __props__['kind'] = 'IngressClassList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(IngressClassList, self).__init__( - "kubernetes:networking.k8s.io/v1beta1:IngressClassList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `IngressClassList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return IngressClassList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py deleted file mode 100755 index 208cc32c24..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class IngressList(pulumi.CustomResource): - """ - IngressList is a collection of Ingress. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of Ingress. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a IngressList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of Ingress. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'networking.k8s.io/v1beta1' - __props__['kind'] = 'IngressList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(IngressList, self).__init__( - "kubernetes:networking.k8s.io/v1beta1:IngressList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `IngressList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return IngressList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py old mode 100755 new mode 100644 index d44d394822..f81395c0b7 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py @@ -1,9 +1,9 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .Ingress import (Ingress) -from .IngressClass import (IngressClass) -from .IngressClassList import (IngressClassList) -from .IngressList import (IngressList) +from .ingress import * +from .ingress_class import * +from .ingress_class_list import * +from .ingress_list import * diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py new file mode 100644 index 0000000000..4d57457791 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py @@ -0,0 +1,286 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Ingress(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `backend` (`dict`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + * `resource` (`dict`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `service_name` (`str`) - Specifies the name of the referenced service. + * `service_port` (`dict`) - Specifies the port of the referenced service. + + * `ingress_class_name` (`str`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. + * `rules` (`list`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + * `host` (`str`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to + the IP in the Spec of the parent Ingress. + 2. The `:` delimiter is not respected because ports are not allowed. + Currently the port of an Ingress is implicitly :80 for http and + :443 for https. + Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + + Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. + * `http` (`dict`) + * `paths` (`list`) - A collection of paths that map requests to backends. + * `backend` (`dict`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. + * `path` (`str`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. + * `pathType` (`str`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is + done on a path element by element basis. A path element refers is the + list of labels in the path split by the '/' separator. A request is a + match for path p if every p is an element-wise prefix of p of the + request path. Note that if the last element of the path is a substring + of the last element in request path, it is not a match (e.g. /foo/bar + matches /foo/bar/baz, but does not match /foo/barbaz). + * ImplementationSpecific: Interpretation of the Path matching is up to + the IngressClass. Implementations can treat this as a separate PathType + or treat it identically to Prefix or Exact path types. + Implementations are required to support all path types. Defaults to ImplementationSpecific. + + * `tls` (`list`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + * `hosts` (`list`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + * `secret_name` (`str`) - SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + """ + status: pulumi.Output[dict] + """ + Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `load_balancer` (`dict`) - LoadBalancer contains the current status of the load-balancer. + * `ingress` (`list`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + * `hostname` (`str`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + * `ip` (`str`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. Ingress object exists. + 2. Endpoint objects exist with matching names for each Ingress path (except when Service + type is ExternalName). + 3. Ingress entry exists for '.status.loadBalancer.ingress'. + + If the Ingress has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `backend` (`pulumi.Input[dict]`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + * `resource` (`pulumi.Input[dict]`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `service_name` (`pulumi.Input[str]`) - Specifies the name of the referenced service. + * `service_port` (`pulumi.Input[dict]`) - Specifies the port of the referenced service. + + * `ingress_class_name` (`pulumi.Input[str]`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. + * `rules` (`pulumi.Input[list]`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + * `host` (`pulumi.Input[str]`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to + the IP in the Spec of the parent Ingress. + 2. The `:` delimiter is not respected because ports are not allowed. + Currently the port of an Ingress is implicitly :80 for http and + :443 for https. + Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + + Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. + * `http` (`pulumi.Input[dict]`) + * `paths` (`pulumi.Input[list]`) - A collection of paths that map requests to backends. + * `backend` (`pulumi.Input[dict]`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. + * `path` (`pulumi.Input[str]`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. + * `pathType` (`pulumi.Input[str]`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is + done on a path element by element basis. A path element refers is the + list of labels in the path split by the '/' separator. A request is a + match for path p if every p is an element-wise prefix of p of the + request path. Note that if the last element of the path is a substring + of the last element in request path, it is not a match (e.g. /foo/bar + matches /foo/bar/baz, but does not match /foo/barbaz). + * ImplementationSpecific: Interpretation of the Path matching is up to + the IngressClass. Implementations can treat this as a separate PathType + or treat it identically to Prefix or Exact path types. + Implementations are required to support all path types. Defaults to ImplementationSpecific. + + * `tls` (`pulumi.Input[list]`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + * `hosts` (`pulumi.Input[list]`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + * `secret_name` (`pulumi.Input[str]`) - SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:extensions/v1beta1:Ingress")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Ingress, __self__).__init__( + 'kubernetes:networking.k8s.io/v1beta1:Ingress', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Ingress resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Ingress(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py new file mode 100644 index 0000000000..8e7d77a335 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py @@ -0,0 +1,195 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class IngressClass(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `controller` (`str`) - Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. + * `parameters` (`dict`) - Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `controller` (`pulumi.Input[str]`) - Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. + * `parameters` (`pulumi.Input[dict]`) - Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + super(IngressClass, __self__).__init__( + 'kubernetes:networking.k8s.io/v1beta1:IngressClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing IngressClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return IngressClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py new file mode 100644 index 0000000000..638bd41b2b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py @@ -0,0 +1,219 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class IngressClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of IngressClasses. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `controller` (`str`) - Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. + * `parameters` (`dict`) - Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + IngressClassList is a collection of IngressClasses. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of IngressClasses. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `controller` (`pulumi.Input[str]`) - Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. + * `parameters` (`pulumi.Input[dict]`) - Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(IngressClassList, __self__).__init__( + 'kubernetes:networking.k8s.io/v1beta1:IngressClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing IngressClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return IngressClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py new file mode 100644 index 0000000000..95499322ab --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py @@ -0,0 +1,297 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class IngressList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Ingress. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `backend` (`dict`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + * `resource` (`dict`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `service_name` (`str`) - Specifies the name of the referenced service. + * `service_port` (`dict`) - Specifies the port of the referenced service. + + * `ingress_class_name` (`str`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. + * `rules` (`list`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + * `host` (`str`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to + the IP in the Spec of the parent Ingress. + 2. The `:` delimiter is not respected because ports are not allowed. + Currently the port of an Ingress is implicitly :80 for http and + :443 for https. + Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + + Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. + * `http` (`dict`) + * `paths` (`list`) - A collection of paths that map requests to backends. + * `backend` (`dict`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. + * `path` (`str`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. + * `pathType` (`str`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is + done on a path element by element basis. A path element refers is the + list of labels in the path split by the '/' separator. A request is a + match for path p if every p is an element-wise prefix of p of the + request path. Note that if the last element of the path is a substring + of the last element in request path, it is not a match (e.g. /foo/bar + matches /foo/bar/baz, but does not match /foo/barbaz). + * ImplementationSpecific: Interpretation of the Path matching is up to + the IngressClass. Implementations can treat this as a separate PathType + or treat it identically to Prefix or Exact path types. + Implementations are required to support all path types. Defaults to ImplementationSpecific. + + * `tls` (`list`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + * `hosts` (`list`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + * `secret_name` (`str`) - SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + + * `status` (`dict`) - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `load_balancer` (`dict`) - LoadBalancer contains the current status of the load-balancer. + * `ingress` (`list`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + * `hostname` (`str`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + * `ip` (`str`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + IngressList is a collection of Ingress. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Ingress. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `backend` (`pulumi.Input[dict]`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + * `resource` (`pulumi.Input[dict]`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `service_name` (`pulumi.Input[str]`) - Specifies the name of the referenced service. + * `service_port` (`pulumi.Input[dict]`) - Specifies the port of the referenced service. + + * `ingress_class_name` (`pulumi.Input[str]`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. + * `rules` (`pulumi.Input[list]`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. + * `host` (`pulumi.Input[str]`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to + the IP in the Spec of the parent Ingress. + 2. The `:` delimiter is not respected because ports are not allowed. + Currently the port of an Ingress is implicitly :80 for http and + :443 for https. + Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. + + Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. + * `http` (`pulumi.Input[dict]`) + * `paths` (`pulumi.Input[list]`) - A collection of paths that map requests to backends. + * `backend` (`pulumi.Input[dict]`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. + * `path` (`pulumi.Input[str]`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. + * `pathType` (`pulumi.Input[str]`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is + done on a path element by element basis. A path element refers is the + list of labels in the path split by the '/' separator. A request is a + match for path p if every p is an element-wise prefix of p of the + request path. Note that if the last element of the path is a substring + of the last element in request path, it is not a match (e.g. /foo/bar + matches /foo/bar/baz, but does not match /foo/barbaz). + * ImplementationSpecific: Interpretation of the Path matching is up to + the IngressClass. Implementations can treat this as a separate PathType + or treat it identically to Prefix or Exact path types. + Implementations are required to support all path types. Defaults to ImplementationSpecific. + + * `tls` (`pulumi.Input[list]`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. + * `hosts` (`pulumi.Input[list]`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. + * `secret_name` (`pulumi.Input[str]`) - SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. + + * `status` (`pulumi.Input[dict]`) - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `load_balancer` (`pulumi.Input[dict]`) - LoadBalancer contains the current status of the load-balancer. + * `ingress` (`pulumi.Input[list]`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. + * `hostname` (`pulumi.Input[str]`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) + * `ip` (`pulumi.Input[str]`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(IngressList, __self__).__init__( + 'kubernetes:networking.k8s.io/v1beta1:IngressList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing IngressList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return IngressList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/__init__.py b/sdk/python/pulumi_kubernetes/node/__init__.py old mode 100755 new mode 100644 index 59a85436c9..b7445a56eb --- a/sdk/python/pulumi_kubernetes/node/__init__.py +++ b/sdk/python/pulumi_kubernetes/node/__init__.py @@ -1,9 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1alpha1", - "v1beta1", -] +__all__ = ['v1alpha1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py deleted file mode 100755 index c1555e2aa8..0000000000 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +++ /dev/null @@ -1,121 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class RuntimeClass(pulumi.CustomResource): - """ - RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is - used to determine which container runtime is used to run all containers in a pod. RuntimeClasses - are (currently) manually defined by a user or cluster provisioner, and referenced in the - PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running - the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the RuntimeClass More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a RuntimeClass resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Specification of the RuntimeClass More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - :param pulumi.Input[dict] metadata: More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'node.k8s.io/v1alpha1' - __props__['kind'] = 'RuntimeClass' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:node.k8s.io/v1beta1:RuntimeClass"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(RuntimeClass, self).__init__( - "kubernetes:node.k8s.io/v1alpha1:RuntimeClass", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `RuntimeClass` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return RuntimeClass(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py deleted file mode 100755 index d13859628b..0000000000 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class RuntimeClassList(pulumi.CustomResource): - """ - RuntimeClassList is a list of RuntimeClass objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a RuntimeClassList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of schema objects. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'node.k8s.io/v1alpha1' - __props__['kind'] = 'RuntimeClassList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(RuntimeClassList, self).__init__( - "kubernetes:node.k8s.io/v1alpha1:RuntimeClassList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `RuntimeClassList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return RuntimeClassList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py old mode 100755 new mode 100644 index bc5424b43f..8d2beaf7cf --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .RuntimeClass import (RuntimeClass) -from .RuntimeClassList import (RuntimeClassList) +from .runtime_class import * +from .runtime_class_list import * diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py new file mode 100644 index 0000000000..51af95d110 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py @@ -0,0 +1,213 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RuntimeClass(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. + * `pod_fixed` (`dict`) - PodFixed represents the fixed resource overhead associated with running a pod. + + * `runtime_handler` (`str`) - RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable. + * `scheduling` (`dict`) - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + * `node_selector` (`dict`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. + * `tolerations` (`list`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. + * `pod_fixed` (`pulumi.Input[dict]`) - PodFixed represents the fixed resource overhead associated with running a pod. + + * `runtime_handler` (`pulumi.Input[str]`) - RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable. + * `scheduling` (`pulumi.Input[dict]`) - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + * `node_selector` (`pulumi.Input[dict]`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. + * `tolerations` (`pulumi.Input[list]`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:node.k8s.io/v1beta1:RuntimeClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(RuntimeClass, __self__).__init__( + 'kubernetes:node.k8s.io/v1alpha1:RuntimeClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RuntimeClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RuntimeClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py new file mode 100644 index 0000000000..8673a32e08 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py @@ -0,0 +1,233 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RuntimeClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. + * `pod_fixed` (`dict`) - PodFixed represents the fixed resource overhead associated with running a pod. + + * `runtime_handler` (`str`) - RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable. + * `scheduling` (`dict`) - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + * `node_selector` (`dict`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. + * `tolerations` (`list`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RuntimeClassList is a list of RuntimeClass objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. + * `pod_fixed` (`pulumi.Input[dict]`) - PodFixed represents the fixed resource overhead associated with running a pod. + + * `runtime_handler` (`pulumi.Input[str]`) - RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable. + * `scheduling` (`pulumi.Input[dict]`) - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + * `node_selector` (`pulumi.Input[dict]`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. + * `tolerations` (`pulumi.Input[list]`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(RuntimeClassList, __self__).__init__( + 'kubernetes:node.k8s.io/v1alpha1:RuntimeClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RuntimeClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RuntimeClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py deleted file mode 100755 index 9a57c48761..0000000000 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py +++ /dev/null @@ -1,155 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class RuntimeClass(pulumi.CustomResource): - """ - RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is - used to determine which container runtime is used to run all containers in a pod. RuntimeClasses - are (currently) manually defined by a user or cluster provisioner, and referenced in the - PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running - the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - handler: pulumi.Output[str] - """ - Handler specifies the underlying runtime and configuration that the CRI implementation will use - to handle pods of this class. The possible values are specific to the node & CRI configuration. - It is assumed that all handlers are available on every node, and handlers of the same name are - equivalent on every node. For example, a handler called "runc" might specify that the runc OCI - runtime (using native Linux containers) will be used to run the containers in a pod. The Handler - must conform to the DNS Label (RFC 1123) requirements, and is immutable. - """ - - metadata: pulumi.Output[dict] - """ - More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - overhead: pulumi.Output[dict] - """ - Overhead represents the resource overhead associated with running a pod for a given - RuntimeClass. For more details, see - https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level - as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - """ - - scheduling: pulumi.Output[dict] - """ - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass - are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be - supported by all nodes. - """ - - def __init__(self, resource_name, opts=None, handler=None, metadata=None, overhead=None, scheduling=None, __name__=None, __opts__=None): - """ - Create a RuntimeClass resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[str] handler: Handler specifies the underlying runtime and configuration that the CRI - implementation will use to handle pods of this class. The possible values are - specific to the node & CRI configuration. It is assumed that all handlers are - available on every node, and handlers of the same name are equivalent on every node. - For example, a handler called "runc" might specify that the runc OCI runtime (using - native Linux containers) will be used to run the containers in a pod. The Handler - must conform to the DNS Label (RFC 1123) requirements, and is immutable. - :param pulumi.Input[dict] metadata: More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] overhead: Overhead represents the resource overhead associated with running a pod for a given - RuntimeClass. For more details, see - https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is - alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the - PodOverhead feature. - :param pulumi.Input[dict] scheduling: Scheduling holds the scheduling constraints to ensure that pods running with this - RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this - RuntimeClass is assumed to be supported by all nodes. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'node.k8s.io/v1beta1' - __props__['kind'] = 'RuntimeClass' - if handler is None: - raise TypeError('Missing required property handler') - __props__['handler'] = handler - __props__['metadata'] = metadata - __props__['overhead'] = overhead - __props__['scheduling'] = scheduling - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:node.k8s.io/v1alpha1:RuntimeClass"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(RuntimeClass, self).__init__( - "kubernetes:node.k8s.io/v1beta1:RuntimeClass", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `RuntimeClass` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return RuntimeClass(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py deleted file mode 100755 index 1aed37fc7d..0000000000 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class RuntimeClassList(pulumi.CustomResource): - """ - RuntimeClassList is a list of RuntimeClass objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a RuntimeClassList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of schema objects. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'node.k8s.io/v1beta1' - __props__['kind'] = 'RuntimeClassList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(RuntimeClassList, self).__init__( - "kubernetes:node.k8s.io/v1beta1:RuntimeClassList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `RuntimeClassList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return RuntimeClassList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py old mode 100755 new mode 100644 index bc5424b43f..8d2beaf7cf --- a/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .RuntimeClass import (RuntimeClass) -from .RuntimeClassList import (RuntimeClassList) +from .runtime_class import * +from .runtime_class_list import * diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py new file mode 100644 index 0000000000..53bca560b5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py @@ -0,0 +1,220 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RuntimeClass(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + handler: pulumi.Output[str] + """ + Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + overhead: pulumi.Output[dict] + """ + Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. + * `pod_fixed` (`dict`) - PodFixed represents the fixed resource overhead associated with running a pod. + """ + scheduling: pulumi.Output[dict] + """ + Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + * `node_selector` (`dict`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. + * `tolerations` (`list`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, handler=None, kind=None, metadata=None, overhead=None, scheduling=None, __props__=None, __name__=None, __opts__=None): + """ + RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[str] handler: Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] overhead: Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. + :param pulumi.Input[dict] scheduling: Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **overhead** object supports the following: + + * `pod_fixed` (`pulumi.Input[dict]`) - PodFixed represents the fixed resource overhead associated with running a pod. + + The **scheduling** object supports the following: + + * `node_selector` (`pulumi.Input[dict]`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. + * `tolerations` (`pulumi.Input[list]`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if handler is None: + raise TypeError("Missing required property 'handler'") + __props__['handler'] = handler + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['overhead'] = overhead + __props__['scheduling'] = scheduling + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:node.k8s.io/v1alpha1:RuntimeClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(RuntimeClass, __self__).__init__( + 'kubernetes:node.k8s.io/v1beta1:RuntimeClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RuntimeClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RuntimeClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py new file mode 100644 index 0000000000..7cc913fdfa --- /dev/null +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py @@ -0,0 +1,231 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RuntimeClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + * `api_version` (`str`) - 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 + * `handler` (`str`) - Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. + * `kind` (`str`) - 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 + * `metadata` (`dict`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. + * `pod_fixed` (`dict`) - PodFixed represents the fixed resource overhead associated with running a pod. + + * `scheduling` (`dict`) - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + * `node_selector` (`dict`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. + * `tolerations` (`list`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. + * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RuntimeClassList is a list of RuntimeClass objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `handler` (`pulumi.Input[str]`) - Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. + * `pod_fixed` (`pulumi.Input[dict]`) - PodFixed represents the fixed resource overhead associated with running a pod. + + * `scheduling` (`pulumi.Input[dict]`) - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + * `node_selector` (`pulumi.Input[dict]`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. + * `tolerations` (`pulumi.Input[list]`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. + * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(RuntimeClassList, __self__).__init__( + 'kubernetes:node.k8s.io/v1beta1:RuntimeClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RuntimeClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RuntimeClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/__init__.py b/sdk/python/pulumi_kubernetes/policy/__init__.py old mode 100755 new mode 100644 index 3569e9ec84..a311e81ad2 --- a/sdk/python/pulumi_kubernetes/policy/__init__.py +++ b/sdk/python/pulumi_kubernetes/policy/__init__.py @@ -1,8 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1beta1", -] +__all__ = ['v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py deleted file mode 100755 index 4dfdf6d667..0000000000 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PodDisruptionBudget(pulumi.CustomResource): - """ - PodDisruptionBudget is an object to define the max disruption that can be caused to a collection - of pods - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of the PodDisruptionBudget. - """ - - status: pulumi.Output[dict] - """ - Most recently observed status of the PodDisruptionBudget. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a PodDisruptionBudget resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: - :param pulumi.Input[dict] spec: Specification of the desired behavior of the PodDisruptionBudget. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'policy/v1beta1' - __props__['kind'] = 'PodDisruptionBudget' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PodDisruptionBudget, self).__init__( - "kubernetes:policy/v1beta1:PodDisruptionBudget", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PodDisruptionBudget` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PodDisruptionBudget(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py deleted file mode 100755 index 146a95c535..0000000000 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +++ /dev/null @@ -1,104 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PodDisruptionBudgetList(pulumi.CustomResource): - """ - PodDisruptionBudgetList is a collection of PodDisruptionBudgets. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - - - metadata: pulumi.Output[dict] - - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a PodDisruptionBudgetList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: - :param pulumi.Input[dict] metadata: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'policy/v1beta1' - __props__['kind'] = 'PodDisruptionBudgetList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PodDisruptionBudgetList, self).__init__( - "kubernetes:policy/v1beta1:PodDisruptionBudgetList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PodDisruptionBudgetList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PodDisruptionBudgetList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py deleted file mode 100755 index c3e47cf711..0000000000 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +++ /dev/null @@ -1,114 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PodSecurityPolicy(pulumi.CustomResource): - """ - PodSecurityPolicy governs the ability to make requests that affect the Security Context that - will be applied to a pod and container. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - spec defines the policy enforced. - """ - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a PodSecurityPolicy resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: spec defines the policy enforced. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'policy/v1beta1' - __props__['kind'] = 'PodSecurityPolicy' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:extensions/v1beta1:PodSecurityPolicy"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(PodSecurityPolicy, self).__init__( - "kubernetes:policy/v1beta1:PodSecurityPolicy", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PodSecurityPolicy` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PodSecurityPolicy(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py deleted file mode 100755 index 99629d2822..0000000000 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PodSecurityPolicyList(pulumi.CustomResource): - """ - PodSecurityPolicyList is a list of PodSecurityPolicy objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is a list of schema objects. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a PodSecurityPolicyList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is a list of schema objects. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'policy/v1beta1' - __props__['kind'] = 'PodSecurityPolicyList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PodSecurityPolicyList, self).__init__( - "kubernetes:policy/v1beta1:PodSecurityPolicyList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PodSecurityPolicyList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PodSecurityPolicyList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py old mode 100755 new mode 100644 index 70002cb357..4a81a60a30 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py @@ -1,9 +1,9 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .PodDisruptionBudget import (PodDisruptionBudget) -from .PodDisruptionBudgetList import (PodDisruptionBudgetList) -from .PodSecurityPolicy import (PodSecurityPolicy) -from .PodSecurityPolicyList import (PodSecurityPolicyList) +from .pod_disruption_budget import * +from .pod_disruption_budget_list import * +from .pod_security_policy import * +from .pod_security_policy_list import * diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py new file mode 100644 index 0000000000..da9cf8bb90 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py @@ -0,0 +1,164 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodDisruptionBudget(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of the PodDisruptionBudget. + * `max_unavailable` (`dict`) - An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". + * `min_available` (`dict`) - An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". + * `selector` (`dict`) - Label query over pods whose evictions are managed by the disruption budget. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the PodDisruptionBudget. + * `current_healthy` (`float`) - current number of healthy pods + * `desired_healthy` (`float`) - minimum desired number of healthy pods + * `disrupted_pods` (`dict`) - DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. + * `disruptions_allowed` (`float`) - Number of pod disruptions that are currently allowed. + * `expected_pods` (`float`) - total number of pods counted by this disruption budget + * `observed_generation` (`float`) - Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Specification of the desired behavior of the PodDisruptionBudget. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `max_unavailable` (`pulumi.Input[dict]`) - An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". + * `min_available` (`pulumi.Input[dict]`) - An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". + * `selector` (`pulumi.Input[dict]`) - Label query over pods whose evictions are managed by the disruption budget. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(PodDisruptionBudget, __self__).__init__( + 'kubernetes:policy/v1beta1:PodDisruptionBudget', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodDisruptionBudget resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodDisruptionBudget(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py new file mode 100644 index 0000000000..8f670568a5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py @@ -0,0 +1,161 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodDisruptionBudgetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the PodDisruptionBudget. + * `max_unavailable` (`pulumi.Input[dict]`) - An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". + * `min_available` (`pulumi.Input[dict]`) - An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". + * `selector` (`pulumi.Input[dict]`) - Label query over pods whose evictions are managed by the disruption budget. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `status` (`pulumi.Input[dict]`) - Most recently observed status of the PodDisruptionBudget. + * `current_healthy` (`pulumi.Input[float]`) - current number of healthy pods + * `desired_healthy` (`pulumi.Input[float]`) - minimum desired number of healthy pods + * `disrupted_pods` (`pulumi.Input[dict]`) - DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. + * `disruptions_allowed` (`pulumi.Input[float]`) - Number of pod disruptions that are currently allowed. + * `expected_pods` (`pulumi.Input[float]`) - total number of pods counted by this disruption budget + * `observed_generation` (`pulumi.Input[float]`) - Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(PodDisruptionBudgetList, __self__).__init__( + 'kubernetes:policy/v1beta1:PodDisruptionBudgetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodDisruptionBudgetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodDisruptionBudgetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py new file mode 100644 index 0000000000..b15bc40df1 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py @@ -0,0 +1,317 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodSecurityPolicy(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + spec defines the policy enforced. + * `allow_privilege_escalation` (`bool`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. + * `allowed_csi_drivers` (`list`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. + * `name` (`str`) - Name is the registered name of the CSI driver + + * `allowed_capabilities` (`list`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. + * `allowed_flex_volumes` (`list`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. + * `driver` (`str`) - driver is the name of the Flexvolume driver. + + * `allowed_host_paths` (`list`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. + * `pathPrefix` (`str`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. + + Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` + * `read_only` (`bool`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + + * `allowed_proc_mount_types` (`list`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. + * `allowed_unsafe_sysctls` (`list`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. + + Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. + * `default_add_capabilities` (`list`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. + * `default_allow_privilege_escalation` (`bool`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. + * `forbidden_sysctls` (`list`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. + + Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. + * `fs_group` (`dict`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + * `ranges` (`list`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + * `max` (`float`) - max is the end of the range, inclusive. + * `min` (`float`) - min is the start of the range, inclusive. + + * `rule` (`str`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + + * `host_ipc` (`bool`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. + * `host_network` (`bool`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + * `host_pid` (`bool`) - hostPID determines if the policy allows the use of HostPID in the pod spec. + * `host_ports` (`list`) - hostPorts determines which host port ranges are allowed to be exposed. + * `max` (`float`) - max is the end of the range, inclusive. + * `min` (`float`) - min is the start of the range, inclusive. + + * `privileged` (`bool`) - privileged determines if a pod can request to be run as privileged. + * `read_only_root_filesystem` (`bool`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + * `required_drop_capabilities` (`list`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + * `run_as_group` (`dict`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + * `ranges` (`list`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + + * `run_as_user` (`dict`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + * `ranges` (`list`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. + + * `runtime_class` (`dict`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. + * `allowed_runtime_class_names` (`list`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. + * `default_runtime_class_name` (`str`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. + + * `se_linux` (`dict`) - seLinux is the strategy that will dictate the allowable labels that may be set. + * `rule` (`str`) - rule is the strategy that will dictate the allowable labels that may be set. + * `se_linux_options` (`dict`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `supplemental_groups` (`dict`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + * `ranges` (`list`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`str`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + + * `volumes` (`list`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: spec defines the policy enforced. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. + * `allowed_csi_drivers` (`pulumi.Input[list]`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. + * `name` (`pulumi.Input[str]`) - Name is the registered name of the CSI driver + + * `allowed_capabilities` (`pulumi.Input[list]`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. + * `allowed_flex_volumes` (`pulumi.Input[list]`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. + * `driver` (`pulumi.Input[str]`) - driver is the name of the Flexvolume driver. + + * `allowed_host_paths` (`pulumi.Input[list]`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. + * `pathPrefix` (`pulumi.Input[str]`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. + + Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` + * `read_only` (`pulumi.Input[bool]`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + + * `allowed_proc_mount_types` (`pulumi.Input[list]`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. + * `allowed_unsafe_sysctls` (`pulumi.Input[list]`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. + + Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. + * `default_add_capabilities` (`pulumi.Input[list]`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. + * `default_allow_privilege_escalation` (`pulumi.Input[bool]`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. + * `forbidden_sysctls` (`pulumi.Input[list]`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. + + Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. + * `fs_group` (`pulumi.Input[dict]`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. + * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. + + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + + * `host_ipc` (`pulumi.Input[bool]`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. + * `host_network` (`pulumi.Input[bool]`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + * `host_pid` (`pulumi.Input[bool]`) - hostPID determines if the policy allows the use of HostPID in the pod spec. + * `host_ports` (`pulumi.Input[list]`) - hostPorts determines which host port ranges are allowed to be exposed. + * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. + * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. + + * `privileged` (`pulumi.Input[bool]`) - privileged determines if a pod can request to be run as privileged. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + * `required_drop_capabilities` (`pulumi.Input[list]`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + * `run_as_group` (`pulumi.Input[dict]`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + + * `run_as_user` (`pulumi.Input[dict]`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. + + * `runtime_class` (`pulumi.Input[dict]`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. + * `allowed_runtime_class_names` (`pulumi.Input[list]`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. + * `default_runtime_class_name` (`pulumi.Input[str]`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. + + * `se_linux` (`pulumi.Input[dict]`) - seLinux is the strategy that will dictate the allowable labels that may be set. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable labels that may be set. + * `se_linux_options` (`pulumi.Input[dict]`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `supplemental_groups` (`pulumi.Input[dict]`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + + * `volumes` (`pulumi.Input[list]`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:extensions/v1beta1:PodSecurityPolicy")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(PodSecurityPolicy, __self__).__init__( + 'kubernetes:policy/v1beta1:PodSecurityPolicy', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodSecurityPolicy resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodSecurityPolicy(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py new file mode 100644 index 0000000000..e57777f01f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py @@ -0,0 +1,339 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodSecurityPolicyList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is a list of schema objects. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - spec defines the policy enforced. + * `allow_privilege_escalation` (`bool`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. + * `allowed_csi_drivers` (`list`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. + * `name` (`str`) - Name is the registered name of the CSI driver + + * `allowed_capabilities` (`list`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. + * `allowed_flex_volumes` (`list`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. + * `driver` (`str`) - driver is the name of the Flexvolume driver. + + * `allowed_host_paths` (`list`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. + * `pathPrefix` (`str`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. + + Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` + * `read_only` (`bool`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + + * `allowed_proc_mount_types` (`list`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. + * `allowed_unsafe_sysctls` (`list`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. + + Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. + * `default_add_capabilities` (`list`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. + * `default_allow_privilege_escalation` (`bool`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. + * `forbidden_sysctls` (`list`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. + + Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. + * `fs_group` (`dict`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + * `ranges` (`list`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + * `max` (`float`) - max is the end of the range, inclusive. + * `min` (`float`) - min is the start of the range, inclusive. + + * `rule` (`str`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + + * `host_ipc` (`bool`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. + * `host_network` (`bool`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + * `host_pid` (`bool`) - hostPID determines if the policy allows the use of HostPID in the pod spec. + * `host_ports` (`list`) - hostPorts determines which host port ranges are allowed to be exposed. + * `max` (`float`) - max is the end of the range, inclusive. + * `min` (`float`) - min is the start of the range, inclusive. + + * `privileged` (`bool`) - privileged determines if a pod can request to be run as privileged. + * `read_only_root_filesystem` (`bool`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + * `required_drop_capabilities` (`list`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + * `run_as_group` (`dict`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + * `ranges` (`list`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + + * `run_as_user` (`dict`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + * `ranges` (`list`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. + + * `runtime_class` (`dict`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. + * `allowed_runtime_class_names` (`list`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. + * `default_runtime_class_name` (`str`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. + + * `se_linux` (`dict`) - seLinux is the strategy that will dictate the allowable labels that may be set. + * `rule` (`str`) - rule is the strategy that will dictate the allowable labels that may be set. + * `se_linux_options` (`dict`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `level` (`str`) - Level is SELinux level label that applies to the container. + * `role` (`str`) - Role is a SELinux role label that applies to the container. + * `type` (`str`) - Type is a SELinux type label that applies to the container. + * `user` (`str`) - User is a SELinux user label that applies to the container. + + * `supplemental_groups` (`dict`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + * `ranges` (`list`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`str`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + + * `volumes` (`list`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PodSecurityPolicyList is a list of PodSecurityPolicy objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - spec defines the policy enforced. + * `allow_privilege_escalation` (`pulumi.Input[bool]`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. + * `allowed_csi_drivers` (`pulumi.Input[list]`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. + * `name` (`pulumi.Input[str]`) - Name is the registered name of the CSI driver + + * `allowed_capabilities` (`pulumi.Input[list]`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. + * `allowed_flex_volumes` (`pulumi.Input[list]`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. + * `driver` (`pulumi.Input[str]`) - driver is the name of the Flexvolume driver. + + * `allowed_host_paths` (`pulumi.Input[list]`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. + * `pathPrefix` (`pulumi.Input[str]`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. + + Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` + * `read_only` (`pulumi.Input[bool]`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. + + * `allowed_proc_mount_types` (`pulumi.Input[list]`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. + * `allowed_unsafe_sysctls` (`pulumi.Input[list]`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. + + Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. + * `default_add_capabilities` (`pulumi.Input[list]`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. + * `default_allow_privilege_escalation` (`pulumi.Input[bool]`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. + * `forbidden_sysctls` (`pulumi.Input[list]`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. + + Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. + * `fs_group` (`pulumi.Input[dict]`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. + * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. + * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. + + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. + + * `host_ipc` (`pulumi.Input[bool]`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. + * `host_network` (`pulumi.Input[bool]`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. + * `host_pid` (`pulumi.Input[bool]`) - hostPID determines if the policy allows the use of HostPID in the pod spec. + * `host_ports` (`pulumi.Input[list]`) - hostPorts determines which host port ranges are allowed to be exposed. + * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. + * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. + + * `privileged` (`pulumi.Input[bool]`) - privileged determines if a pod can request to be run as privileged. + * `read_only_root_filesystem` (`pulumi.Input[bool]`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. + * `required_drop_capabilities` (`pulumi.Input[list]`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. + * `run_as_group` (`pulumi.Input[dict]`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. + + * `run_as_user` (`pulumi.Input[dict]`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. + + * `runtime_class` (`pulumi.Input[dict]`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. + * `allowed_runtime_class_names` (`pulumi.Input[list]`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. + * `default_runtime_class_name` (`pulumi.Input[str]`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. + + * `se_linux` (`pulumi.Input[dict]`) - seLinux is the strategy that will dictate the allowable labels that may be set. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable labels that may be set. + * `se_linux_options` (`pulumi.Input[dict]`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. + * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. + * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. + * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. + + * `supplemental_groups` (`pulumi.Input[dict]`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. + * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. + + * `volumes` (`pulumi.Input[list]`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(PodSecurityPolicyList, __self__).__init__( + 'kubernetes:policy/v1beta1:PodSecurityPolicyList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodSecurityPolicyList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodSecurityPolicyList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/provider.py b/sdk/python/pulumi_kubernetes/provider.py index a6f563b3c7..865db04acb 100644 --- a/sdk/python/pulumi_kubernetes/provider.py +++ b/sdk/python/pulumi_kubernetes/provider.py @@ -1,59 +1,49 @@ -import warnings +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** +import json +import warnings import pulumi +import pulumi.runtime +from typing import Union +from . import utilities, tables class Provider(pulumi.ProviderResource): - """ - The provider type for the kubernetes package. - """ - - def __init__(self, - resource_name, - opts=None, - cluster=None, - context=None, - enable_dry_run=None, - kubeconfig=None, - namespace=None, - suppress_deprecation_warnings=None, - render_yaml_to_directory=None, - __name__=None, - __opts__=None): + def __init__(__self__, resource_name, opts=None, cluster=None, context=None, enable_dry_run=None, kubeconfig=None, namespace=None, render_yaml_to_directory=None, suppress_deprecation_warnings=None, __props__=None, __name__=None, __opts__=None): """ - Create a Provider resource with the given unique name, arguments, and options. - - :param str resource_name: The unique name of the resource. - :param pulumi.ResourceOptions opts: An optional bag of options that controls this resource's behavior. + The provider type for the kubernetes package. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] cluster: If present, the name of the kubeconfig cluster to use. :param pulumi.Input[str] context: If present, the name of the kubeconfig context to use. - :param pulumi.Input[bool] enable_dry_run: BETA FEATURE - If present and set to True, enable server-side diff - calculations. This feature is in developer preview, and is disabled by default. - This config can be specified in the following ways, using this precedence: - 1. This `enableDryRun` parameter. - 2. The `PULUMI_K8S_ENABLE_DRY_RUN` environment variable. - :param pulumi.Input[str] kubeconfig: The contents of a kubeconfig file. - If this is set, this config will be used instead of $KUBECONFIG. - :param pulumi.Input[str] namespace: If present, the default namespace to use. - This flag is ignored for cluster-scoped resources. - A namespace can be specified in multiple places, and the precedence is as follows: - 1. `.metadata.namespace` set on the resource. - 2. This `namespace` parameter. - 3. `namespace` set for the active context in the kubeconfig. - :param pulumi.Input[bool] suppress_deprecation_warnings: If present and set to True, suppress apiVersion - deprecation warnings from the CLI. - This config can be specified in the following ways, using this precedence: - 1. This `suppressDeprecationWarnings` parameter. - 2. The `PULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGS` environment variable. - :param pulumi.Input[str] render_yaml_to_directory: BETA FEATURE - If present, render resource manifests to this - directory. In this mode, resources will not be created on a Kubernetes cluster, but - the rendered manifests will be kept in sync with changes to the Pulumi program. - This feature is in developer preview, and is disabled by default. Note that some - computed Outputs such as status fields will not be populated since the resources are - not created on a Kubernetes cluster. These Output values will remain undefined, - and may result in an error if they are referenced by other resources. Also note that - any secret values used in these resources will be rendered in plaintext to the - resulting YAML. + :param pulumi.Input[bool] enable_dry_run: BETA FEATURE - If present and set to true, enable server-side diff calculations. + This feature is in developer preview, and is disabled by default. + + This config can be specified in the following ways, using this precedence: + 1. This `enableDryRun` parameter. + 2. The `PULUMI_K8S_ENABLE_DRY_RUN` environment variable. + :param pulumi.Input[str] kubeconfig: The contents of a kubeconfig file. If this is set, this config will be used instead of $KUBECONFIG. + :param pulumi.Input[str] namespace: If present, the default namespace to use. This flag is ignored for cluster-scoped resources. + + A namespace can be specified in multiple places, and the precedence is as follows: + 1. `.metadata.namespace` set on the resource. + 2. This `namespace` parameter. + 3. `namespace` set for the active context in the kubeconfig. + :param pulumi.Input[str] render_yaml_to_directory: BETA FEATURE - If present, render resource manifests to this directory. In this mode, resources will not + be created on a Kubernetes cluster, but the rendered manifests will be kept in sync with changes + to the Pulumi program. This feature is in developer preview, and is disabled by default. + + Note that some computed Outputs such as status fields will not be populated + since the resources are not created on a Kubernetes cluster. These Output values will remain undefined, + and may result in an error if they are referenced by other resources. Also note that any secret values + used in these resources will be rendered in plaintext to the resulting YAML. + :param pulumi.Input[bool] suppress_deprecation_warnings: If present and set to true, suppress apiVersion deprecation warnings from the CLI. + + This config can be specified in the following ways, using this precedence: + 1. This `suppressDeprecationWarnings` parameter. + 2. The `PULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGS` environment variable. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) @@ -61,19 +51,32 @@ def __init__(self, if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') - __props__ = { - "cluster": cluster, - "context": context, - "enableDryRun": enable_dry_run, - "kubeconfig": kubeconfig, - "namespace": namespace, - "suppressDeprecationWarnings": suppress_deprecation_warnings, - "renderYamlToDirectory": render_yaml_to_directory, - } - super(Provider, self).__init__("kubernetes", resource_name, __props__, opts) + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['cluster'] = cluster + __props__['context'] = context + __props__['enable_dry_run'] = pulumi.Output.from_input(enable_dry_run).apply(json.dumps) if enable_dry_run is not None else None + __props__['kubeconfig'] = kubeconfig + __props__['namespace'] = namespace + __props__['render_yaml_to_directory'] = render_yaml_to_directory + __props__['suppress_deprecation_warnings'] = pulumi.Output.from_input(suppress_deprecation_warnings).apply(json.dumps) if suppress_deprecation_warnings is not None else None + super(Provider, __self__).__init__( + 'kubernetes', + resource_name, + __props__, + opts) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/__init__.py b/sdk/python/pulumi_kubernetes/rbac/__init__.py old mode 100755 new mode 100644 index e99e4ef1e3..1f87cd7749 --- a/sdk/python/pulumi_kubernetes/rbac/__init__.py +++ b/sdk/python/pulumi_kubernetes/rbac/__init__.py @@ -1,10 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", - "v1alpha1", - "v1beta1", -] +__all__ = ['v1', 'v1alpha1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py deleted file mode 100755 index 1c468cbad0..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py +++ /dev/null @@ -1,124 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ClusterRole(pulumi.CustomResource): - """ - ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit - by a RoleBinding or ClusterRoleBinding. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - aggregation_rule: pulumi.Output[dict] - """ - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. - If AggregationRule is set, then the Rules are controller managed and direct changes to Rules - will be stomped by the controller. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - rules: pulumi.Output[list] - """ - Rules holds all the PolicyRules for this ClusterRole - """ - - def __init__(self, resource_name, opts=None, aggregation_rule=None, metadata=None, rules=None, __name__=None, __opts__=None): - """ - Create a ClusterRole resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this - ClusterRole. If AggregationRule is set, then the Rules are controller managed and - direct changes to Rules will be stomped by the controller. - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1' - __props__['kind'] = 'ClusterRole' - __props__['aggregationRule'] = aggregation_rule - __props__['metadata'] = metadata - __props__['rules'] = rules - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole"), - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ClusterRole, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1:ClusterRole", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ClusterRole` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ClusterRole(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py deleted file mode 100755 index eba7e297bf..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +++ /dev/null @@ -1,124 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ClusterRoleBinding(pulumi.CustomResource): - """ - ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole - in the global namespace, and adds who information via Subject. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - role_ref: pulumi.Output[dict] - """ - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be - resolved, the Authorizer must return an error. - """ - - subjects: pulumi.Output[list] - """ - Subjects holds references to the objects the role applies to. - """ - - def __init__(self, resource_name, opts=None, role_ref=None, metadata=None, subjects=None, __name__=None, __opts__=None): - """ - Create a ClusterRoleBinding resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef - cannot be resolved, the Authorizer must return an error. - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1' - __props__['kind'] = 'ClusterRoleBinding' - if role_ref is None: - raise TypeError('Missing required property role_ref') - __props__['roleRef'] = role_ref - __props__['metadata'] = metadata - __props__['subjects'] = subjects - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding"), - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ClusterRoleBinding, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ClusterRoleBinding` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ClusterRoleBinding(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py deleted file mode 100755 index d37fc4efaa..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ClusterRoleBindingList(pulumi.CustomResource): - """ - ClusterRoleBindingList is a collection of ClusterRoleBindings - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of ClusterRoleBindings - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ClusterRoleBindingList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1' - __props__['kind'] = 'ClusterRoleBindingList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ClusterRoleBindingList, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBindingList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ClusterRoleBindingList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ClusterRoleBindingList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py deleted file mode 100755 index e78f48e0bc..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ClusterRoleList(pulumi.CustomResource): - """ - ClusterRoleList is a collection of ClusterRoles - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of ClusterRoles - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ClusterRoleList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of ClusterRoles - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1' - __props__['kind'] = 'ClusterRoleList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ClusterRoleList, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ClusterRoleList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ClusterRoleList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1/Role.py deleted file mode 100755 index 00e9462df7..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/Role.py +++ /dev/null @@ -1,113 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Role(pulumi.CustomResource): - """ - Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a - RoleBinding. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - rules: pulumi.Output[list] - """ - Rules holds all the PolicyRules for this Role - """ - - def __init__(self, resource_name, opts=None, metadata=None, rules=None, __name__=None, __opts__=None): - """ - Create a Role resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1' - __props__['kind'] = 'Role' - __props__['metadata'] = metadata - __props__['rules'] = rules - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:Role"), - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:Role"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(Role, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1:Role", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Role` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Role(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py deleted file mode 100755 index 87c72ef7e1..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py +++ /dev/null @@ -1,126 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class RoleBinding(pulumi.CustomResource): - """ - RoleBinding references a role, but does not contain it. It can reference a Role in the same - namespace or a ClusterRole in the global namespace. It adds who information via Subjects and - namespace information by which namespace it exists in. RoleBindings in a given namespace only - have effect in that namespace. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - role_ref: pulumi.Output[dict] - """ - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. - If the RoleRef cannot be resolved, the Authorizer must return an error. - """ - - subjects: pulumi.Output[list] - """ - Subjects holds references to the objects the role applies to. - """ - - def __init__(self, resource_name, opts=None, role_ref=None, metadata=None, subjects=None, __name__=None, __opts__=None): - """ - Create a RoleBinding resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global - namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1' - __props__['kind'] = 'RoleBinding' - if role_ref is None: - raise TypeError('Missing required property role_ref') - __props__['roleRef'] = role_ref - __props__['metadata'] = metadata - __props__['subjects'] = subjects - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding"), - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(RoleBinding, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1:RoleBinding", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `RoleBinding` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return RoleBinding(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py deleted file mode 100755 index 970c6f0619..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class RoleBindingList(pulumi.CustomResource): - """ - RoleBindingList is a collection of RoleBindings - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of RoleBindings - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a RoleBindingList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of RoleBindings - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1' - __props__['kind'] = 'RoleBindingList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(RoleBindingList, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1:RoleBindingList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `RoleBindingList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return RoleBindingList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py deleted file mode 100755 index 0d0dcbb5b4..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py +++ /dev/null @@ -1,108 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class RoleList(pulumi.CustomResource): - """ - RoleList is a collection of Roles - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of Roles - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a RoleList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of Roles - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1' - __props__['kind'] = 'RoleList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(RoleList, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1:RoleList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `RoleList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return RoleList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py b/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py old mode 100755 new mode 100644 index e32bdd8013..3b8cf17e29 --- a/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py @@ -1,13 +1,13 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .ClusterRole import (ClusterRole) -from .ClusterRoleBinding import (ClusterRoleBinding) -from .ClusterRoleBindingList import (ClusterRoleBindingList) -from .ClusterRoleList import (ClusterRoleList) -from .Role import (Role) -from .RoleBinding import (RoleBinding) -from .RoleBindingList import (RoleBindingList) -from .RoleList import (RoleList) +from .cluster_role import * +from .cluster_role_binding import * +from .cluster_role_binding_list import * +from .cluster_role_list import * +from .role import * +from .role_binding import * +from .role_binding_list import * +from .role_list import * diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py new file mode 100644 index 0000000000..c5f07eb2e5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py @@ -0,0 +1,220 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRole(pulumi.CustomResource): + aggregation_rule: pulumi.Output[dict] + """ + AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * `cluster_role_selectors` (`list`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + rules: pulumi.Output[list] + """ + Rules holds all the PolicyRules for this ClusterRole + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole + + The **aggregation_rule** object supports the following: + + * `cluster_role_selectors` (`pulumi.Input[list]`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **rules** object supports the following: + + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['aggregation_rule'] = aggregation_rule + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['rules'] = rules + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ClusterRole, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRole', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRole resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRole(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py new file mode 100644 index 0000000000..b5afd37308 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py @@ -0,0 +1,212 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleBinding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + role_ref: pulumi.Output[dict] + """ + RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + """ + subjects: pulumi.Output[list] + """ + Subjects holds references to the objects the role applies to. + * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`str`) - Name of the object being referenced. + * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **role_ref** object supports the following: + + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + The **subjects** object supports the following: + + * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`pulumi.Input[str]`) - Name of the object being referenced. + * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if role_ref is None: + raise TypeError("Missing required property 'role_ref'") + __props__['role_ref'] = role_ref + __props__['subjects'] = subjects + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ClusterRoleBinding, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleBinding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleBinding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py new file mode 100644 index 0000000000..8104071252 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py @@ -0,0 +1,227 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleBindingList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ClusterRoleBindings + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `role_ref` (`dict`) - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `subjects` (`list`) - Subjects holds references to the objects the role applies to. + * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`str`) - Name of the object being referenced. + * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleBindingList is a collection of ClusterRoleBindings + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `role_ref` (`pulumi.Input[dict]`) - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `subjects` (`pulumi.Input[list]`) - Subjects holds references to the objects the role applies to. + * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`pulumi.Input[str]`) - Name of the object being referenced. + * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ClusterRoleBindingList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBindingList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleBindingList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleBindingList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py new file mode 100644 index 0000000000..4298473d39 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py @@ -0,0 +1,237 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ClusterRoles + * `aggregation_rule` (`dict`) - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * `cluster_role_selectors` (`list`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `rules` (`list`) - Rules holds all the PolicyRules for this ClusterRole + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleList is a collection of ClusterRoles + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ClusterRoles + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + + The **items** object supports the following: + + * `aggregation_rule` (`pulumi.Input[dict]`) - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * `cluster_role_selectors` (`pulumi.Input[list]`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `rules` (`pulumi.Input[list]`) - Rules holds all the PolicyRules for this ClusterRole + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ClusterRoleList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1/role.py new file mode 100644 index 0000000000..7fe2b71ff1 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role.py @@ -0,0 +1,197 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Role(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + rules: pulumi.Output[list] + """ + Rules holds all the PolicyRules for this Role + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): + """ + Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **rules** object supports the following: + + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['rules'] = rules + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:Role"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:Role")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Role, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:Role', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Role resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Role(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py new file mode 100644 index 0000000000..cd7acd3c6e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py @@ -0,0 +1,212 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleBinding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + role_ref: pulumi.Output[dict] + """ + RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + """ + subjects: pulumi.Output[list] + """ + Subjects holds references to the objects the role applies to. + * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`str`) - Name of the object being referenced. + * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): + """ + RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **role_ref** object supports the following: + + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + The **subjects** object supports the following: + + * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`pulumi.Input[str]`) - Name of the object being referenced. + * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if role_ref is None: + raise TypeError("Missing required property 'role_ref'") + __props__['role_ref'] = role_ref + __props__['subjects'] = subjects + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(RoleBinding, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:RoleBinding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleBinding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleBinding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py new file mode 100644 index 0000000000..a6eb5125b3 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py @@ -0,0 +1,227 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleBindingList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of RoleBindings + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `role_ref` (`dict`) - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `subjects` (`list`) - Subjects holds references to the objects the role applies to. + * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`str`) - Name of the object being referenced. + * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RoleBindingList is a collection of RoleBindings + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of RoleBindings + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `role_ref` (`pulumi.Input[dict]`) - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `subjects` (`pulumi.Input[list]`) - Subjects holds references to the objects the role applies to. + * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`pulumi.Input[str]`) - Name of the object being referenced. + * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(RoleBindingList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:RoleBindingList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleBindingList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleBindingList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py new file mode 100644 index 0000000000..c076197170 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py @@ -0,0 +1,219 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of Roles + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `rules` (`list`) - Rules holds all the PolicyRules for this Role + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RoleList is a collection of Roles + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of Roles + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `rules` (`pulumi.Input[list]`) - Rules holds all the PolicyRules for this Role + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(RoleList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:RoleList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py deleted file mode 100755 index 59862d1b5d..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +++ /dev/null @@ -1,125 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ClusterRole(pulumi.CustomResource): - """ - ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit - by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of - rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - aggregation_rule: pulumi.Output[dict] - """ - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. - If AggregationRule is set, then the Rules are controller managed and direct changes to Rules - will be stomped by the controller. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - rules: pulumi.Output[list] - """ - Rules holds all the PolicyRules for this ClusterRole - """ - - def __init__(self, resource_name, opts=None, aggregation_rule=None, metadata=None, rules=None, __name__=None, __opts__=None): - """ - Create a ClusterRole resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this - ClusterRole. If AggregationRule is set, then the Rules are controller managed and - direct changes to Rules will be stomped by the controller. - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1alpha1' - __props__['kind'] = 'ClusterRole' - __props__['aggregationRule'] = aggregation_rule - __props__['metadata'] = metadata - __props__['rules'] = rules - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRole"), - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ClusterRole, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ClusterRole` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ClusterRole(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py deleted file mode 100755 index d15143513a..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +++ /dev/null @@ -1,125 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ClusterRoleBinding(pulumi.CustomResource): - """ - ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole - in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of - rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - role_ref: pulumi.Output[dict] - """ - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be - resolved, the Authorizer must return an error. - """ - - subjects: pulumi.Output[list] - """ - Subjects holds references to the objects the role applies to. - """ - - def __init__(self, resource_name, opts=None, role_ref=None, metadata=None, subjects=None, __name__=None, __opts__=None): - """ - Create a ClusterRoleBinding resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef - cannot be resolved, the Authorizer must return an error. - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1alpha1' - __props__['kind'] = 'ClusterRoleBinding' - if role_ref is None: - raise TypeError('Missing required property role_ref') - __props__['roleRef'] = role_ref - __props__['metadata'] = metadata - __props__['subjects'] = subjects - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding"), - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ClusterRoleBinding, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ClusterRoleBinding` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ClusterRoleBinding(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py deleted file mode 100755 index 687211cd81..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +++ /dev/null @@ -1,109 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ClusterRoleBindingList(pulumi.CustomResource): - """ - ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of - rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of ClusterRoleBindings - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ClusterRoleBindingList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1alpha1' - __props__['kind'] = 'ClusterRoleBindingList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ClusterRoleBindingList, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBindingList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ClusterRoleBindingList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ClusterRoleBindingList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py deleted file mode 100755 index 59be8b1195..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +++ /dev/null @@ -1,109 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ClusterRoleList(pulumi.CustomResource): - """ - ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of - rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of ClusterRoles - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ClusterRoleList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of ClusterRoles - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1alpha1' - __props__['kind'] = 'ClusterRoleList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ClusterRoleList, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ClusterRoleList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ClusterRoleList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py deleted file mode 100755 index 2bffe5fc28..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py +++ /dev/null @@ -1,114 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Role(pulumi.CustomResource): - """ - Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a - RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no - longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - rules: pulumi.Output[list] - """ - Rules holds all the PolicyRules for this Role - """ - - def __init__(self, resource_name, opts=None, metadata=None, rules=None, __name__=None, __opts__=None): - """ - Create a Role resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1alpha1' - __props__['kind'] = 'Role' - __props__['metadata'] = metadata - __props__['rules'] = rules - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:Role"), - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:Role"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(Role, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1alpha1:Role", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Role` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Role(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py deleted file mode 100755 index e9c858ad8c..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +++ /dev/null @@ -1,127 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class RoleBinding(pulumi.CustomResource): - """ - RoleBinding references a role, but does not contain it. It can reference a Role in the same - namespace or a ClusterRole in the global namespace. It adds who information via Subjects and - namespace information by which namespace it exists in. RoleBindings in a given namespace only - have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 - RoleBinding, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - role_ref: pulumi.Output[dict] - """ - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. - If the RoleRef cannot be resolved, the Authorizer must return an error. - """ - - subjects: pulumi.Output[list] - """ - Subjects holds references to the objects the role applies to. - """ - - def __init__(self, resource_name, opts=None, role_ref=None, metadata=None, subjects=None, __name__=None, __opts__=None): - """ - Create a RoleBinding resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global - namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1alpha1' - __props__['kind'] = 'RoleBinding' - if role_ref is None: - raise TypeError('Missing required property role_ref') - __props__['roleRef'] = role_ref - __props__['metadata'] = metadata - __props__['subjects'] = subjects - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:RoleBinding"), - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(RoleBinding, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `RoleBinding` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return RoleBinding(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py deleted file mode 100755 index a4f50c051f..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +++ /dev/null @@ -1,109 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class RoleBindingList(pulumi.CustomResource): - """ - RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of - rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of RoleBindings - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a RoleBindingList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of RoleBindings - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1alpha1' - __props__['kind'] = 'RoleBindingList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(RoleBindingList, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBindingList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `RoleBindingList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return RoleBindingList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py deleted file mode 100755 index 1e16ed807b..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py +++ /dev/null @@ -1,109 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class RoleList(pulumi.CustomResource): - """ - RoleList is a collection of Roles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 - RoleList, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of Roles - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a RoleList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of Roles - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1alpha1' - __props__['kind'] = 'RoleList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(RoleList, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `RoleList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return RoleList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py old mode 100755 new mode 100644 index e32bdd8013..3b8cf17e29 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py @@ -1,13 +1,13 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .ClusterRole import (ClusterRole) -from .ClusterRoleBinding import (ClusterRoleBinding) -from .ClusterRoleBindingList import (ClusterRoleBindingList) -from .ClusterRoleList import (ClusterRoleList) -from .Role import (Role) -from .RoleBinding import (RoleBinding) -from .RoleBindingList import (RoleBindingList) -from .RoleList import (RoleList) +from .cluster_role import * +from .cluster_role_binding import * +from .cluster_role_binding_list import * +from .cluster_role_list import * +from .role import * +from .role_binding import * +from .role_binding_list import * +from .role_list import * diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py new file mode 100644 index 0000000000..60af0472e9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py @@ -0,0 +1,220 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRole(pulumi.CustomResource): + aggregation_rule: pulumi.Output[dict] + """ + AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * `cluster_role_selectors` (`list`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + rules: pulumi.Output[list] + """ + Rules holds all the PolicyRules for this ClusterRole + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole + + The **aggregation_rule** object supports the following: + + * `cluster_role_selectors` (`pulumi.Input[list]`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **rules** object supports the following: + + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['aggregation_rule'] = aggregation_rule + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['rules'] = rules + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRole"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ClusterRole, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRole resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRole(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py new file mode 100644 index 0000000000..fb6f910dcc --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py @@ -0,0 +1,212 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleBinding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + role_ref: pulumi.Output[dict] + """ + RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + """ + subjects: pulumi.Output[list] + """ + Subjects holds references to the objects the role applies to. + * `api_version` (`str`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. + * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`str`) - Name of the object being referenced. + * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **role_ref** object supports the following: + + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + The **subjects** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. + * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`pulumi.Input[str]`) - Name of the object being referenced. + * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if role_ref is None: + raise TypeError("Missing required property 'role_ref'") + __props__['role_ref'] = role_ref + __props__['subjects'] = subjects + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ClusterRoleBinding, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleBinding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleBinding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py new file mode 100644 index 0000000000..8384f990f9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py @@ -0,0 +1,227 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleBindingList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ClusterRoleBindings + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `role_ref` (`dict`) - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `subjects` (`list`) - Subjects holds references to the objects the role applies to. + * `api_version` (`str`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. + * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`str`) - Name of the object being referenced. + * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `role_ref` (`pulumi.Input[dict]`) - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `subjects` (`pulumi.Input[list]`) - Subjects holds references to the objects the role applies to. + * `api_version` (`pulumi.Input[str]`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. + * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`pulumi.Input[str]`) - Name of the object being referenced. + * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ClusterRoleBindingList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBindingList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleBindingList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleBindingList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py new file mode 100644 index 0000000000..e4fc08ffb0 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py @@ -0,0 +1,237 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ClusterRoles + * `aggregation_rule` (`dict`) - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * `cluster_role_selectors` (`list`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `rules` (`list`) - Rules holds all the PolicyRules for this ClusterRole + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ClusterRoles + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + + The **items** object supports the following: + + * `aggregation_rule` (`pulumi.Input[dict]`) - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * `cluster_role_selectors` (`pulumi.Input[list]`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `rules` (`pulumi.Input[list]`) - Rules holds all the PolicyRules for this ClusterRole + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ClusterRoleList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py new file mode 100644 index 0000000000..92a56ddbfe --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py @@ -0,0 +1,197 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Role(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + rules: pulumi.Output[list] + """ + Rules holds all the PolicyRules for this Role + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): + """ + Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **rules** object supports the following: + + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['rules'] = rules + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:Role"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:Role")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Role, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:Role', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Role resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Role(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py new file mode 100644 index 0000000000..7257ee3779 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py @@ -0,0 +1,212 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleBinding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + role_ref: pulumi.Output[dict] + """ + RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + """ + subjects: pulumi.Output[list] + """ + Subjects holds references to the objects the role applies to. + * `api_version` (`str`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. + * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`str`) - Name of the object being referenced. + * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): + """ + RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **role_ref** object supports the following: + + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + The **subjects** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. + * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`pulumi.Input[str]`) - Name of the object being referenced. + * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if role_ref is None: + raise TypeError("Missing required property 'role_ref'") + __props__['role_ref'] = role_ref + __props__['subjects'] = subjects + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:RoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(RoleBinding, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleBinding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleBinding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py new file mode 100644 index 0000000000..3c28c1195f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py @@ -0,0 +1,227 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleBindingList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of RoleBindings + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `role_ref` (`dict`) - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `subjects` (`list`) - Subjects holds references to the objects the role applies to. + * `api_version` (`str`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. + * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`str`) - Name of the object being referenced. + * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of RoleBindings + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `role_ref` (`pulumi.Input[dict]`) - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `subjects` (`pulumi.Input[list]`) - Subjects holds references to the objects the role applies to. + * `api_version` (`pulumi.Input[str]`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. + * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`pulumi.Input[str]`) - Name of the object being referenced. + * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(RoleBindingList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBindingList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleBindingList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleBindingList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py new file mode 100644 index 0000000000..3c327313c6 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py @@ -0,0 +1,219 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of Roles + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `rules` (`list`) - Rules holds all the PolicyRules for this Role + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RoleList is a collection of Roles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of Roles + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `rules` (`pulumi.Input[list]`) - Rules holds all the PolicyRules for this Role + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. + * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(RoleList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py deleted file mode 100755 index e29399cb83..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +++ /dev/null @@ -1,125 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ClusterRole(pulumi.CustomResource): - """ - ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit - by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of - rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - aggregation_rule: pulumi.Output[dict] - """ - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. - If AggregationRule is set, then the Rules are controller managed and direct changes to Rules - will be stomped by the controller. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - rules: pulumi.Output[list] - """ - Rules holds all the PolicyRules for this ClusterRole - """ - - def __init__(self, resource_name, opts=None, aggregation_rule=None, metadata=None, rules=None, __name__=None, __opts__=None): - """ - Create a ClusterRole resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this - ClusterRole. If AggregationRule is set, then the Rules are controller managed and - direct changes to Rules will be stomped by the controller. - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1beta1' - __props__['kind'] = 'ClusterRole' - __props__['aggregationRule'] = aggregation_rule - __props__['metadata'] = metadata - __props__['rules'] = rules - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRole"), - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ClusterRole, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ClusterRole` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ClusterRole(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py deleted file mode 100755 index e254624109..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +++ /dev/null @@ -1,125 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ClusterRoleBinding(pulumi.CustomResource): - """ - ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole - in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of - rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - role_ref: pulumi.Output[dict] - """ - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be - resolved, the Authorizer must return an error. - """ - - subjects: pulumi.Output[list] - """ - Subjects holds references to the objects the role applies to. - """ - - def __init__(self, resource_name, opts=None, role_ref=None, metadata=None, subjects=None, __name__=None, __opts__=None): - """ - Create a ClusterRoleBinding resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef - cannot be resolved, the Authorizer must return an error. - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1beta1' - __props__['kind'] = 'ClusterRoleBinding' - if role_ref is None: - raise TypeError('Missing required property role_ref') - __props__['roleRef'] = role_ref - __props__['metadata'] = metadata - __props__['subjects'] = subjects - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding"), - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(ClusterRoleBinding, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ClusterRoleBinding` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ClusterRoleBinding(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py deleted file mode 100755 index e1423fb7d6..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +++ /dev/null @@ -1,109 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ClusterRoleBindingList(pulumi.CustomResource): - """ - ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of - rbac.authorization.k8s.io/v1 ClusterRoleBindingList, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of ClusterRoleBindings - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ClusterRoleBindingList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1beta1' - __props__['kind'] = 'ClusterRoleBindingList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ClusterRoleBindingList, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBindingList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ClusterRoleBindingList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ClusterRoleBindingList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py deleted file mode 100755 index 411bd4a184..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +++ /dev/null @@ -1,109 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class ClusterRoleList(pulumi.CustomResource): - """ - ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of - rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of ClusterRoles - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a ClusterRoleList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of ClusterRoles - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1beta1' - __props__['kind'] = 'ClusterRoleList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(ClusterRoleList, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `ClusterRoleList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return ClusterRoleList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py deleted file mode 100755 index aa5e3df4ea..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py +++ /dev/null @@ -1,114 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class Role(pulumi.CustomResource): - """ - Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a - RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no - longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - rules: pulumi.Output[list] - """ - Rules holds all the PolicyRules for this Role - """ - - def __init__(self, resource_name, opts=None, metadata=None, rules=None, __name__=None, __opts__=None): - """ - Create a Role resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1beta1' - __props__['kind'] = 'Role' - __props__['metadata'] = metadata - __props__['rules'] = rules - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:Role"), - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:Role"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(Role, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1beta1:Role", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `Role` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return Role(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py deleted file mode 100755 index 236e14fbda..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +++ /dev/null @@ -1,127 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class RoleBinding(pulumi.CustomResource): - """ - RoleBinding references a role, but does not contain it. It can reference a Role in the same - namespace or a ClusterRole in the global namespace. It adds who information via Subjects and - namespace information by which namespace it exists in. RoleBindings in a given namespace only - have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 - RoleBinding, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - role_ref: pulumi.Output[dict] - """ - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. - If the RoleRef cannot be resolved, the Authorizer must return an error. - """ - - subjects: pulumi.Output[list] - """ - Subjects holds references to the objects the role applies to. - """ - - def __init__(self, resource_name, opts=None, role_ref=None, metadata=None, subjects=None, __name__=None, __opts__=None): - """ - Create a RoleBinding resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global - namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1beta1' - __props__['kind'] = 'RoleBinding' - if role_ref is None: - raise TypeError('Missing required property role_ref') - __props__['roleRef'] = role_ref - __props__['metadata'] = metadata - __props__['subjects'] = subjects - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:RoleBinding"), - pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(RoleBinding, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `RoleBinding` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return RoleBinding(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py deleted file mode 100755 index c9a051a84b..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +++ /dev/null @@ -1,109 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class RoleBindingList(pulumi.CustomResource): - """ - RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of - rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of RoleBindings - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a RoleBindingList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of RoleBindings - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1beta1' - __props__['kind'] = 'RoleBindingList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(RoleBindingList, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBindingList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `RoleBindingList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return RoleBindingList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py deleted file mode 100755 index cee381d661..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py +++ /dev/null @@ -1,109 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class RoleList(pulumi.CustomResource): - """ - RoleList is a collection of Roles Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 - RoleList, and will no longer be served in v1.20. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of Roles - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a RoleList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of Roles - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'rbac.authorization.k8s.io/v1beta1' - __props__['kind'] = 'RoleList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(RoleList, self).__init__( - "kubernetes:rbac.authorization.k8s.io/v1beta1:RoleList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `RoleList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return RoleList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py old mode 100755 new mode 100644 index e32bdd8013..3b8cf17e29 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py @@ -1,13 +1,13 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .ClusterRole import (ClusterRole) -from .ClusterRoleBinding import (ClusterRoleBinding) -from .ClusterRoleBindingList import (ClusterRoleBindingList) -from .ClusterRoleList import (ClusterRoleList) -from .Role import (Role) -from .RoleBinding import (RoleBinding) -from .RoleBindingList import (RoleBindingList) -from .RoleList import (RoleList) +from .cluster_role import * +from .cluster_role_binding import * +from .cluster_role_binding_list import * +from .cluster_role_list import * +from .role import * +from .role_binding import * +from .role_binding_list import * +from .role_list import * diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py new file mode 100644 index 0000000000..3f153d3bc6 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py @@ -0,0 +1,220 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRole(pulumi.CustomResource): + aggregation_rule: pulumi.Output[dict] + """ + AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * `cluster_role_selectors` (`list`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + rules: pulumi.Output[list] + """ + Rules holds all the PolicyRules for this ClusterRole + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`list`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. + * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole + + The **aggregation_rule** object supports the following: + + * `cluster_role_selectors` (`pulumi.Input[list]`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **rules** object supports the following: + + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. + * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['aggregation_rule'] = aggregation_rule + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['rules'] = rules + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRole"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ClusterRole, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRole resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRole(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py new file mode 100644 index 0000000000..0db06ce688 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py @@ -0,0 +1,212 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleBinding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + role_ref: pulumi.Output[dict] + """ + RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + """ + subjects: pulumi.Output[list] + """ + Subjects holds references to the objects the role applies to. + * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`str`) - Name of the object being referenced. + * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **role_ref** object supports the following: + + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + The **subjects** object supports the following: + + * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`pulumi.Input[str]`) - Name of the object being referenced. + * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if role_ref is None: + raise TypeError("Missing required property 'role_ref'") + __props__['role_ref'] = role_ref + __props__['subjects'] = subjects + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ClusterRoleBinding, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleBinding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleBinding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py new file mode 100644 index 0000000000..fd8073e163 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py @@ -0,0 +1,227 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleBindingList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ClusterRoleBindings + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `role_ref` (`dict`) - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `subjects` (`list`) - Subjects holds references to the objects the role applies to. + * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`str`) - Name of the object being referenced. + * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindingList, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `role_ref` (`pulumi.Input[dict]`) - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `subjects` (`pulumi.Input[list]`) - Subjects holds references to the objects the role applies to. + * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`pulumi.Input[str]`) - Name of the object being referenced. + * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ClusterRoleBindingList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBindingList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleBindingList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleBindingList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py new file mode 100644 index 0000000000..70c71e4875 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py @@ -0,0 +1,237 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ClusterRoles + * `aggregation_rule` (`dict`) - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * `cluster_role_selectors` (`list`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `rules` (`list`) - Rules holds all the PolicyRules for this ClusterRole + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`list`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. + * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ClusterRoles + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + + The **items** object supports the following: + + * `aggregation_rule` (`pulumi.Input[dict]`) - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * `cluster_role_selectors` (`pulumi.Input[list]`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `rules` (`pulumi.Input[list]`) - Rules holds all the PolicyRules for this ClusterRole + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. + * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(ClusterRoleList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py new file mode 100644 index 0000000000..338aa7c949 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py @@ -0,0 +1,197 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Role(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + rules: pulumi.Output[list] + """ + Rules holds all the PolicyRules for this Role + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`list`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. + * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): + """ + Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **rules** object supports the following: + + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. + * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['rules'] = rules + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:Role"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:Role")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Role, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:Role', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Role resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Role(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py new file mode 100644 index 0000000000..8730dcff39 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py @@ -0,0 +1,212 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleBinding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + role_ref: pulumi.Output[dict] + """ + RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + """ + subjects: pulumi.Output[list] + """ + Subjects holds references to the objects the role applies to. + * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`str`) - Name of the object being referenced. + * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): + """ + RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **role_ref** object supports the following: + + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + The **subjects** object supports the following: + + * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`pulumi.Input[str]`) - Name of the object being referenced. + * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if role_ref is None: + raise TypeError("Missing required property 'role_ref'") + __props__['role_ref'] = role_ref + __props__['subjects'] = subjects + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:RoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(RoleBinding, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleBinding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleBinding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py new file mode 100644 index 0000000000..b5624f8164 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py @@ -0,0 +1,227 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleBindingList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of RoleBindings + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `role_ref` (`dict`) - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`str`) - APIGroup is the group for the resource being referenced + * `kind` (`str`) - Kind is the type of resource being referenced + * `name` (`str`) - Name is the name of resource being referenced + + * `subjects` (`list`) - Subjects holds references to the objects the role applies to. + * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`str`) - Name of the object being referenced. + * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of RoleBindings + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `role_ref` (`pulumi.Input[dict]`) - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced + * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced + * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced + + * `subjects` (`pulumi.Input[list]`) - Subjects holds references to the objects the role applies to. + * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. + * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. + * `name` (`pulumi.Input[str]`) - Name of the object being referenced. + * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(RoleBindingList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBindingList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleBindingList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleBindingList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py new file mode 100644 index 0000000000..fc6f8047d9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py @@ -0,0 +1,219 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of Roles + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `rules` (`list`) - Rules holds all the PolicyRules for this Role + * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`list`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. + * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RoleList is a collection of Roles Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of Roles + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `rules` (`pulumi.Input[list]`) - Rules holds all the PolicyRules for this Role + * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. + * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. + * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. + * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(RoleList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:RoleList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/__init__.py old mode 100755 new mode 100644 index e99e4ef1e3..1f87cd7749 --- a/sdk/python/pulumi_kubernetes/scheduling/__init__.py +++ b/sdk/python/pulumi_kubernetes/scheduling/__init__.py @@ -1,10 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", - "v1alpha1", - "v1beta1", -] +__all__ = ['v1', 'v1alpha1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py deleted file mode 100755 index 9a1ebb5b23..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py +++ /dev/null @@ -1,155 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PriorityClass(pulumi.CustomResource): - """ - PriorityClass defines mapping from a priority class name to the priority integer value. The - value can be any valid integer. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - description: pulumi.Output[str] - """ - description is an arbitrary string that usually provides guidelines on when this priority class - should be used. - """ - - global_default: pulumi.Output[bool] - """ - globalDefault specifies whether this PriorityClass should be considered as the default priority - for pods that do not have any priority class. Only one PriorityClass can be marked as - `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` - field set to true, the smallest value of such global default PriorityClasses will be used as the - default priority. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - preemption_policy: pulumi.Output[str] - """ - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, - PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and - is only honored by servers that enable the NonPreemptingPriority feature. - """ - - value: pulumi.Output[int] - """ - The value of this priority class. This is the actual priority that pods receive when they have - the name of this class in their pod spec. - """ - - def __init__(self, resource_name, opts=None, value=None, description=None, global_default=None, metadata=None, preemption_policy=None, __name__=None, __opts__=None): - """ - Create a PriorityClass resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[int] value: The value of this priority class. This is the actual priority that pods receive when - they have the name of this class in their pod spec. - :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this - priority class should be used. - :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the - default priority for pods that do not have any priority class. Only one PriorityClass - can be marked as `globalDefault`. However, if more than one PriorityClasses exists - with their `globalDefault` field set to true, the smallest value of such global - default PriorityClasses will be used as the default priority. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, - PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is - alpha-level and is only honored by servers that enable the NonPreemptingPriority - feature. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'scheduling.k8s.io/v1' - __props__['kind'] = 'PriorityClass' - if value is None: - raise TypeError('Missing required property value') - __props__['value'] = value - __props__['description'] = description - __props__['globalDefault'] = global_default - __props__['metadata'] = metadata - __props__['preemptionPolicy'] = preemption_policy - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass"), - pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1beta1:PriorityClass"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(PriorityClass, self).__init__( - "kubernetes:scheduling.k8s.io/v1:PriorityClass", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PriorityClass` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PriorityClass(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py deleted file mode 100755 index 23bc91616f..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PriorityClassList(pulumi.CustomResource): - """ - PriorityClassList is a collection of priority classes. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is the list of PriorityClasses - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a PriorityClassList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is the list of PriorityClasses - :param pulumi.Input[dict] metadata: Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'scheduling.k8s.io/v1' - __props__['kind'] = 'PriorityClassList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PriorityClassList, self).__init__( - "kubernetes:scheduling.k8s.io/v1:PriorityClassList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PriorityClassList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PriorityClassList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py old mode 100755 new mode 100644 index bebd6f5f8c..dd8f584cce --- a/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .PriorityClass import (PriorityClass) -from .PriorityClassList import (PriorityClassList) +from .priority_class import * +from .priority_class_list import * diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py new file mode 100644 index 0000000000..ca3d414650 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py @@ -0,0 +1,204 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityClass(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + description: pulumi.Output[str] + """ + description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """ + global_default: pulumi.Output[bool] + """ + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + preemption_policy: pulumi.Output[str] + """ + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + """ + value: pulumi.Output[float] + """ + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, __props__=None, __name__=None, __opts__=None): + """ + PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this priority class should be used. + :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + :param pulumi.Input[float] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['description'] = description + __props__['global_default'] = global_default + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['preemption_policy'] = preemption_policy + if value is None: + raise TypeError("Missing required property 'value'") + __props__['value'] = value + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass"), pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1beta1:PriorityClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(PriorityClass, __self__).__init__( + 'kubernetes:scheduling.k8s.io/v1:PriorityClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py new file mode 100644 index 0000000000..2051b7596a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py @@ -0,0 +1,215 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of PriorityClasses + * `api_version` (`str`) - 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 + * `description` (`str`) - description is an arbitrary string that usually provides guidelines on when this priority class should be used. + * `global_default` (`bool`) - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `value` (`float`) - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PriorityClassList is a collection of priority classes. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of PriorityClasses + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `description` (`pulumi.Input[str]`) - description is an arbitrary string that usually provides guidelines on when this priority class should be used. + * `global_default` (`pulumi.Input[bool]`) - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `value` (`pulumi.Input[float]`) - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(PriorityClassList, __self__).__init__( + 'kubernetes:scheduling.k8s.io/v1:PriorityClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py deleted file mode 100755 index 6c2bb5d24f..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +++ /dev/null @@ -1,156 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PriorityClass(pulumi.CustomResource): - """ - DEPRECATED - This group version of PriorityClass is deprecated by - scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to - the priority integer value. The value can be any valid integer. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - description: pulumi.Output[str] - """ - description is an arbitrary string that usually provides guidelines on when this priority class - should be used. - """ - - global_default: pulumi.Output[bool] - """ - globalDefault specifies whether this PriorityClass should be considered as the default priority - for pods that do not have any priority class. Only one PriorityClass can be marked as - `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` - field set to true, the smallest value of such global default PriorityClasses will be used as the - default priority. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - preemption_policy: pulumi.Output[str] - """ - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, - PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and - is only honored by servers that enable the NonPreemptingPriority feature. - """ - - value: pulumi.Output[int] - """ - The value of this priority class. This is the actual priority that pods receive when they have - the name of this class in their pod spec. - """ - - def __init__(self, resource_name, opts=None, value=None, description=None, global_default=None, metadata=None, preemption_policy=None, __name__=None, __opts__=None): - """ - Create a PriorityClass resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[int] value: The value of this priority class. This is the actual priority that pods receive when - they have the name of this class in their pod spec. - :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this - priority class should be used. - :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the - default priority for pods that do not have any priority class. Only one PriorityClass - can be marked as `globalDefault`. However, if more than one PriorityClasses exists - with their `globalDefault` field set to true, the smallest value of such global - default PriorityClasses will be used as the default priority. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, - PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is - alpha-level and is only honored by servers that enable the NonPreemptingPriority - feature. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'scheduling.k8s.io/v1alpha1' - __props__['kind'] = 'PriorityClass' - if value is None: - raise TypeError('Missing required property value') - __props__['value'] = value - __props__['description'] = description - __props__['globalDefault'] = global_default - __props__['metadata'] = metadata - __props__['preemptionPolicy'] = preemption_policy - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1:PriorityClass"), - pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1beta1:PriorityClass"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(PriorityClass, self).__init__( - "kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PriorityClass` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PriorityClass(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py deleted file mode 100755 index c3fc48bfa6..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PriorityClassList(pulumi.CustomResource): - """ - PriorityClassList is a collection of priority classes. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is the list of PriorityClasses - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a PriorityClassList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is the list of PriorityClasses - :param pulumi.Input[dict] metadata: Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'scheduling.k8s.io/v1alpha1' - __props__['kind'] = 'PriorityClassList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PriorityClassList, self).__init__( - "kubernetes:scheduling.k8s.io/v1alpha1:PriorityClassList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PriorityClassList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PriorityClassList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py old mode 100755 new mode 100644 index bebd6f5f8c..dd8f584cce --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .PriorityClass import (PriorityClass) -from .PriorityClassList import (PriorityClassList) +from .priority_class import * +from .priority_class_list import * diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py new file mode 100644 index 0000000000..b4d2158e09 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py @@ -0,0 +1,204 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityClass(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + description: pulumi.Output[str] + """ + description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """ + global_default: pulumi.Output[bool] + """ + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + preemption_policy: pulumi.Output[str] + """ + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + """ + value: pulumi.Output[float] + """ + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, __props__=None, __name__=None, __opts__=None): + """ + DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this priority class should be used. + :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + :param pulumi.Input[float] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['description'] = description + __props__['global_default'] = global_default + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['preemption_policy'] = preemption_policy + if value is None: + raise TypeError("Missing required property 'value'") + __props__['value'] = value + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1:PriorityClass"), pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1beta1:PriorityClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(PriorityClass, __self__).__init__( + 'kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py new file mode 100644 index 0000000000..de26bd725f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py @@ -0,0 +1,215 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of PriorityClasses + * `api_version` (`str`) - 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 + * `description` (`str`) - description is an arbitrary string that usually provides guidelines on when this priority class should be used. + * `global_default` (`bool`) - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `value` (`float`) - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PriorityClassList is a collection of priority classes. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of PriorityClasses + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `description` (`pulumi.Input[str]`) - description is an arbitrary string that usually provides guidelines on when this priority class should be used. + * `global_default` (`pulumi.Input[bool]`) - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `value` (`pulumi.Input[float]`) - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(PriorityClassList, __self__).__init__( + 'kubernetes:scheduling.k8s.io/v1alpha1:PriorityClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py deleted file mode 100755 index bfe35fd90b..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +++ /dev/null @@ -1,156 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PriorityClass(pulumi.CustomResource): - """ - DEPRECATED - This group version of PriorityClass is deprecated by - scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to - the priority integer value. The value can be any valid integer. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - description: pulumi.Output[str] - """ - description is an arbitrary string that usually provides guidelines on when this priority class - should be used. - """ - - global_default: pulumi.Output[bool] - """ - globalDefault specifies whether this PriorityClass should be considered as the default priority - for pods that do not have any priority class. Only one PriorityClass can be marked as - `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` - field set to true, the smallest value of such global default PriorityClasses will be used as the - default priority. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - preemption_policy: pulumi.Output[str] - """ - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, - PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and - is only honored by servers that enable the NonPreemptingPriority feature. - """ - - value: pulumi.Output[int] - """ - The value of this priority class. This is the actual priority that pods receive when they have - the name of this class in their pod spec. - """ - - def __init__(self, resource_name, opts=None, value=None, description=None, global_default=None, metadata=None, preemption_policy=None, __name__=None, __opts__=None): - """ - Create a PriorityClass resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[int] value: The value of this priority class. This is the actual priority that pods receive when - they have the name of this class in their pod spec. - :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this - priority class should be used. - :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the - default priority for pods that do not have any priority class. Only one PriorityClass - can be marked as `globalDefault`. However, if more than one PriorityClasses exists - with their `globalDefault` field set to true, the smallest value of such global - default PriorityClasses will be used as the default priority. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, - PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is - alpha-level and is only honored by servers that enable the NonPreemptingPriority - feature. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'scheduling.k8s.io/v1beta1' - __props__['kind'] = 'PriorityClass' - if value is None: - raise TypeError('Missing required property value') - __props__['value'] = value - __props__['description'] = description - __props__['globalDefault'] = global_default - __props__['metadata'] = metadata - __props__['preemptionPolicy'] = preemption_policy - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1:PriorityClass"), - pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(PriorityClass, self).__init__( - "kubernetes:scheduling.k8s.io/v1beta1:PriorityClass", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PriorityClass` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PriorityClass(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py deleted file mode 100755 index c917d47ee9..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PriorityClassList(pulumi.CustomResource): - """ - PriorityClassList is a collection of priority classes. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is the list of PriorityClasses - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a PriorityClassList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is the list of PriorityClasses - :param pulumi.Input[dict] metadata: Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'scheduling.k8s.io/v1beta1' - __props__['kind'] = 'PriorityClassList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PriorityClassList, self).__init__( - "kubernetes:scheduling.k8s.io/v1beta1:PriorityClassList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PriorityClassList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PriorityClassList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py old mode 100755 new mode 100644 index bebd6f5f8c..dd8f584cce --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .PriorityClass import (PriorityClass) -from .PriorityClassList import (PriorityClassList) +from .priority_class import * +from .priority_class_list import * diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py new file mode 100644 index 0000000000..b35a7ea8fc --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py @@ -0,0 +1,204 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityClass(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + description: pulumi.Output[str] + """ + description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """ + global_default: pulumi.Output[bool] + """ + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + preemption_policy: pulumi.Output[str] + """ + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + """ + value: pulumi.Output[float] + """ + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, __props__=None, __name__=None, __opts__=None): + """ + DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this priority class should be used. + :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + :param pulumi.Input[float] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['description'] = description + __props__['global_default'] = global_default + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['preemption_policy'] = preemption_policy + if value is None: + raise TypeError("Missing required property 'value'") + __props__['value'] = value + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1:PriorityClass"), pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(PriorityClass, __self__).__init__( + 'kubernetes:scheduling.k8s.io/v1beta1:PriorityClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py new file mode 100644 index 0000000000..08a651e343 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py @@ -0,0 +1,215 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of PriorityClasses + * `api_version` (`str`) - 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 + * `description` (`str`) - description is an arbitrary string that usually provides guidelines on when this priority class should be used. + * `global_default` (`bool`) - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `value` (`float`) - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PriorityClassList is a collection of priority classes. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of PriorityClasses + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `description` (`pulumi.Input[str]`) - description is an arbitrary string that usually provides guidelines on when this priority class should be used. + * `global_default` (`pulumi.Input[bool]`) - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * `value` (`pulumi.Input[float]`) - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(PriorityClassList, __self__).__init__( + 'kubernetes:scheduling.k8s.io/v1beta1:PriorityClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/settings/__init__.py b/sdk/python/pulumi_kubernetes/settings/__init__.py old mode 100755 new mode 100644 index 0dad491f98..d688fb9289 --- a/sdk/python/pulumi_kubernetes/settings/__init__.py +++ b/sdk/python/pulumi_kubernetes/settings/__init__.py @@ -1,8 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1alpha1", -] +__all__ = ['v1alpha1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py deleted file mode 100755 index ca9b597f83..0000000000 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py +++ /dev/null @@ -1,102 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PodPreset(pulumi.CustomResource): - """ - PodPreset is a policy resource that defines additional runtime requirements for a Pod. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - - - spec: pulumi.Output[dict] - - - def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__=None, __opts__=None): - """ - Create a PodPreset resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] metadata: - :param pulumi.Input[dict] spec: - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'settings.k8s.io/v1alpha1' - __props__['kind'] = 'PodPreset' - __props__['metadata'] = metadata - __props__['spec'] = spec - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PodPreset, self).__init__( - "kubernetes:settings.k8s.io/v1alpha1:PodPreset", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PodPreset` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PodPreset(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py deleted file mode 100755 index 9977b6e20a..0000000000 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class PodPresetList(pulumi.CustomResource): - """ - PodPresetList is a list of PodPreset objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a PodPresetList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is a list of schema objects. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'settings.k8s.io/v1alpha1' - __props__['kind'] = 'PodPresetList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(PodPresetList, self).__init__( - "kubernetes:settings.k8s.io/v1alpha1:PodPresetList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `PodPresetList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return PodPresetList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py old mode 100755 new mode 100644 index ee086de2cc..a658b6b1cf --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .PodPreset import (PodPreset) -from .PodPresetList import (PodPresetList) +from .pod_preset import * +from .pod_preset_list import * diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py new file mode 100644 index 0000000000..a486d678a4 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py @@ -0,0 +1,384 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodPreset(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PodPreset is a policy resource that defines additional runtime requirements for a Pod. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `env` (`pulumi.Input[list]`) - Env defines the collection of EnvVar to inject into containers. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - EnvFrom defines the collection of EnvFromSource to inject into containers. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `selector` (`pulumi.Input[dict]`) - Selector is a label query over a set of resources, in this case pods. Required. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `volume_mounts` (`pulumi.Input[list]`) - VolumeMounts defines the collection of VolumeMount to inject into containers. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `volumes` (`pulumi.Input[list]`) - Volumes defines the collection of Volume to inject into the pod. + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['spec'] = spec + super(PodPreset, __self__).__init__( + 'kubernetes:settings.k8s.io/v1alpha1:PodPreset', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodPreset resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodPreset(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py new file mode 100644 index 0000000000..7663a7d5d3 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py @@ -0,0 +1,715 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodPresetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) + * `env` (`list`) - Env defines the collection of EnvVar to inject into containers. + * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. + * `key` (`str`) - The key to select. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`dict`) - 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. + * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`str`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`str`) - Container name: required for volumes, optional for env vars + * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`str`) - Required: resource to select + + * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace + * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `env_from` (`list`) - EnvFrom defines the collection of EnvFromSource to inject into containers. + * `configMapRef` (`dict`) - The ConfigMap to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap must be defined + + * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`dict`) - The Secret to select from + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret must be defined + + * `selector` (`dict`) - Selector is a label query over a set of resources, in this case pods. Required. + * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`str`) - key is the label key that the selector applies to. + * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `volume_mounts` (`list`) - VolumeMounts defines the collection of VolumeMount to inject into containers. + * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`str`) - This must match the Name of a Volume. + * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `volumes` (`list`) - Volumes defines the collection of Volume to inject into the pod. + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`str`) - Share Name + + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`str`) - The key to project. + * `mode` (`float`) - 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. + * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`float`) - 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. + * `items` (`list`) - Items is a list of downward API volume file + * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`float`) - 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. + * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`str`) - Repository URL + * `revision` (`str`) - Commit hash for the specified revision. + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`float`) - 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. + * `sources` (`list`) - list of volume projections + * `config_map` (`dict`) - information about the configMap data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`dict`) - information about the downwardAPI data to project + * `items` (`list`) - Items is a list of DownwardAPIVolume file + + * `secret` (`dict`) - information about the secret data to project + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`bool`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project + * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`float`) - 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. + * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`bool`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PodPresetList is a list of PodPreset objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) + * `env` (`pulumi.Input[list]`) - Env defines the collection of EnvVar to inject into containers. + * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. + * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". + * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. + * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. + * `key` (`pulumi.Input[str]`) - The key to select. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined + + * `fieldRef` (`pulumi.Input[dict]`) - 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. + * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". + * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. + + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars + * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" + * `resource` (`pulumi.Input[str]`) - Required: resource to select + + * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace + * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `env_from` (`pulumi.Input[list]`) - EnvFrom defines the collection of EnvFromSource to inject into containers. + * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined + + * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined + + * `selector` (`pulumi.Input[dict]`) - Selector is a label query over a set of resources, in this case pods. Required. + * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. + * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. + + * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + + * `volume_mounts` (`pulumi.Input[list]`) - VolumeMounts defines the collection of VolumeMount to inject into containers. + * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. + * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. + * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). + * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + + * `volumes` (`pulumi.Input[list]`) - Volumes defines the collection of Volume to inject into the pod. + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `key` (`pulumi.Input[str]`) - The key to project. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. + + * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file + * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * `mode` (`pulumi.Input[float]`) - 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. + * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + + * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. + * `repository` (`pulumi.Input[str]`) - Repository URL + * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. + + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `sources` (`pulumi.Input[list]`) - list of volume projections + * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined + + * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project + * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file + + * `secret` (`pulumi.Input[dict]`) - information about the secret data to project + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined + + * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project + * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. + * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. + * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * `defaultMode` (`pulumi.Input[float]`) - 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. + * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined + * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(PodPresetList, __self__).__init__( + 'kubernetes:settings.k8s.io/v1alpha1:PodPresetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodPresetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodPresetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/__init__.py b/sdk/python/pulumi_kubernetes/storage/__init__.py old mode 100755 new mode 100644 index e99e4ef1e3..1f87cd7749 --- a/sdk/python/pulumi_kubernetes/storage/__init__.py +++ b/sdk/python/pulumi_kubernetes/storage/__init__.py @@ -1,10 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v1", - "v1alpha1", - "v1beta1", -] +__all__ = ['v1', 'v1alpha1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py deleted file mode 100755 index 86a5486baf..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py +++ /dev/null @@ -1,125 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CSIDriver(pulumi.CustomResource): - """ - CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed - on the cluster. Kubernetes attach detach controller uses this object to determine whether attach - is required. Kubelet uses this object to determine whether pod information needs to be passed on - mount. CSIDriver objects are non-namespaced. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object - refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. - The driver name must be 63 characters or less, beginning and ending with an alphanumeric - character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the CSI Driver. - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CSIDriver resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Specification of the CSI Driver. - :param pulumi.Input[dict] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that - this object refers to; it MUST be the same name returned by the CSI GetPluginName() - call for that driver. The driver name must be 63 characters or less, beginning and - ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and - alphanumerics between. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1' - __props__['kind'] = 'CSIDriver' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:CSIDriver"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(CSIDriver, self).__init__( - "kubernetes:storage.k8s.io/v1:CSIDriver", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CSIDriver` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CSIDriver(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py deleted file mode 100755 index d7fc236186..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CSIDriverList(pulumi.CustomResource): - """ - CSIDriverList is a collection of CSIDriver objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is the list of CSIDriver - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CSIDriverList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is the list of CSIDriver - :param pulumi.Input[dict] metadata: Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1' - __props__['kind'] = 'CSIDriverList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(CSIDriverList, self).__init__( - "kubernetes:storage.k8s.io/v1:CSIDriverList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CSIDriverList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CSIDriverList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py deleted file mode 100755 index c907880099..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py +++ /dev/null @@ -1,119 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CSINode(pulumi.CustomResource): - """ - CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to - create the CSINode object directly. As long as they use the node-driver-registrar sidecar - container, the kubelet will automatically populate the CSINode object for the CSI driver as part - of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, - it means either there are no CSI Drivers available on the node, or the Kubelet version is low - enough that it doesn't create this object. CSINode has an OwnerReference that points to the - corresponding node object. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - metadata.name must be the Kubernetes node name. - """ - - spec: pulumi.Output[dict] - """ - spec is the specification of CSINode - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CSINode resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: spec is the specification of CSINode - :param pulumi.Input[dict] metadata: metadata.name must be the Kubernetes node name. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1' - __props__['kind'] = 'CSINode' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:CSINode"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(CSINode, self).__init__( - "kubernetes:storage.k8s.io/v1:CSINode", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CSINode` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CSINode(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py deleted file mode 100755 index 27388c073a..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CSINodeList(pulumi.CustomResource): - """ - CSINodeList is a collection of CSINode objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is the list of CSINode - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CSINodeList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is the list of CSINode - :param pulumi.Input[dict] metadata: Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1' - __props__['kind'] = 'CSINodeList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(CSINodeList, self).__init__( - "kubernetes:storage.k8s.io/v1:CSINodeList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CSINodeList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CSINodeList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py deleted file mode 100755 index 0ba13dd26d..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py +++ /dev/null @@ -1,179 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class StorageClass(pulumi.CustomResource): - """ - StorageClass describes the parameters for a class of storage for which PersistentVolumes can be - dynamically provisioned. - - StorageClasses are non-namespaced; the name of the storage class according to etcd is in - ObjectMeta.Name. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - allow_volume_expansion: pulumi.Output[bool] - """ - AllowVolumeExpansion shows whether the storage class allow volume expand - """ - - allowed_topologies: pulumi.Output[list] - """ - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin - defines its own supported topology specifications. An empty TopologySelectorTerm list means - there is no topology restriction. This field is only honored by servers that enable the - VolumeScheduling feature. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - mount_options: pulumi.Output[list] - """ - Dynamically provisioned PersistentVolumes of this storage class are created with these - mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is - invalid. - """ - - parameters: pulumi.Output[dict] - """ - Parameters holds the parameters for the provisioner that should create volumes of this storage - class. - """ - - provisioner: pulumi.Output[str] - """ - Provisioner indicates the type of the provisioner. - """ - - reclaim_policy: pulumi.Output[str] - """ - Dynamically provisioned PersistentVolumes of this storage class are created with this - reclaimPolicy. Defaults to Delete. - """ - - volume_binding_mode: pulumi.Output[str] - """ - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When - unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the - VolumeScheduling feature. - """ - - def __init__(self, resource_name, opts=None, provisioner=None, allow_volume_expansion=None, allowed_topologies=None, metadata=None, mount_options=None, parameters=None, reclaim_policy=None, volume_binding_mode=None, __name__=None, __opts__=None): - """ - Create a StorageClass resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[str] provisioner: Provisioner indicates the type of the provisioner. - :param pulumi.Input[bool] allow_volume_expansion: AllowVolumeExpansion shows whether the storage class allow volume expand - :param pulumi.Input[list] allowed_topologies: Restrict the node topologies where volumes can be dynamically provisioned. Each - volume plugin defines its own supported topology specifications. An empty - TopologySelectorTerm list means there is no topology restriction. This field is only - honored by servers that enable the VolumeScheduling feature. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[list] mount_options: Dynamically provisioned PersistentVolumes of this storage class are created with - these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply - fail if one is invalid. - :param pulumi.Input[dict] parameters: Parameters holds the parameters for the provisioner that should create volumes of - this storage class. - :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this - reclaimPolicy. Defaults to Delete. - :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and - bound. When unset, VolumeBindingImmediate is used. This field is only honored by - servers that enable the VolumeScheduling feature. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1' - __props__['kind'] = 'StorageClass' - if provisioner is None: - raise TypeError('Missing required property provisioner') - __props__['provisioner'] = provisioner - __props__['allowVolumeExpansion'] = allow_volume_expansion - __props__['allowedTopologies'] = allowed_topologies - __props__['metadata'] = metadata - __props__['mountOptions'] = mount_options - __props__['parameters'] = parameters - __props__['reclaimPolicy'] = reclaim_policy - __props__['volumeBindingMode'] = volume_binding_mode - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:StorageClass"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(StorageClass, self).__init__( - "kubernetes:storage.k8s.io/v1:StorageClass", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `StorageClass` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return StorageClass(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py deleted file mode 100755 index 309e9a79af..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class StorageClassList(pulumi.CustomResource): - """ - StorageClassList is a collection of storage classes. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of StorageClasses - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a StorageClassList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of StorageClasses - :param pulumi.Input[dict] metadata: Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1' - __props__['kind'] = 'StorageClassList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(StorageClassList, self).__init__( - "kubernetes:storage.k8s.io/v1:StorageClassList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `StorageClassList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return StorageClassList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py deleted file mode 100755 index 61800bc921..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py +++ /dev/null @@ -1,126 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class VolumeAttachment(pulumi.CustomResource): - """ - VolumeAttachment captures the intent to attach or detach the specified volume to/from the - specified node. - - VolumeAttachment objects are non-namespaced. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - """ - - status: pulumi.Output[dict] - """ - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach - operation, i.e. the external-attacher. - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a VolumeAttachment resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the - Kubernetes system. - :param pulumi.Input[dict] metadata: Standard object metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1' - __props__['kind'] = 'VolumeAttachment' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment"), - pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:VolumeAttachment"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(VolumeAttachment, self).__init__( - "kubernetes:storage.k8s.io/v1:VolumeAttachment", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `VolumeAttachment` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return VolumeAttachment(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py deleted file mode 100755 index 96380cf30c..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class VolumeAttachmentList(pulumi.CustomResource): - """ - VolumeAttachmentList is a collection of VolumeAttachment objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of VolumeAttachments - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a VolumeAttachmentList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of VolumeAttachments - :param pulumi.Input[dict] metadata: Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1' - __props__['kind'] = 'VolumeAttachmentList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(VolumeAttachmentList, self).__init__( - "kubernetes:storage.k8s.io/v1:VolumeAttachmentList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `VolumeAttachmentList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return VolumeAttachmentList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/__init__.py b/sdk/python/pulumi_kubernetes/storage/v1/__init__.py old mode 100755 new mode 100644 index ad017f4547..db2bfa6b9d --- a/sdk/python/pulumi_kubernetes/storage/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/__init__.py @@ -1,13 +1,13 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .CSIDriver import (CSIDriver) -from .CSIDriverList import (CSIDriverList) -from .CSINode import (CSINode) -from .CSINodeList import (CSINodeList) -from .StorageClass import (StorageClass) -from .StorageClassList import (StorageClassList) -from .VolumeAttachment import (VolumeAttachment) -from .VolumeAttachmentList import (VolumeAttachmentList) +from .csi_driver import * +from .csi_driver_list import * +from .csi_node import * +from .csi_node_list import * +from .storage_class import * +from .storage_class_list import * +from .volume_attachment import * +from .volume_attachment_list import * diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py new file mode 100644 index 0000000000..bd73818819 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py @@ -0,0 +1,201 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSIDriver(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the CSI Driver. + * `attach_required` (`bool`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + * `pod_info_on_mount` (`bool`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume + defined by a CSIVolumeSource, otherwise "false" + + "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. + * `volume_lifecycle_modes` (`list`) - volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the CSI Driver. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `attach_required` (`pulumi.Input[bool]`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + * `pod_info_on_mount` (`pulumi.Input[bool]`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume + defined by a CSIVolumeSource, otherwise "false" + + "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. + * `volume_lifecycle_modes` (`pulumi.Input[list]`) - volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:CSIDriver")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CSIDriver, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:CSIDriver', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSIDriver resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSIDriver(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py new file mode 100644 index 0000000000..0e93784254 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py @@ -0,0 +1,221 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSIDriverList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of CSIDriver + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the CSI Driver. + * `attach_required` (`bool`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + * `pod_info_on_mount` (`bool`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume + defined by a CSIVolumeSource, otherwise "false" + + "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. + * `volume_lifecycle_modes` (`list`) - volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CSIDriverList is a collection of CSIDriver objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of CSIDriver + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the CSI Driver. + * `attach_required` (`pulumi.Input[bool]`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + * `pod_info_on_mount` (`pulumi.Input[bool]`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume + defined by a CSIVolumeSource, otherwise "false" + + "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. + * `volume_lifecycle_modes` (`pulumi.Input[list]`) - volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(CSIDriverList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:CSIDriverList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSIDriverList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSIDriverList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py new file mode 100644 index 0000000000..1626363685 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py @@ -0,0 +1,203 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSINode(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + metadata.name must be the Kubernetes node name. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + spec is the specification of CSINode + * `drivers` (`list`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + * `allocatable` (`dict`) - allocatable represents the volume resources of a node that are available for scheduling. This field is beta. + * `count` (`float`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. + + * `name` (`str`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + * `nodeID` (`str`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. + * `topology_keys` (`list`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: metadata.name must be the Kubernetes node name. + :param pulumi.Input[dict] spec: spec is the specification of CSINode + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `drivers` (`pulumi.Input[list]`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + * `allocatable` (`pulumi.Input[dict]`) - allocatable represents the volume resources of a node that are available for scheduling. This field is beta. + * `count` (`pulumi.Input[float]`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. + + * `name` (`pulumi.Input[str]`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + * `nodeID` (`pulumi.Input[str]`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. + * `topology_keys` (`pulumi.Input[list]`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:CSINode")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CSINode, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:CSINode', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSINode resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSINode(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py new file mode 100644 index 0000000000..9e945efe26 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py @@ -0,0 +1,223 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSINodeList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of CSINode + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - metadata.name must be the Kubernetes node name. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - spec is the specification of CSINode + * `drivers` (`list`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + * `allocatable` (`dict`) - allocatable represents the volume resources of a node that are available for scheduling. This field is beta. + * `count` (`float`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. + + * `name` (`str`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + * `nodeID` (`str`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. + * `topology_keys` (`list`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CSINodeList is a collection of CSINode objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of CSINode + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - metadata.name must be the Kubernetes node name. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - spec is the specification of CSINode + * `drivers` (`pulumi.Input[list]`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + * `allocatable` (`pulumi.Input[dict]`) - allocatable represents the volume resources of a node that are available for scheduling. This field is beta. + * `count` (`pulumi.Input[float]`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. + + * `name` (`pulumi.Input[str]`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + * `nodeID` (`pulumi.Input[str]`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. + * `topology_keys` (`pulumi.Input[list]`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(CSINodeList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:CSINodeList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSINodeList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSINodeList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py b/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py new file mode 100644 index 0000000000..40f6aedd8a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py @@ -0,0 +1,233 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StorageClass(pulumi.CustomResource): + allow_volume_expansion: pulumi.Output[bool] + """ + AllowVolumeExpansion shows whether the storage class allow volume expand + """ + allowed_topologies: pulumi.Output[list] + """ + Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + * `matchLabelExpressions` (`list`) - A list of topology selector requirements by labels. + * `key` (`str`) - The label key that the selector applies to. + * `values` (`list`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + mount_options: pulumi.Output[list] + """ + Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + """ + parameters: pulumi.Output[dict] + """ + Parameters holds the parameters for the provisioner that should create volumes of this storage class. + """ + provisioner: pulumi.Output[str] + """ + Provisioner indicates the type of the provisioner. + """ + reclaim_policy: pulumi.Output[str] + """ + Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + """ + volume_binding_mode: pulumi.Output[str] + """ + VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """ + def __init__(__self__, resource_name, opts=None, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None, __props__=None, __name__=None, __opts__=None): + """ + StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. + + StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[bool] allow_volume_expansion: AllowVolumeExpansion shows whether the storage class allow volume expand + :param pulumi.Input[list] allowed_topologies: Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[list] mount_options: Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + :param pulumi.Input[dict] parameters: Parameters holds the parameters for the provisioner that should create volumes of this storage class. + :param pulumi.Input[str] provisioner: Provisioner indicates the type of the provisioner. + :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + + The **allowed_topologies** object supports the following: + + * `matchLabelExpressions` (`pulumi.Input[list]`) - A list of topology selector requirements by labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `values` (`pulumi.Input[list]`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['allow_volume_expansion'] = allow_volume_expansion + __props__['allowed_topologies'] = allowed_topologies + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['mount_options'] = mount_options + __props__['parameters'] = parameters + if provisioner is None: + raise TypeError("Missing required property 'provisioner'") + __props__['provisioner'] = provisioner + __props__['reclaim_policy'] = reclaim_policy + __props__['volume_binding_mode'] = volume_binding_mode + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:StorageClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(StorageClass, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:StorageClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StorageClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StorageClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py b/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py new file mode 100644 index 0000000000..4c5c7ee1f8 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py @@ -0,0 +1,229 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StorageClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of StorageClasses + * `allow_volume_expansion` (`bool`) - AllowVolumeExpansion shows whether the storage class allow volume expand + * `allowed_topologies` (`list`) - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + * `matchLabelExpressions` (`list`) - A list of topology selector requirements by labels. + * `key` (`str`) - The label key that the selector applies to. + * `values` (`list`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `mount_options` (`list`) - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + * `parameters` (`dict`) - Parameters holds the parameters for the provisioner that should create volumes of this storage class. + * `provisioner` (`str`) - Provisioner indicates the type of the provisioner. + * `reclaim_policy` (`str`) - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + * `volume_binding_mode` (`str`) - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + StorageClassList is a collection of storage classes. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of StorageClasses + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `allow_volume_expansion` (`pulumi.Input[bool]`) - AllowVolumeExpansion shows whether the storage class allow volume expand + * `allowed_topologies` (`pulumi.Input[list]`) - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + * `matchLabelExpressions` (`pulumi.Input[list]`) - A list of topology selector requirements by labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `values` (`pulumi.Input[list]`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `mount_options` (`pulumi.Input[list]`) - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + * `parameters` (`pulumi.Input[dict]`) - Parameters holds the parameters for the provisioner that should create volumes of this storage class. + * `provisioner` (`pulumi.Input[str]`) - Provisioner indicates the type of the provisioner. + * `reclaim_policy` (`pulumi.Input[str]`) - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + * `volume_binding_mode` (`pulumi.Input[str]`) - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(StorageClassList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:StorageClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StorageClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StorageClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py new file mode 100644 index 0000000000..fb9ca5aa1f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py @@ -0,0 +1,575 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class VolumeAttachment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * `attacher` (`str`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * `node_name` (`str`) - The node that the volume should be attached to. + * `source` (`dict`) - Source represents the volume that should be attached. + * `inline_volume_spec` (`dict`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. + * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`str`) - Share Name + + * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`str`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`dict`) - Attributes of the volume to publish. + * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`dict`) - Local represents directly-attached storage with node affinity + * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`dict`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `persistent_volume_name` (`str`) - Name of the persistent volume to attach. + """ + status: pulumi.Output[dict] + """ + Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + * `attach_error` (`dict`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `message` (`str`) - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. + * `time` (`str`) - Time the error was encountered. + + * `attached` (`bool`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `attachment_metadata` (`dict`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `detach_error` (`dict`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + + VolumeAttachment objects are non-namespaced. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `attacher` (`pulumi.Input[str]`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * `node_name` (`pulumi.Input[str]`) - The node that the volume should be attached to. + * `source` (`pulumi.Input[dict]`) - Source represents the volume that should be attached. + * `inline_volume_spec` (`pulumi.Input[dict]`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. + * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `persistent_volume_name` (`pulumi.Input[str]`) - Name of the persistent volume to attach. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment"), pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:VolumeAttachment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(VolumeAttachment, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:VolumeAttachment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing VolumeAttachment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return VolumeAttachment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py new file mode 100644 index 0000000000..8c77e2f9f3 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py @@ -0,0 +1,599 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class VolumeAttachmentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of VolumeAttachments + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * `attacher` (`str`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * `node_name` (`str`) - The node that the volume should be attached to. + * `source` (`dict`) - Source represents the volume that should be attached. + * `inline_volume_spec` (`dict`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. + * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`str`) - Share Name + + * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`str`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`dict`) - Attributes of the volume to publish. + * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`dict`) - Local represents directly-attached storage with node affinity + * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`dict`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `persistent_volume_name` (`str`) - Name of the persistent volume to attach. + + * `status` (`dict`) - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + * `attach_error` (`dict`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `message` (`str`) - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. + * `time` (`str`) - Time the error was encountered. + + * `attached` (`bool`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `attachment_metadata` (`dict`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `detach_error` (`dict`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + VolumeAttachmentList is a collection of VolumeAttachment objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of VolumeAttachments + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * `attacher` (`pulumi.Input[str]`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * `node_name` (`pulumi.Input[str]`) - The node that the volume should be attached to. + * `source` (`pulumi.Input[dict]`) - Source represents the volume that should be attached. + * `inline_volume_spec` (`pulumi.Input[dict]`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. + * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `persistent_volume_name` (`pulumi.Input[str]`) - Name of the persistent volume to attach. + + * `status` (`pulumi.Input[dict]`) - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + * `attach_error` (`pulumi.Input[dict]`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `message` (`pulumi.Input[str]`) - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. + * `time` (`pulumi.Input[str]`) - Time the error was encountered. + + * `attached` (`pulumi.Input[bool]`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `attachment_metadata` (`pulumi.Input[dict]`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `detach_error` (`pulumi.Input[dict]`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(VolumeAttachmentList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:VolumeAttachmentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing VolumeAttachmentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return VolumeAttachmentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py deleted file mode 100755 index a4c7b54e95..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +++ /dev/null @@ -1,126 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class VolumeAttachment(pulumi.CustomResource): - """ - VolumeAttachment captures the intent to attach or detach the specified volume to/from the - specified node. - - VolumeAttachment objects are non-namespaced. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - """ - - status: pulumi.Output[dict] - """ - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach - operation, i.e. the external-attacher. - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a VolumeAttachment resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the - Kubernetes system. - :param pulumi.Input[dict] metadata: Standard object metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1alpha1' - __props__['kind'] = 'VolumeAttachment' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:VolumeAttachment"), - pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:VolumeAttachment"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(VolumeAttachment, self).__init__( - "kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `VolumeAttachment` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return VolumeAttachment(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py deleted file mode 100755 index a46e79d35c..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class VolumeAttachmentList(pulumi.CustomResource): - """ - VolumeAttachmentList is a collection of VolumeAttachment objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of VolumeAttachments - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a VolumeAttachmentList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of VolumeAttachments - :param pulumi.Input[dict] metadata: Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1alpha1' - __props__['kind'] = 'VolumeAttachmentList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(VolumeAttachmentList, self).__init__( - "kubernetes:storage.k8s.io/v1alpha1:VolumeAttachmentList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `VolumeAttachmentList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return VolumeAttachmentList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py old mode 100755 new mode 100644 index 46b46b1368..89b18aabba --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .VolumeAttachment import (VolumeAttachment) -from .VolumeAttachmentList import (VolumeAttachmentList) +from .volume_attachment import * +from .volume_attachment_list import * diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py new file mode 100644 index 0000000000..69f88ba96d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py @@ -0,0 +1,575 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class VolumeAttachment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * `attacher` (`str`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * `node_name` (`str`) - The node that the volume should be attached to. + * `source` (`dict`) - Source represents the volume that should be attached. + * `inline_volume_spec` (`dict`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. + * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`str`) - Share Name + + * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`str`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`dict`) - Attributes of the volume to publish. + * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`dict`) - Local represents directly-attached storage with node affinity + * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`dict`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `persistent_volume_name` (`str`) - Name of the persistent volume to attach. + """ + status: pulumi.Output[dict] + """ + Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + * `attach_error` (`dict`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `message` (`str`) - String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information. + * `time` (`str`) - Time the error was encountered. + + * `attached` (`bool`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `attachment_metadata` (`dict`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `detach_error` (`dict`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + + VolumeAttachment objects are non-namespaced. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `attacher` (`pulumi.Input[str]`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * `node_name` (`pulumi.Input[str]`) - The node that the volume should be attached to. + * `source` (`pulumi.Input[dict]`) - Source represents the volume that should be attached. + * `inline_volume_spec` (`pulumi.Input[dict]`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. + * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `persistent_volume_name` (`pulumi.Input[str]`) - Name of the persistent volume to attach. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:VolumeAttachment"), pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:VolumeAttachment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(VolumeAttachment, __self__).__init__( + 'kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing VolumeAttachment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return VolumeAttachment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py new file mode 100644 index 0000000000..39074f591e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py @@ -0,0 +1,599 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class VolumeAttachmentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of VolumeAttachments + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * `attacher` (`str`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * `node_name` (`str`) - The node that the volume should be attached to. + * `source` (`dict`) - Source represents the volume that should be attached. + * `inline_volume_spec` (`dict`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. + * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`str`) - Share Name + + * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`str`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`dict`) - Attributes of the volume to publish. + * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`dict`) - Local represents directly-attached storage with node affinity + * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`dict`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `persistent_volume_name` (`str`) - Name of the persistent volume to attach. + + * `status` (`dict`) - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + * `attach_error` (`dict`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `message` (`str`) - String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information. + * `time` (`str`) - Time the error was encountered. + + * `attached` (`bool`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `attachment_metadata` (`dict`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `detach_error` (`dict`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + VolumeAttachmentList is a collection of VolumeAttachment objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of VolumeAttachments + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * `attacher` (`pulumi.Input[str]`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * `node_name` (`pulumi.Input[str]`) - The node that the volume should be attached to. + * `source` (`pulumi.Input[dict]`) - Source represents the volume that should be attached. + * `inline_volume_spec` (`pulumi.Input[dict]`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. + * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `persistent_volume_name` (`pulumi.Input[str]`) - Name of the persistent volume to attach. + + * `status` (`pulumi.Input[dict]`) - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + * `attach_error` (`pulumi.Input[dict]`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `message` (`pulumi.Input[str]`) - String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information. + * `time` (`pulumi.Input[str]`) - Time the error was encountered. + + * `attached` (`pulumi.Input[bool]`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `attachment_metadata` (`pulumi.Input[dict]`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `detach_error` (`pulumi.Input[dict]`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(VolumeAttachmentList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1alpha1:VolumeAttachmentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing VolumeAttachmentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return VolumeAttachmentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py deleted file mode 100755 index 814bc4858e..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py +++ /dev/null @@ -1,128 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CSIDriver(pulumi.CustomResource): - """ - CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed - on the cluster. CSI drivers do not need to create the CSIDriver object directly. Instead they - may use the cluster-driver-registrar sidecar container. When deployed with a CSI driver it - automatically creates a CSIDriver object representing the driver. Kubernetes attach detach - controller uses this object to determine whether attach is required. Kubelet uses this object to - determine whether pod information needs to be passed on mount. CSIDriver objects are - non-namespaced. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object - refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. - The driver name must be 63 characters or less, beginning and ending with an alphanumeric - character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the CSI Driver. - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CSIDriver resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Specification of the CSI Driver. - :param pulumi.Input[dict] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that - this object refers to; it MUST be the same name returned by the CSI GetPluginName() - call for that driver. The driver name must be 63 characters or less, beginning and - ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and - alphanumerics between. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1beta1' - __props__['kind'] = 'CSIDriver' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:CSIDriver"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(CSIDriver, self).__init__( - "kubernetes:storage.k8s.io/v1beta1:CSIDriver", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CSIDriver` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CSIDriver(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py deleted file mode 100755 index ceb5507aa2..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CSIDriverList(pulumi.CustomResource): - """ - CSIDriverList is a collection of CSIDriver objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is the list of CSIDriver - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CSIDriverList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is the list of CSIDriver - :param pulumi.Input[dict] metadata: Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1beta1' - __props__['kind'] = 'CSIDriverList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(CSIDriverList, self).__init__( - "kubernetes:storage.k8s.io/v1beta1:CSIDriverList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CSIDriverList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CSIDriverList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py deleted file mode 100755 index 68c35c7ab0..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py +++ /dev/null @@ -1,121 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CSINode(pulumi.CustomResource): - """ - DEPRECATED - storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode. - - CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to - create the CSINode object directly. As long as they use the node-driver-registrar sidecar - container, the kubelet will automatically populate the CSINode object for the CSI driver as part - of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, - it means either there are no CSI Drivers available on the node, or the Kubelet version is low - enough that it doesn't create this object. CSINode has an OwnerReference that points to the - corresponding node object. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - metadata.name must be the Kubernetes node name. - """ - - spec: pulumi.Output[dict] - """ - spec is the specification of CSINode - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CSINode resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: spec is the specification of CSINode - :param pulumi.Input[dict] metadata: metadata.name must be the Kubernetes node name. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1beta1' - __props__['kind'] = 'CSINode' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:CSINode"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(CSINode, self).__init__( - "kubernetes:storage.k8s.io/v1beta1:CSINode", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CSINode` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CSINode(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py deleted file mode 100755 index b6d3c86f02..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class CSINodeList(pulumi.CustomResource): - """ - CSINodeList is a collection of CSINode objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - items is the list of CSINode - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a CSINodeList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: items is the list of CSINode - :param pulumi.Input[dict] metadata: Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1beta1' - __props__['kind'] = 'CSINodeList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(CSINodeList, self).__init__( - "kubernetes:storage.k8s.io/v1beta1:CSINodeList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `CSINodeList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CSINodeList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py deleted file mode 100755 index 13ae9715d1..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py +++ /dev/null @@ -1,179 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class StorageClass(pulumi.CustomResource): - """ - StorageClass describes the parameters for a class of storage for which PersistentVolumes can be - dynamically provisioned. - - StorageClasses are non-namespaced; the name of the storage class according to etcd is in - ObjectMeta.Name. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - allow_volume_expansion: pulumi.Output[bool] - """ - AllowVolumeExpansion shows whether the storage class allow volume expand - """ - - allowed_topologies: pulumi.Output[list] - """ - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin - defines its own supported topology specifications. An empty TopologySelectorTerm list means - there is no topology restriction. This field is only honored by servers that enable the - VolumeScheduling feature. - """ - - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - mount_options: pulumi.Output[list] - """ - Dynamically provisioned PersistentVolumes of this storage class are created with these - mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is - invalid. - """ - - parameters: pulumi.Output[dict] - """ - Parameters holds the parameters for the provisioner that should create volumes of this storage - class. - """ - - provisioner: pulumi.Output[str] - """ - Provisioner indicates the type of the provisioner. - """ - - reclaim_policy: pulumi.Output[str] - """ - Dynamically provisioned PersistentVolumes of this storage class are created with this - reclaimPolicy. Defaults to Delete. - """ - - volume_binding_mode: pulumi.Output[str] - """ - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When - unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the - VolumeScheduling feature. - """ - - def __init__(self, resource_name, opts=None, provisioner=None, allow_volume_expansion=None, allowed_topologies=None, metadata=None, mount_options=None, parameters=None, reclaim_policy=None, volume_binding_mode=None, __name__=None, __opts__=None): - """ - Create a StorageClass resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[str] provisioner: Provisioner indicates the type of the provisioner. - :param pulumi.Input[bool] allow_volume_expansion: AllowVolumeExpansion shows whether the storage class allow volume expand - :param pulumi.Input[list] allowed_topologies: Restrict the node topologies where volumes can be dynamically provisioned. Each - volume plugin defines its own supported topology specifications. An empty - TopologySelectorTerm list means there is no topology restriction. This field is only - honored by servers that enable the VolumeScheduling feature. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[list] mount_options: Dynamically provisioned PersistentVolumes of this storage class are created with - these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply - fail if one is invalid. - :param pulumi.Input[dict] parameters: Parameters holds the parameters for the provisioner that should create volumes of - this storage class. - :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this - reclaimPolicy. Defaults to Delete. - :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and - bound. When unset, VolumeBindingImmediate is used. This field is only honored by - servers that enable the VolumeScheduling feature. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1beta1' - __props__['kind'] = 'StorageClass' - if provisioner is None: - raise TypeError('Missing required property provisioner') - __props__['provisioner'] = provisioner - __props__['allowVolumeExpansion'] = allow_volume_expansion - __props__['allowedTopologies'] = allowed_topologies - __props__['metadata'] = metadata - __props__['mountOptions'] = mount_options - __props__['parameters'] = parameters - __props__['reclaimPolicy'] = reclaim_policy - __props__['volumeBindingMode'] = volume_binding_mode - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:StorageClass"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(StorageClass, self).__init__( - "kubernetes:storage.k8s.io/v1beta1:StorageClass", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `StorageClass` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return StorageClass(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py deleted file mode 100755 index e69affab1a..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class StorageClassList(pulumi.CustomResource): - """ - StorageClassList is a collection of storage classes. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of StorageClasses - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a StorageClassList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of StorageClasses - :param pulumi.Input[dict] metadata: Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1beta1' - __props__['kind'] = 'StorageClassList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(StorageClassList, self).__init__( - "kubernetes:storage.k8s.io/v1beta1:StorageClassList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `StorageClassList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return StorageClassList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py deleted file mode 100755 index bab3dcb70f..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +++ /dev/null @@ -1,126 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class VolumeAttachment(pulumi.CustomResource): - """ - VolumeAttachment captures the intent to attach or detach the specified volume to/from the - specified node. - - VolumeAttachment objects are non-namespaced. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - metadata: pulumi.Output[dict] - """ - Standard object metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - spec: pulumi.Output[dict] - """ - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - """ - - status: pulumi.Output[dict] - """ - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach - operation, i.e. the external-attacher. - """ - - def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__=None, __opts__=None): - """ - Create a VolumeAttachment resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the - Kubernetes system. - :param pulumi.Input[dict] metadata: Standard object metadata. More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1beta1' - __props__['kind'] = 'VolumeAttachment' - if spec is None: - raise TypeError('Missing required property spec') - __props__['spec'] = spec - __props__['metadata'] = metadata - - __props__['status'] = None - - parent = opts.parent if opts and opts.parent else None - aliases = [ - pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:VolumeAttachment"), - pulumi.Alias(type_="kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment"), - ] - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - aliases=aliases, - )) - - super(VolumeAttachment, self).__init__( - "kubernetes:storage.k8s.io/v1beta1:VolumeAttachment", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `VolumeAttachment` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return VolumeAttachment(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py deleted file mode 100755 index 2fc3ea7ad3..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +++ /dev/null @@ -1,110 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class VolumeAttachmentList(pulumi.CustomResource): - """ - VolumeAttachmentList is a collection of VolumeAttachment objects. - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - items: pulumi.Output[list] - """ - Items is the list of VolumeAttachments - """ - - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - - def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__=None, __opts__=None): - """ - Create a VolumeAttachmentList resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - :param pulumi.Input[list] items: Items is the list of VolumeAttachments - :param pulumi.Input[dict] metadata: Standard list metadata More info: - https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = 'storage.k8s.io/v1beta1' - __props__['kind'] = 'VolumeAttachmentList' - if items is None: - raise TypeError('Missing required property items') - __props__['items'] = items - __props__['metadata'] = metadata - - __props__['status'] = None - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - )) - - super(VolumeAttachmentList, self).__init__( - "kubernetes:storage.k8s.io/v1beta1:VolumeAttachmentList", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `VolumeAttachmentList` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return VolumeAttachmentList(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py old mode 100755 new mode 100644 index ad017f4547..db2bfa6b9d --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py @@ -1,13 +1,13 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .CSIDriver import (CSIDriver) -from .CSIDriverList import (CSIDriverList) -from .CSINode import (CSINode) -from .CSINodeList import (CSINodeList) -from .StorageClass import (StorageClass) -from .StorageClassList import (StorageClassList) -from .VolumeAttachment import (VolumeAttachment) -from .VolumeAttachmentList import (VolumeAttachmentList) +from .csi_driver import * +from .csi_driver_list import * +from .csi_node import * +from .csi_node_list import * +from .storage_class import * +from .storage_class_list import * +from .volume_attachment import * +from .volume_attachment_list import * diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py new file mode 100644 index 0000000000..d35bb772ec --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py @@ -0,0 +1,201 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSIDriver(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the CSI Driver. + * `attach_required` (`bool`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + * `pod_info_on_mount` (`bool`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume + defined by a CSIVolumeSource, otherwise "false" + + "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. + * `volume_lifecycle_modes` (`list`) - VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. CSI drivers do not need to create the CSIDriver object directly. Instead they may use the cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically creates a CSIDriver object representing the driver. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the CSI Driver. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `attach_required` (`pulumi.Input[bool]`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + * `pod_info_on_mount` (`pulumi.Input[bool]`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume + defined by a CSIVolumeSource, otherwise "false" + + "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. + * `volume_lifecycle_modes` (`pulumi.Input[list]`) - VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:CSIDriver")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CSIDriver, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:CSIDriver', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSIDriver resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSIDriver(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py new file mode 100644 index 0000000000..adc9830714 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py @@ -0,0 +1,221 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSIDriverList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of CSIDriver + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the CSI Driver. + * `attach_required` (`bool`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + * `pod_info_on_mount` (`bool`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume + defined by a CSIVolumeSource, otherwise "false" + + "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. + * `volume_lifecycle_modes` (`list`) - VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CSIDriverList is a collection of CSIDriver objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of CSIDriver + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the CSI Driver. + * `attach_required` (`pulumi.Input[bool]`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. + * `pod_info_on_mount` (`pulumi.Input[bool]`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume + defined by a CSIVolumeSource, otherwise "false" + + "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. + * `volume_lifecycle_modes` (`pulumi.Input[list]`) - VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(CSIDriverList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:CSIDriverList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSIDriverList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSIDriverList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py new file mode 100644 index 0000000000..41804f0247 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py @@ -0,0 +1,206 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.", DeprecationWarning) + +class CSINode(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + metadata.name must be the Kubernetes node name. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + spec is the specification of CSINode + * `drivers` (`list`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + * `allocatable` (`dict`) - allocatable represents the volume resources of a node that are available for scheduling. + * `count` (`float`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is nil, then the supported number of volumes on this node is unbounded. + + * `name` (`str`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + * `nodeID` (`str`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. + * `topology_keys` (`list`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + """ + warnings.warn("storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: metadata.name must be the Kubernetes node name. + :param pulumi.Input[dict] spec: spec is the specification of CSINode + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `drivers` (`pulumi.Input[list]`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + * `allocatable` (`pulumi.Input[dict]`) - allocatable represents the volume resources of a node that are available for scheduling. + * `count` (`pulumi.Input[float]`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is nil, then the supported number of volumes on this node is unbounded. + + * `name` (`pulumi.Input[str]`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + * `nodeID` (`pulumi.Input[str]`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. + * `topology_keys` (`pulumi.Input[list]`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + """ + pulumi.log.warn("CSINode is deprecated: storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:CSINode")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CSINode, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:CSINode', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSINode resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSINode(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py new file mode 100644 index 0000000000..e15ba51533 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py @@ -0,0 +1,223 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSINodeList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of CSINode + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - metadata.name must be the Kubernetes node name. + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - spec is the specification of CSINode + * `drivers` (`list`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + * `allocatable` (`dict`) - allocatable represents the volume resources of a node that are available for scheduling. + * `count` (`float`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is nil, then the supported number of volumes on this node is unbounded. + + * `name` (`str`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + * `nodeID` (`str`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. + * `topology_keys` (`list`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CSINodeList is a collection of CSINode objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of CSINode + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - metadata.name must be the Kubernetes node name. + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - spec is the specification of CSINode + * `drivers` (`pulumi.Input[list]`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. + * `allocatable` (`pulumi.Input[dict]`) - allocatable represents the volume resources of a node that are available for scheduling. + * `count` (`pulumi.Input[float]`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is nil, then the supported number of volumes on this node is unbounded. + + * `name` (`pulumi.Input[str]`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. + * `nodeID` (`pulumi.Input[str]`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. + * `topology_keys` (`pulumi.Input[list]`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(CSINodeList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:CSINodeList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSINodeList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSINodeList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py new file mode 100644 index 0000000000..8ad4bed640 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py @@ -0,0 +1,233 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StorageClass(pulumi.CustomResource): + allow_volume_expansion: pulumi.Output[bool] + """ + AllowVolumeExpansion shows whether the storage class allow volume expand + """ + allowed_topologies: pulumi.Output[list] + """ + Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + * `matchLabelExpressions` (`list`) - A list of topology selector requirements by labels. + * `key` (`str`) - The label key that the selector applies to. + * `values` (`list`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + mount_options: pulumi.Output[list] + """ + Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + """ + parameters: pulumi.Output[dict] + """ + Parameters holds the parameters for the provisioner that should create volumes of this storage class. + """ + provisioner: pulumi.Output[str] + """ + Provisioner indicates the type of the provisioner. + """ + reclaim_policy: pulumi.Output[str] + """ + Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + """ + volume_binding_mode: pulumi.Output[str] + """ + VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """ + def __init__(__self__, resource_name, opts=None, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None, __props__=None, __name__=None, __opts__=None): + """ + StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. + + StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[bool] allow_volume_expansion: AllowVolumeExpansion shows whether the storage class allow volume expand + :param pulumi.Input[list] allowed_topologies: Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[list] mount_options: Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + :param pulumi.Input[dict] parameters: Parameters holds the parameters for the provisioner that should create volumes of this storage class. + :param pulumi.Input[str] provisioner: Provisioner indicates the type of the provisioner. + :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + + The **allowed_topologies** object supports the following: + + * `matchLabelExpressions` (`pulumi.Input[list]`) - A list of topology selector requirements by labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `values` (`pulumi.Input[list]`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['allow_volume_expansion'] = allow_volume_expansion + __props__['allowed_topologies'] = allowed_topologies + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + __props__['mount_options'] = mount_options + __props__['parameters'] = parameters + if provisioner is None: + raise TypeError("Missing required property 'provisioner'") + __props__['provisioner'] = provisioner + __props__['reclaim_policy'] = reclaim_policy + __props__['volume_binding_mode'] = volume_binding_mode + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:StorageClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(StorageClass, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:StorageClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StorageClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StorageClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py new file mode 100644 index 0000000000..b41dc4fff6 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py @@ -0,0 +1,229 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StorageClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of StorageClasses + * `allow_volume_expansion` (`bool`) - AllowVolumeExpansion shows whether the storage class allow volume expand + * `allowed_topologies` (`list`) - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + * `matchLabelExpressions` (`list`) - A list of topology selector requirements by labels. + * `key` (`str`) - The label key that the selector applies to. + * `values` (`list`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `mount_options` (`list`) - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + * `parameters` (`dict`) - Parameters holds the parameters for the provisioner that should create volumes of this storage class. + * `provisioner` (`str`) - Provisioner indicates the type of the provisioner. + * `reclaim_policy` (`str`) - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + * `volume_binding_mode` (`str`) - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + StorageClassList is a collection of storage classes. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of StorageClasses + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `allow_volume_expansion` (`pulumi.Input[bool]`) - AllowVolumeExpansion shows whether the storage class allow volume expand + * `allowed_topologies` (`pulumi.Input[list]`) - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + * `matchLabelExpressions` (`pulumi.Input[list]`) - A list of topology selector requirements by labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `values` (`pulumi.Input[list]`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `mount_options` (`pulumi.Input[list]`) - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + * `parameters` (`pulumi.Input[dict]`) - Parameters holds the parameters for the provisioner that should create volumes of this storage class. + * `provisioner` (`pulumi.Input[str]`) - Provisioner indicates the type of the provisioner. + * `reclaim_policy` (`pulumi.Input[str]`) - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + * `volume_binding_mode` (`pulumi.Input[str]`) - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(StorageClassList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:StorageClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StorageClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StorageClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py new file mode 100644 index 0000000000..0ebdeb76e6 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py @@ -0,0 +1,575 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class VolumeAttachment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + """ + spec: pulumi.Output[dict] + """ + Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * `attacher` (`str`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * `node_name` (`str`) - The node that the volume should be attached to. + * `source` (`dict`) - Source represents the volume that should be attached. + * `inline_volume_spec` (`dict`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. + * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`str`) - Share Name + + * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`str`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`dict`) - Attributes of the volume to publish. + * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`dict`) - Local represents directly-attached storage with node affinity + * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`dict`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `persistent_volume_name` (`str`) - Name of the persistent volume to attach. + """ + status: pulumi.Output[dict] + """ + Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + * `attach_error` (`dict`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `message` (`str`) - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. + * `time` (`str`) - Time the error was encountered. + + * `attached` (`bool`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `attachment_metadata` (`dict`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `detach_error` (`dict`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + + VolumeAttachment objects are non-namespaced. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + + The **metadata** object supports the following: + + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + The **spec** object supports the following: + + * `attacher` (`pulumi.Input[str]`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * `node_name` (`pulumi.Input[str]`) - The node that the volume should be attached to. + * `source` (`pulumi.Input[dict]`) - Source represents the volume that should be attached. + * `inline_volume_spec` (`pulumi.Input[dict]`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. + * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `persistent_volume_name` (`pulumi.Input[str]`) - Name of the persistent volume to attach. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + __props__['kind'] = kind + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:VolumeAttachment"), pulumi.Alias(type_="kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(VolumeAttachment, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:VolumeAttachment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing VolumeAttachment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return VolumeAttachment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py new file mode 100644 index 0000000000..a1453c004f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py @@ -0,0 +1,599 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class VolumeAttachmentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of VolumeAttachments + * `api_version` (`str`) - 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 + * `kind` (`str`) - 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 + * `metadata` (`dict`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`str`) - API version of the referent. + * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`bool`) - If true, this reference points to the managing controller. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`dict`) - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * `attacher` (`str`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * `node_name` (`str`) - The node that the volume should be attached to. + * `source` (`dict`) - Source represents the volume that should be attached. + * `inline_volume_spec` (`dict`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. + * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`str`) - The Name of the data disk in the blob storage + * `disk_uri` (`str`) - The URI the data disk in the blob storage + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`str`) - Share Name + + * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`str`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`str`) - API version of the referent. + * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`dict`) - Attributes of the volume to publish. + * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`float`) - Optional: FC target lun number + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`str`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`dict`) - Optional: Extra command options if any. + * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`str`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`float`) - iSCSI Target Lun number. + * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`dict`) - Local represents directly-attached storage with node affinity + * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`dict`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`list`) - A list of node selector requirements by node's labels. + * `key` (`str`) - The label key that the selector applies to. + * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`list`) - 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. + + * `matchFields` (`list`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`str`) - Group to map volume access to Default is no group + * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`str`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`str`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`str`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`str`) - Path that identifies vSphere volume vmdk + + * `persistent_volume_name` (`str`) - Name of the persistent volume to attach. + + * `status` (`dict`) - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + * `attach_error` (`dict`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `message` (`str`) - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. + * `time` (`str`) - Time the error was encountered. + + * `attached` (`bool`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `attachment_metadata` (`dict`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `detach_error` (`dict`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + VolumeAttachmentList is a collection of VolumeAttachment objects. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of VolumeAttachments + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + + The **items** object supports the following: + + * `api_version` (`pulumi.Input[str]`) - 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 + * `kind` (`pulumi.Input[str]`) - 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 + * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. + * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" + * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. + * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. + * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + + * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + * `spec` (`pulumi.Input[dict]`) - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * `attacher` (`pulumi.Input[str]`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). + * `node_name` (`pulumi.Input[str]`) - The node that the volume should be attached to. + * `source` (`pulumi.Input[dict]`) - Source represents the volume that should be attached. + * `inline_volume_spec` (`pulumi.Input[dict]`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. + * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. + * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage + * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + + * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key + * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod + * `share_name` (`pulumi.Input[str]`) - Share Name + + * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. + * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. + + * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it + + * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. + * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md + + * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * `api_version` (`pulumi.Input[str]`) - API version of the referent. + * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. + * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + + * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). + * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". + * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). + * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. + * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. + + * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) + * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + + * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. + * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + + * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated + * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset + + * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md + * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod + + * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication + * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. + * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. + * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). + * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. + * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. + * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication + * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). + + * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). + + * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. + * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. + * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. + * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. + * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * `values` (`pulumi.Input[list]`) - 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. + + * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. + + * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk + + * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume + + * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. + * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes + * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin + * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user + * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. + + * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it + + * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" + * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. + * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false + * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. + * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. + * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. + * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. + + * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. + * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. + * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. + * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. + + * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. + * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. + * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk + + * `persistent_volume_name` (`pulumi.Input[str]`) - Name of the persistent volume to attach. + + * `status` (`pulumi.Input[dict]`) - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + * `attach_error` (`pulumi.Input[dict]`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `message` (`pulumi.Input[str]`) - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. + * `time` (`pulumi.Input[str]`) - Time the error was encountered. + + * `attached` (`pulumi.Input[bool]`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `attachment_metadata` (`pulumi.Input[dict]`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * `detach_error` (`pulumi.Input[dict]`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + + The **metadata** object supports the following: + + * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. + + DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = api_version + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = kind + __props__['metadata'] = metadata + super(VolumeAttachmentList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:VolumeAttachmentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing VolumeAttachmentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return VolumeAttachmentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/tables.py b/sdk/python/pulumi_kubernetes/tables.py index 9aceb2559d..9dedcce8fe 100644 --- a/sdk/python/pulumi_kubernetes/tables.py +++ b/sdk/python/pulumi_kubernetes/tables.py @@ -1,459 +1,10 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -_CASING_FORWARD_TABLE = { - "acceptedNames": "accepted_names", - "accessModes": "access_modes", - "acquireTime": "acquire_time", - "activeDeadlineSeconds": "active_deadline_seconds", - "additionalItems": "additional_items", - "additionalPrinterColumns": "additional_printer_columns", - "additionalProperties": "additional_properties", - "addressType": "address_type", - "admissionReviewVersions": "admission_review_versions", - "aggregationRule": "aggregation_rule", - "allOf": "all_of", - "allowPrivilegeEscalation": "allow_privilege_escalation", - "allowVolumeExpansion": "allow_volume_expansion", - "allowedCSIDrivers": "allowed_csi_drivers", - "allowedCapabilities": "allowed_capabilities", - "allowedFlexVolumes": "allowed_flex_volumes", - "allowedHostPaths": "allowed_host_paths", - "allowedProcMountTypes": "allowed_proc_mount_types", - "allowedRuntimeClassNames": "allowed_runtime_class_names", - "allowedTopologies": "allowed_topologies", - "allowedUnsafeSysctls": "allowed_unsafe_sysctls", - "anyOf": "any_of", - "apiGroup": "api_group", - "apiGroups": "api_groups", - "apiVersion": "api_version", - "apiVersions": "api_versions", - "appProtocol": "app_protocol", - "assuredConcurrencyShares": "assured_concurrency_shares", - "attachError": "attach_error", - "attachRequired": "attach_required", - "attachmentMetadata": "attachment_metadata", - "automountServiceAccountToken": "automount_service_account_token", - "availableReplicas": "available_replicas", - "averageUtilization": "average_utilization", - "averageValue": "average_value", - "awsElasticBlockStore": "aws_elastic_block_store", - "azureDisk": "azure_disk", - "azureFile": "azure_file", - "backoffLimit": "backoff_limit", - "binaryData": "binary_data", - "blockOwnerDeletion": "block_owner_deletion", - "bootID": "boot_id", - "boundObjectRef": "bound_object_ref", - "buildDate": "build_date", - "caBundle": "ca_bundle", - "cachingMode": "caching_mode", - "chapAuthDiscovery": "chap_auth_discovery", - "chapAuthSession": "chap_auth_session", - "claimName": "claim_name", - "claimRef": "claim_ref", - "clientCIDR": "client_cidr", - "clientConfig": "client_config", - "clientIP": "client_ip", - "clusterIP": "cluster_ip", - "clusterName": "cluster_name", - "clusterRoleSelectors": "cluster_role_selectors", - "clusterScope": "cluster_scope", - "collisionCount": "collision_count", - "completionTime": "completion_time", - "concurrencyPolicy": "concurrency_policy", - "conditionType": "condition_type", - "configMap": "config_map", - "configMapKeyRef": "config_map_key_ref", - "configMapRef": "config_map_ref", - "configSource": "config_source", - "containerID": "container_id", - "containerName": "container_name", - "containerPort": "container_port", - "containerRuntimeVersion": "container_runtime_version", - "containerStatuses": "container_statuses", - "controllerExpandSecretRef": "controller_expand_secret_ref", - "controllerPublishSecretRef": "controller_publish_secret_ref", - "conversionReviewVersions": "conversion_review_versions", - "creationTimestamp": "creation_timestamp", - "currentAverageUtilization": "current_average_utilization", - "currentAverageValue": "current_average_value", - "currentCPUUtilizationPercentage": "current_cpu_utilization_percentage", - "currentHealthy": "current_healthy", - "currentMetrics": "current_metrics", - "currentNumberScheduled": "current_number_scheduled", - "currentReplicas": "current_replicas", - "currentRevision": "current_revision", - "currentValue": "current_value", - "daemonEndpoints": "daemon_endpoints", - "dataSource": "data_source", - "datasetName": "dataset_name", - "datasetUUID": "dataset_uuid", - "defaultAddCapabilities": "default_add_capabilities", - "defaultAllowPrivilegeEscalation": "default_allow_privilege_escalation", - "defaultMode": "default_mode", - "defaultRequest": "default_request", - "defaultRuntimeClassName": "default_runtime_class_name", - "deleteOptions": "delete_options", - "deletionGracePeriodSeconds": "deletion_grace_period_seconds", - "deletionTimestamp": "deletion_timestamp", - "deprecatedCount": "deprecated_count", - "deprecatedFirstTimestamp": "deprecated_first_timestamp", - "deprecatedLastTimestamp": "deprecated_last_timestamp", - "deprecatedSource": "deprecated_source", - "describedObject": "described_object", - "desiredHealthy": "desired_healthy", - "desiredNumberScheduled": "desired_number_scheduled", - "desiredReplicas": "desired_replicas", - "detachError": "detach_error", - "devicePath": "device_path", - "diskName": "disk_name", - "diskURI": "disk_uri", - "disruptedPods": "disrupted_pods", - "disruptionsAllowed": "disruptions_allowed", - "distinguisherMethod": "distinguisher_method", - "dnsConfig": "dns_config", - "dnsPolicy": "dns_policy", - "downwardAPI": "downward_api", - "dryRun": "dry_run", - "emptyDir": "empty_dir", - "enableServiceLinks": "enable_service_links", - "endpointsNamespace": "endpoints_namespace", - "envFrom": "env_from", - "ephemeralContainerStatuses": "ephemeral_container_statuses", - "ephemeralContainers": "ephemeral_containers", - "evaluationError": "evaluation_error", - "eventTime": "event_time", - "exclusiveMaximum": "exclusive_maximum", - "exclusiveMinimum": "exclusive_minimum", - "exitCode": "exit_code", - "expectedPods": "expected_pods", - "expirationSeconds": "expiration_seconds", - "expirationTimestamp": "expiration_timestamp", - "externalDocs": "external_docs", - "externalID": "external_id", - "externalIPs": "external_i_ps", - "externalName": "external_name", - "externalTrafficPolicy": "external_traffic_policy", - "failedJobsHistoryLimit": "failed_jobs_history_limit", - "failurePolicy": "failure_policy", - "failureThreshold": "failure_threshold", - "fieldPath": "field_path", - "fieldRef": "field_ref", - "fieldsType": "fields_type", - "fieldsV1": "fields_v1", - "finishedAt": "finished_at", - "firstTimestamp": "first_timestamp", - "flexVolume": "flex_volume", - "forbiddenSysctls": "forbidden_sysctls", - "fsGroup": "fs_group", - "fsGroupChangePolicy": "fs_group_change_policy", - "fsType": "fs_type", - "fullyLabeledReplicas": "fully_labeled_replicas", - "gcePersistentDisk": "gce_persistent_disk", - "generateName": "generate_name", - "gitCommit": "git_commit", - "gitRepo": "git_repo", - "gitTreeState": "git_tree_state", - "gitVersion": "git_version", - "globalDefault": "global_default", - "gmsaCredentialSpec": "gmsa_credential_spec", - "gmsaCredentialSpecName": "gmsa_credential_spec_name", - "goVersion": "go_version", - "gracePeriodSeconds": "grace_period_seconds", - "groupPriorityMinimum": "group_priority_minimum", - "groupVersion": "group_version", - "handSize": "hand_size", - "healthCheckNodePort": "health_check_node_port", - "holderIdentity": "holder_identity", - "hostAliases": "host_aliases", - "hostIP": "host_ip", - "hostIPC": "host_ipc", - "hostNetwork": "host_network", - "hostPID": "host_pid", - "hostPath": "host_path", - "hostPort": "host_port", - "hostPorts": "host_ports", - "httpGet": "http_get", - "httpHeaders": "http_headers", - "imageID": "image_id", - "imagePullPolicy": "image_pull_policy", - "imagePullSecrets": "image_pull_secrets", - "ingressClassName": "ingress_class_name", - "initContainerStatuses": "init_container_statuses", - "initContainers": "init_containers", - "initialDelaySeconds": "initial_delay_seconds", - "initiatorName": "initiator_name", - "inlineVolumeSpec": "inline_volume_spec", - "insecureSkipTLSVerify": "insecure_skip_tls_verify", - "involvedObject": "involved_object", - "ipBlock": "ip_block", - "ipFamily": "ip_family", - "iscsiInterface": "iscsi_interface", - "jobTemplate": "job_template", - "jsonPath": "json_path", - "kernelVersion": "kernel_version", - "kubeProxyVersion": "kube_proxy_version", - "kubeletConfigKey": "kubelet_config_key", - "kubeletEndpoint": "kubelet_endpoint", - "kubeletVersion": "kubelet_version", - "labelSelector": "label_selector", - "labelSelectorPath": "label_selector_path", - "lastHeartbeatTime": "last_heartbeat_time", - "lastKnownGood": "last_known_good", - "lastObservedTime": "last_observed_time", - "lastProbeTime": "last_probe_time", - "lastScaleTime": "last_scale_time", - "lastScheduleTime": "last_schedule_time", - "lastState": "last_state", - "lastTimestamp": "last_timestamp", - "lastTransitionTime": "last_transition_time", - "lastUpdateTime": "last_update_time", - "leaseDurationSeconds": "lease_duration_seconds", - "leaseTransitions": "lease_transitions", - "limitResponse": "limit_response", - "listKind": "list_kind", - "livenessProbe": "liveness_probe", - "loadBalancer": "load_balancer", - "loadBalancerIP": "load_balancer_ip", - "loadBalancerSourceRanges": "load_balancer_source_ranges", - "machineID": "machine_id", - "managedFields": "managed_fields", - "manualSelector": "manual_selector", - "matchExpressions": "match_expressions", - "matchFields": "match_fields", - "matchLabelExpressions": "match_label_expressions", - "matchLabels": "match_labels", - "matchPolicy": "match_policy", - "matchingPrecedence": "matching_precedence", - "maxItems": "max_items", - "maxLength": "max_length", - "maxLimitRequestRatio": "max_limit_request_ratio", - "maxProperties": "max_properties", - "maxReplicas": "max_replicas", - "maxSkew": "max_skew", - "maxSurge": "max_surge", - "maxUnavailable": "max_unavailable", - "metricName": "metric_name", - "metricSelector": "metric_selector", - "minAvailable": "min_available", - "minItems": "min_items", - "minLength": "min_length", - "minProperties": "min_properties", - "minReadySeconds": "min_ready_seconds", - "minReplicas": "min_replicas", - "mountOptions": "mount_options", - "mountPath": "mount_path", - "mountPropagation": "mount_propagation", - "multipleOf": "multiple_of", - "namespaceSelector": "namespace_selector", - "nodeAffinity": "node_affinity", - "nodeID": "node_id", - "nodeInfo": "node_info", - "nodeName": "node_name", - "nodePort": "node_port", - "nodePublishSecretRef": "node_publish_secret_ref", - "nodeSelector": "node_selector", - "nodeSelectorTerms": "node_selector_terms", - "nodeStageSecretRef": "node_stage_secret_ref", - "nominatedNodeName": "nominated_node_name", - "nonResourceAttributes": "non_resource_attributes", - "nonResourceRules": "non_resource_rules", - "nonResourceURLs": "non_resource_ur_ls", - "notReadyAddresses": "not_ready_addresses", - "numberAvailable": "number_available", - "numberMisscheduled": "number_misscheduled", - "numberReady": "number_ready", - "numberUnavailable": "number_unavailable", - "objectSelector": "object_selector", - "observedGeneration": "observed_generation", - "oneOf": "one_of", - "openAPIV3Schema": "open_apiv3_schema", - "operatingSystem": "operating_system", - "orphanDependents": "orphan_dependents", - "osImage": "os_image", - "ownerReferences": "owner_references", - "pathPrefix": "path_prefix", - "pathType": "path_type", - "patternProperties": "pattern_properties", - "pdID": "pd_id", - "pdName": "pd_name", - "periodSeconds": "period_seconds", - "persistentVolumeClaim": "persistent_volume_claim", - "persistentVolumeName": "persistent_volume_name", - "persistentVolumeReclaimPolicy": "persistent_volume_reclaim_policy", - "photonPersistentDisk": "photon_persistent_disk", - "podAffinity": "pod_affinity", - "podAffinityTerm": "pod_affinity_term", - "podAntiAffinity": "pod_anti_affinity", - "podCIDR": "pod_cidr", - "podCIDRs": "pod_cid_rs", - "podFixed": "pod_fixed", - "podIP": "pod_ip", - "podIPs": "pod_i_ps", - "podInfoOnMount": "pod_info_on_mount", - "podManagementPolicy": "pod_management_policy", - "podSelector": "pod_selector", - "policyTypes": "policy_types", - "portworxVolume": "portworx_volume", - "postStart": "post_start", - "preStop": "pre_stop", - "preemptionPolicy": "preemption_policy", - "preferredDuringSchedulingIgnoredDuringExecution": "preferred_during_scheduling_ignored_during_execution", - "preferredVersion": "preferred_version", - "preserveUnknownFields": "preserve_unknown_fields", - "priorityClassName": "priority_class_name", - "priorityLevelConfiguration": "priority_level_configuration", - "procMount": "proc_mount", - "progressDeadlineSeconds": "progress_deadline_seconds", - "propagationPolicy": "propagation_policy", - "protectionDomain": "protection_domain", - "providerID": "provider_id", - "publishNotReadyAddresses": "publish_not_ready_addresses", - "qosClass": "qos_class", - "queueLengthLimit": "queue_length_limit", - "readOnly": "read_only", - "readOnlyRootFilesystem": "read_only_root_filesystem", - "readinessGates": "readiness_gates", - "readinessProbe": "readiness_probe", - "readyReplicas": "ready_replicas", - "reclaimPolicy": "reclaim_policy", - "reinvocationPolicy": "reinvocation_policy", - "remainingItemCount": "remaining_item_count", - "renewTime": "renew_time", - "reportingComponent": "reporting_component", - "reportingController": "reporting_controller", - "reportingInstance": "reporting_instance", - "requiredDropCapabilities": "required_drop_capabilities", - "requiredDuringSchedulingIgnoredDuringExecution": "required_during_scheduling_ignored_during_execution", - "resourceAttributes": "resource_attributes", - "resourceFieldRef": "resource_field_ref", - "resourceNames": "resource_names", - "resourceRules": "resource_rules", - "resourceVersion": "resource_version", - "restartCount": "restart_count", - "restartPolicy": "restart_policy", - "retryAfterSeconds": "retry_after_seconds", - "revisionHistoryLimit": "revision_history_limit", - "roleRef": "role_ref", - "rollbackTo": "rollback_to", - "rollingUpdate": "rolling_update", - "runAsGroup": "run_as_group", - "runAsNonRoot": "run_as_non_root", - "runAsUser": "run_as_user", - "runAsUserName": "run_as_user_name", - "runtimeClass": "runtime_class", - "runtimeClassName": "runtime_class_name", - "runtimeHandler": "runtime_handler", - "scaleDown": "scale_down", - "scaleIO": "scale_io", - "scaleTargetRef": "scale_target_ref", - "scaleUp": "scale_up", - "schedulerName": "scheduler_name", - "scopeName": "scope_name", - "scopeSelector": "scope_selector", - "seLinux": "se_linux", - "seLinuxOptions": "se_linux_options", - "secretFile": "secret_file", - "secretKeyRef": "secret_key_ref", - "secretName": "secret_name", - "secretNamespace": "secret_namespace", - "secretRef": "secret_ref", - "securityContext": "security_context", - "selectPolicy": "select_policy", - "selfLink": "self_link", - "serverAddress": "server_address", - "serverAddressByClientCIDRs": "server_address_by_client_cid_rs", - "serviceAccount": "service_account", - "serviceAccountName": "service_account_name", - "serviceAccountToken": "service_account_token", - "serviceName": "service_name", - "servicePort": "service_port", - "sessionAffinity": "session_affinity", - "sessionAffinityConfig": "session_affinity_config", - "shareName": "share_name", - "shareProcessNamespace": "share_process_namespace", - "shortNames": "short_names", - "sideEffects": "side_effects", - "signerName": "signer_name", - "singularName": "singular_name", - "sizeBytes": "size_bytes", - "sizeLimit": "size_limit", - "specReplicasPath": "spec_replicas_path", - "sslEnabled": "ssl_enabled", - "stabilizationWindowSeconds": "stabilization_window_seconds", - "startTime": "start_time", - "startedAt": "started_at", - "startingDeadlineSeconds": "starting_deadline_seconds", - "startupProbe": "startup_probe", - "statusReplicasPath": "status_replicas_path", - "stdinOnce": "stdin_once", - "storageClassName": "storage_class_name", - "storageMode": "storage_mode", - "storagePolicyID": "storage_policy_id", - "storagePolicyName": "storage_policy_name", - "storagePool": "storage_pool", - "storageVersionHash": "storage_version_hash", - "storedVersions": "stored_versions", - "stringData": "string_data", - "subPath": "sub_path", - "subPathExpr": "sub_path_expr", - "successThreshold": "success_threshold", - "successfulJobsHistoryLimit": "successful_jobs_history_limit", - "supplementalGroups": "supplemental_groups", - "systemUUID": "system_uuid", - "targetAverageUtilization": "target_average_utilization", - "targetAverageValue": "target_average_value", - "targetCPUUtilizationPercentage": "target_cpu_utilization_percentage", - "targetContainerName": "target_container_name", - "targetPort": "target_port", - "targetPortal": "target_portal", - "targetRef": "target_ref", - "targetSelector": "target_selector", - "targetValue": "target_value", - "targetWWNs": "target_ww_ns", - "tcpSocket": "tcp_socket", - "templateGeneration": "template_generation", - "terminationGracePeriodSeconds": "termination_grace_period_seconds", - "terminationMessagePath": "termination_message_path", - "terminationMessagePolicy": "termination_message_policy", - "timeAdded": "time_added", - "timeoutSeconds": "timeout_seconds", - "tolerationSeconds": "toleration_seconds", - "topologyKey": "topology_key", - "topologyKeys": "topology_keys", - "topologySpreadConstraints": "topology_spread_constraints", - "ttlSecondsAfterFinished": "ttl_seconds_after_finished", - "unavailableReplicas": "unavailable_replicas", - "uniqueItems": "unique_items", - "updateRevision": "update_revision", - "updateStrategy": "update_strategy", - "updatedAnnotations": "updated_annotations", - "updatedNumberScheduled": "updated_number_scheduled", - "updatedReplicas": "updated_replicas", - "valueFrom": "value_from", - "versionPriority": "version_priority", - "volumeAttributes": "volume_attributes", - "volumeBindingMode": "volume_binding_mode", - "volumeClaimTemplates": "volume_claim_templates", - "volumeDevices": "volume_devices", - "volumeHandle": "volume_handle", - "volumeID": "volume_id", - "volumeLifecycleModes": "volume_lifecycle_modes", - "volumeMode": "volume_mode", - "volumeMounts": "volume_mounts", - "volumeName": "volume_name", - "volumeNamespace": "volume_namespace", - "volumePath": "volume_path", - "volumesAttached": "volumes_attached", - "volumesInUse": "volumes_in_use", - "vsphereVolume": "vsphere_volume", - "webhookClientConfig": "webhook_client_config", - "whenUnsatisfiable": "when_unsatisfiable", - "windowsOptions": "windows_options", - "workingDir": "working_dir", -} -_CASING_BACKWARD_TABLE = { +_SNAKE_TO_CAMEL_CASE_TABLE = { + "_ref": "$ref", + "_schema": "$schema", "accepted_names": "acceptedNames", "access_modes": "accessModes", "acquire_time": "acquireTime", @@ -462,13 +13,12 @@ "additional_printer_columns": "additionalPrinterColumns", "additional_properties": "additionalProperties", "address_type": "addressType", - "admission_review_versions": "admissionReviewVersions", "aggregation_rule": "aggregationRule", "all_of": "allOf", "allow_privilege_escalation": "allowPrivilegeEscalation", "allow_volume_expansion": "allowVolumeExpansion", - "allowed_csi_drivers": "allowedCSIDrivers", "allowed_capabilities": "allowedCapabilities", + "allowed_csi_drivers": "allowedCSIDrivers", "allowed_flex_volumes": "allowedFlexVolumes", "allowed_host_paths": "allowedHostPaths", "allowed_proc_mount_types": "allowedProcMountTypes", @@ -477,88 +27,65 @@ "allowed_unsafe_sysctls": "allowedUnsafeSysctls", "any_of": "anyOf", "api_group": "apiGroup", - "api_groups": "apiGroups", "api_version": "apiVersion", - "api_versions": "apiVersions", - "app_protocol": "appProtocol", "assured_concurrency_shares": "assuredConcurrencyShares", "attach_error": "attachError", "attach_required": "attachRequired", "attachment_metadata": "attachmentMetadata", "automount_service_account_token": "automountServiceAccountToken", "available_replicas": "availableReplicas", - "average_utilization": "averageUtilization", - "average_value": "averageValue", "aws_elastic_block_store": "awsElasticBlockStore", "azure_disk": "azureDisk", "azure_file": "azureFile", "backoff_limit": "backoffLimit", "binary_data": "binaryData", - "block_owner_deletion": "blockOwnerDeletion", "boot_id": "bootID", "bound_object_ref": "boundObjectRef", - "build_date": "buildDate", "ca_bundle": "caBundle", "caching_mode": "cachingMode", "chap_auth_discovery": "chapAuthDiscovery", "chap_auth_session": "chapAuthSession", - "claim_name": "claimName", "claim_ref": "claimRef", - "client_cidr": "clientCIDR", "client_config": "clientConfig", "client_ip": "clientIP", "cluster_ip": "clusterIP", "cluster_name": "clusterName", "cluster_role_selectors": "clusterRoleSelectors", - "cluster_scope": "clusterScope", "collision_count": "collisionCount", "completion_time": "completionTime", "concurrency_policy": "concurrencyPolicy", - "condition_type": "conditionType", "config_map": "configMap", - "config_map_key_ref": "configMapKeyRef", - "config_map_ref": "configMapRef", "config_source": "configSource", - "container_id": "containerID", - "container_name": "containerName", - "container_port": "containerPort", "container_runtime_version": "containerRuntimeVersion", "container_statuses": "containerStatuses", + "continue_": "continue", "controller_expand_secret_ref": "controllerExpandSecretRef", "controller_publish_secret_ref": "controllerPublishSecretRef", "conversion_review_versions": "conversionReviewVersions", "creation_timestamp": "creationTimestamp", - "current_average_utilization": "currentAverageUtilization", - "current_average_value": "currentAverageValue", "current_cpu_utilization_percentage": "currentCPUUtilizationPercentage", "current_healthy": "currentHealthy", "current_metrics": "currentMetrics", "current_number_scheduled": "currentNumberScheduled", "current_replicas": "currentReplicas", "current_revision": "currentRevision", - "current_value": "currentValue", "daemon_endpoints": "daemonEndpoints", "data_source": "dataSource", "dataset_name": "datasetName", "dataset_uuid": "datasetUUID", "default_add_capabilities": "defaultAddCapabilities", "default_allow_privilege_escalation": "defaultAllowPrivilegeEscalation", - "default_mode": "defaultMode", - "default_request": "defaultRequest", "default_runtime_class_name": "defaultRuntimeClassName", - "delete_options": "deleteOptions", "deletion_grace_period_seconds": "deletionGracePeriodSeconds", "deletion_timestamp": "deletionTimestamp", "deprecated_count": "deprecatedCount", "deprecated_first_timestamp": "deprecatedFirstTimestamp", "deprecated_last_timestamp": "deprecatedLastTimestamp", "deprecated_source": "deprecatedSource", - "described_object": "describedObject", "desired_healthy": "desiredHealthy", "desired_number_scheduled": "desiredNumberScheduled", "desired_replicas": "desiredReplicas", "detach_error": "detachError", - "device_path": "devicePath", "disk_name": "diskName", "disk_uri": "diskURI", "disrupted_pods": "disruptedPods", @@ -566,9 +93,6 @@ "distinguisher_method": "distinguisherMethod", "dns_config": "dnsConfig", "dns_policy": "dnsPolicy", - "downward_api": "downwardAPI", - "dry_run": "dryRun", - "empty_dir": "emptyDir", "enable_service_links": "enableServiceLinks", "endpoints_namespace": "endpointsNamespace", "env_from": "envFrom", @@ -578,23 +102,16 @@ "event_time": "eventTime", "exclusive_maximum": "exclusiveMaximum", "exclusive_minimum": "exclusiveMinimum", - "exit_code": "exitCode", "expected_pods": "expectedPods", "expiration_seconds": "expirationSeconds", "expiration_timestamp": "expirationTimestamp", "external_docs": "externalDocs", - "external_id": "externalID", "external_i_ps": "externalIPs", + "external_id": "externalID", "external_name": "externalName", "external_traffic_policy": "externalTrafficPolicy", "failed_jobs_history_limit": "failedJobsHistoryLimit", - "failure_policy": "failurePolicy", - "failure_threshold": "failureThreshold", "field_path": "fieldPath", - "field_ref": "fieldRef", - "fields_type": "fieldsType", - "fields_v1": "fieldsV1", - "finished_at": "finishedAt", "first_timestamp": "firstTimestamp", "flex_volume": "flexVolume", "forbidden_sysctls": "forbiddenSysctls", @@ -604,17 +121,10 @@ "fully_labeled_replicas": "fullyLabeledReplicas", "gce_persistent_disk": "gcePersistentDisk", "generate_name": "generateName", - "git_commit": "gitCommit", - "git_repo": "gitRepo", - "git_tree_state": "gitTreeState", - "git_version": "gitVersion", "global_default": "globalDefault", "gmsa_credential_spec": "gmsaCredentialSpec", "gmsa_credential_spec_name": "gmsaCredentialSpecName", - "go_version": "goVersion", - "grace_period_seconds": "gracePeriodSeconds", "group_priority_minimum": "groupPriorityMinimum", - "group_version": "groupVersion", "hand_size": "handSize", "health_check_node_port": "healthCheckNodePort", "holder_identity": "holderIdentity", @@ -622,50 +132,35 @@ "host_ip": "hostIP", "host_ipc": "hostIPC", "host_network": "hostNetwork", - "host_pid": "hostPID", "host_path": "hostPath", - "host_port": "hostPort", + "host_pid": "hostPID", "host_ports": "hostPorts", - "http_get": "httpGet", - "http_headers": "httpHeaders", - "image_id": "imageID", - "image_pull_policy": "imagePullPolicy", "image_pull_secrets": "imagePullSecrets", "ingress_class_name": "ingressClassName", "init_container_statuses": "initContainerStatuses", "init_containers": "initContainers", - "initial_delay_seconds": "initialDelaySeconds", "initiator_name": "initiatorName", "inline_volume_spec": "inlineVolumeSpec", "insecure_skip_tls_verify": "insecureSkipTLSVerify", "involved_object": "involvedObject", - "ip_block": "ipBlock", "ip_family": "ipFamily", "iscsi_interface": "iscsiInterface", "job_template": "jobTemplate", - "json_path": "jsonPath", "kernel_version": "kernelVersion", "kube_proxy_version": "kubeProxyVersion", "kubelet_config_key": "kubeletConfigKey", "kubelet_endpoint": "kubeletEndpoint", "kubelet_version": "kubeletVersion", - "label_selector": "labelSelector", "label_selector_path": "labelSelectorPath", - "last_heartbeat_time": "lastHeartbeatTime", "last_known_good": "lastKnownGood", "last_observed_time": "lastObservedTime", - "last_probe_time": "lastProbeTime", "last_scale_time": "lastScaleTime", "last_schedule_time": "lastScheduleTime", - "last_state": "lastState", "last_timestamp": "lastTimestamp", - "last_transition_time": "lastTransitionTime", - "last_update_time": "lastUpdateTime", "lease_duration_seconds": "leaseDurationSeconds", "lease_transitions": "leaseTransitions", "limit_response": "limitResponse", "list_kind": "listKind", - "liveness_probe": "livenessProbe", "load_balancer": "loadBalancer", "load_balancer_ip": "loadBalancerIP", "load_balancer_source_ranges": "loadBalancerSourceRanges", @@ -673,21 +168,14 @@ "managed_fields": "managedFields", "manual_selector": "manualSelector", "match_expressions": "matchExpressions", - "match_fields": "matchFields", - "match_label_expressions": "matchLabelExpressions", "match_labels": "matchLabels", - "match_policy": "matchPolicy", "matching_precedence": "matchingPrecedence", "max_items": "maxItems", "max_length": "maxLength", - "max_limit_request_ratio": "maxLimitRequestRatio", "max_properties": "maxProperties", "max_replicas": "maxReplicas", - "max_skew": "maxSkew", "max_surge": "maxSurge", "max_unavailable": "maxUnavailable", - "metric_name": "metricName", - "metric_selector": "metricSelector", "min_available": "minAvailable", "min_items": "minItems", "min_length": "minLength", @@ -695,15 +183,10 @@ "min_ready_seconds": "minReadySeconds", "min_replicas": "minReplicas", "mount_options": "mountOptions", - "mount_path": "mountPath", - "mount_propagation": "mountPropagation", "multiple_of": "multipleOf", - "namespace_selector": "namespaceSelector", "node_affinity": "nodeAffinity", - "node_id": "nodeID", "node_info": "nodeInfo", "node_name": "nodeName", - "node_port": "nodePort", "node_publish_secret_ref": "nodePublishSecretRef", "node_selector": "nodeSelector", "node_selector_terms": "nodeSelectorTerms", @@ -711,54 +194,41 @@ "nominated_node_name": "nominatedNodeName", "non_resource_attributes": "nonResourceAttributes", "non_resource_rules": "nonResourceRules", - "non_resource_ur_ls": "nonResourceURLs", - "not_ready_addresses": "notReadyAddresses", "number_available": "numberAvailable", "number_misscheduled": "numberMisscheduled", "number_ready": "numberReady", "number_unavailable": "numberUnavailable", - "object_selector": "objectSelector", "observed_generation": "observedGeneration", "one_of": "oneOf", "open_apiv3_schema": "openAPIV3Schema", "operating_system": "operatingSystem", - "orphan_dependents": "orphanDependents", "os_image": "osImage", "owner_references": "ownerReferences", - "path_prefix": "pathPrefix", - "path_type": "pathType", "pattern_properties": "patternProperties", "pd_id": "pdID", "pd_name": "pdName", - "period_seconds": "periodSeconds", - "persistent_volume_claim": "persistentVolumeClaim", "persistent_volume_name": "persistentVolumeName", "persistent_volume_reclaim_policy": "persistentVolumeReclaimPolicy", "photon_persistent_disk": "photonPersistentDisk", "pod_affinity": "podAffinity", - "pod_affinity_term": "podAffinityTerm", "pod_anti_affinity": "podAntiAffinity", - "pod_cidr": "podCIDR", "pod_cid_rs": "podCIDRs", + "pod_cidr": "podCIDR", "pod_fixed": "podFixed", - "pod_ip": "podIP", "pod_i_ps": "podIPs", "pod_info_on_mount": "podInfoOnMount", + "pod_ip": "podIP", "pod_management_policy": "podManagementPolicy", "pod_selector": "podSelector", "policy_types": "policyTypes", + "port": "Port", "portworx_volume": "portworxVolume", - "post_start": "postStart", - "pre_stop": "preStop", "preemption_policy": "preemptionPolicy", "preferred_during_scheduling_ignored_during_execution": "preferredDuringSchedulingIgnoredDuringExecution", - "preferred_version": "preferredVersion", "preserve_unknown_fields": "preserveUnknownFields", "priority_class_name": "priorityClassName", "priority_level_configuration": "priorityLevelConfiguration", - "proc_mount": "procMount", "progress_deadline_seconds": "progressDeadlineSeconds", - "propagation_policy": "propagationPolicy", "protection_domain": "protectionDomain", "provider_id": "providerID", "publish_not_ready_addresses": "publishNotReadyAddresses", @@ -767,10 +237,8 @@ "read_only": "readOnly", "read_only_root_filesystem": "readOnlyRootFilesystem", "readiness_gates": "readinessGates", - "readiness_probe": "readinessProbe", "ready_replicas": "readyReplicas", "reclaim_policy": "reclaimPolicy", - "reinvocation_policy": "reinvocationPolicy", "remaining_item_count": "remainingItemCount", "renew_time": "renewTime", "reporting_component": "reportingComponent", @@ -779,11 +247,8 @@ "required_drop_capabilities": "requiredDropCapabilities", "required_during_scheduling_ignored_during_execution": "requiredDuringSchedulingIgnoredDuringExecution", "resource_attributes": "resourceAttributes", - "resource_field_ref": "resourceFieldRef", - "resource_names": "resourceNames", "resource_rules": "resourceRules", "resource_version": "resourceVersion", - "restart_count": "restartCount", "restart_policy": "restartPolicy", "retry_after_seconds": "retryAfterSeconds", "revision_history_limit": "revisionHistoryLimit", @@ -802,23 +267,18 @@ "scale_target_ref": "scaleTargetRef", "scale_up": "scaleUp", "scheduler_name": "schedulerName", - "scope_name": "scopeName", "scope_selector": "scopeSelector", "se_linux": "seLinux", "se_linux_options": "seLinuxOptions", "secret_file": "secretFile", - "secret_key_ref": "secretKeyRef", "secret_name": "secretName", "secret_namespace": "secretNamespace", "secret_ref": "secretRef", "security_context": "securityContext", "select_policy": "selectPolicy", "self_link": "selfLink", - "server_address": "serverAddress", - "server_address_by_client_cid_rs": "serverAddressByClientCIDRs", "service_account": "serviceAccount", "service_account_name": "serviceAccountName", - "service_account_token": "serviceAccountToken", "service_name": "serviceName", "service_port": "servicePort", "session_affinity": "sessionAffinity", @@ -826,53 +286,29 @@ "share_name": "shareName", "share_process_namespace": "shareProcessNamespace", "short_names": "shortNames", - "side_effects": "sideEffects", "signer_name": "signerName", - "singular_name": "singularName", - "size_bytes": "sizeBytes", - "size_limit": "sizeLimit", "spec_replicas_path": "specReplicasPath", "ssl_enabled": "sslEnabled", "stabilization_window_seconds": "stabilizationWindowSeconds", "start_time": "startTime", - "started_at": "startedAt", "starting_deadline_seconds": "startingDeadlineSeconds", - "startup_probe": "startupProbe", "status_replicas_path": "statusReplicasPath", - "stdin_once": "stdinOnce", "storage_class_name": "storageClassName", "storage_mode": "storageMode", "storage_policy_id": "storagePolicyID", "storage_policy_name": "storagePolicyName", "storage_pool": "storagePool", - "storage_version_hash": "storageVersionHash", "stored_versions": "storedVersions", "string_data": "stringData", - "sub_path": "subPath", - "sub_path_expr": "subPathExpr", - "success_threshold": "successThreshold", "successful_jobs_history_limit": "successfulJobsHistoryLimit", "supplemental_groups": "supplementalGroups", "system_uuid": "systemUUID", - "target_average_utilization": "targetAverageUtilization", - "target_average_value": "targetAverageValue", "target_cpu_utilization_percentage": "targetCPUUtilizationPercentage", - "target_container_name": "targetContainerName", - "target_port": "targetPort", "target_portal": "targetPortal", - "target_ref": "targetRef", - "target_selector": "targetSelector", - "target_value": "targetValue", "target_ww_ns": "targetWWNs", - "tcp_socket": "tcpSocket", "template_generation": "templateGeneration", "termination_grace_period_seconds": "terminationGracePeriodSeconds", - "termination_message_path": "terminationMessagePath", - "termination_message_policy": "terminationMessagePolicy", - "time_added": "timeAdded", "timeout_seconds": "timeoutSeconds", - "toleration_seconds": "tolerationSeconds", - "topology_key": "topologyKey", "topology_keys": "topologyKeys", "topology_spread_constraints": "topologySpreadConstraints", "ttl_seconds_after_finished": "ttlSecondsAfterFinished", @@ -880,15 +316,12 @@ "unique_items": "uniqueItems", "update_revision": "updateRevision", "update_strategy": "updateStrategy", - "updated_annotations": "updatedAnnotations", "updated_number_scheduled": "updatedNumberScheduled", "updated_replicas": "updatedReplicas", - "value_from": "valueFrom", "version_priority": "versionPriority", "volume_attributes": "volumeAttributes", "volume_binding_mode": "volumeBindingMode", "volume_claim_templates": "volumeClaimTemplates", - "volume_devices": "volumeDevices", "volume_handle": "volumeHandle", "volume_id": "volumeID", "volume_lifecycle_modes": "volumeLifecycleModes", @@ -901,7 +334,340 @@ "volumes_in_use": "volumesInUse", "vsphere_volume": "vsphereVolume", "webhook_client_config": "webhookClientConfig", - "when_unsatisfiable": "whenUnsatisfiable", "windows_options": "windowsOptions", - "working_dir": "workingDir", +} + +_CAMEL_TO_SNAKE_CASE_TABLE = { + "$ref": "_ref", + "$schema": "_schema", + "acceptedNames": "accepted_names", + "accessModes": "access_modes", + "acquireTime": "acquire_time", + "activeDeadlineSeconds": "active_deadline_seconds", + "additionalItems": "additional_items", + "additionalPrinterColumns": "additional_printer_columns", + "additionalProperties": "additional_properties", + "addressType": "address_type", + "aggregationRule": "aggregation_rule", + "allOf": "all_of", + "allowPrivilegeEscalation": "allow_privilege_escalation", + "allowVolumeExpansion": "allow_volume_expansion", + "allowedCapabilities": "allowed_capabilities", + "allowedCSIDrivers": "allowed_csi_drivers", + "allowedFlexVolumes": "allowed_flex_volumes", + "allowedHostPaths": "allowed_host_paths", + "allowedProcMountTypes": "allowed_proc_mount_types", + "allowedRuntimeClassNames": "allowed_runtime_class_names", + "allowedTopologies": "allowed_topologies", + "allowedUnsafeSysctls": "allowed_unsafe_sysctls", + "anyOf": "any_of", + "apiGroup": "api_group", + "apiVersion": "api_version", + "assuredConcurrencyShares": "assured_concurrency_shares", + "attachError": "attach_error", + "attachRequired": "attach_required", + "attachmentMetadata": "attachment_metadata", + "automountServiceAccountToken": "automount_service_account_token", + "availableReplicas": "available_replicas", + "awsElasticBlockStore": "aws_elastic_block_store", + "azureDisk": "azure_disk", + "azureFile": "azure_file", + "backoffLimit": "backoff_limit", + "binaryData": "binary_data", + "bootID": "boot_id", + "boundObjectRef": "bound_object_ref", + "caBundle": "ca_bundle", + "cachingMode": "caching_mode", + "chapAuthDiscovery": "chap_auth_discovery", + "chapAuthSession": "chap_auth_session", + "claimRef": "claim_ref", + "clientConfig": "client_config", + "clientIP": "client_ip", + "clusterIP": "cluster_ip", + "clusterName": "cluster_name", + "clusterRoleSelectors": "cluster_role_selectors", + "collisionCount": "collision_count", + "completionTime": "completion_time", + "concurrencyPolicy": "concurrency_policy", + "configMap": "config_map", + "configSource": "config_source", + "containerRuntimeVersion": "container_runtime_version", + "containerStatuses": "container_statuses", + "continue": "continue_", + "controllerExpandSecretRef": "controller_expand_secret_ref", + "controllerPublishSecretRef": "controller_publish_secret_ref", + "conversionReviewVersions": "conversion_review_versions", + "creationTimestamp": "creation_timestamp", + "currentCPUUtilizationPercentage": "current_cpu_utilization_percentage", + "currentHealthy": "current_healthy", + "currentMetrics": "current_metrics", + "currentNumberScheduled": "current_number_scheduled", + "currentReplicas": "current_replicas", + "currentRevision": "current_revision", + "daemonEndpoints": "daemon_endpoints", + "dataSource": "data_source", + "datasetName": "dataset_name", + "datasetUUID": "dataset_uuid", + "defaultAddCapabilities": "default_add_capabilities", + "defaultAllowPrivilegeEscalation": "default_allow_privilege_escalation", + "defaultRuntimeClassName": "default_runtime_class_name", + "deletionGracePeriodSeconds": "deletion_grace_period_seconds", + "deletionTimestamp": "deletion_timestamp", + "deprecatedCount": "deprecated_count", + "deprecatedFirstTimestamp": "deprecated_first_timestamp", + "deprecatedLastTimestamp": "deprecated_last_timestamp", + "deprecatedSource": "deprecated_source", + "desiredHealthy": "desired_healthy", + "desiredNumberScheduled": "desired_number_scheduled", + "desiredReplicas": "desired_replicas", + "detachError": "detach_error", + "diskName": "disk_name", + "diskURI": "disk_uri", + "disruptedPods": "disrupted_pods", + "disruptionsAllowed": "disruptions_allowed", + "distinguisherMethod": "distinguisher_method", + "dnsConfig": "dns_config", + "dnsPolicy": "dns_policy", + "enableServiceLinks": "enable_service_links", + "endpointsNamespace": "endpoints_namespace", + "envFrom": "env_from", + "ephemeralContainerStatuses": "ephemeral_container_statuses", + "ephemeralContainers": "ephemeral_containers", + "evaluationError": "evaluation_error", + "eventTime": "event_time", + "exclusiveMaximum": "exclusive_maximum", + "exclusiveMinimum": "exclusive_minimum", + "expectedPods": "expected_pods", + "expirationSeconds": "expiration_seconds", + "expirationTimestamp": "expiration_timestamp", + "externalDocs": "external_docs", + "externalIPs": "external_i_ps", + "externalID": "external_id", + "externalName": "external_name", + "externalTrafficPolicy": "external_traffic_policy", + "failedJobsHistoryLimit": "failed_jobs_history_limit", + "fieldPath": "field_path", + "firstTimestamp": "first_timestamp", + "flexVolume": "flex_volume", + "forbiddenSysctls": "forbidden_sysctls", + "fsGroup": "fs_group", + "fsGroupChangePolicy": "fs_group_change_policy", + "fsType": "fs_type", + "fullyLabeledReplicas": "fully_labeled_replicas", + "gcePersistentDisk": "gce_persistent_disk", + "generateName": "generate_name", + "globalDefault": "global_default", + "gmsaCredentialSpec": "gmsa_credential_spec", + "gmsaCredentialSpecName": "gmsa_credential_spec_name", + "groupPriorityMinimum": "group_priority_minimum", + "handSize": "hand_size", + "healthCheckNodePort": "health_check_node_port", + "holderIdentity": "holder_identity", + "hostAliases": "host_aliases", + "hostIP": "host_ip", + "hostIPC": "host_ipc", + "hostNetwork": "host_network", + "hostPath": "host_path", + "hostPID": "host_pid", + "hostPorts": "host_ports", + "imagePullSecrets": "image_pull_secrets", + "ingressClassName": "ingress_class_name", + "initContainerStatuses": "init_container_statuses", + "initContainers": "init_containers", + "initiatorName": "initiator_name", + "inlineVolumeSpec": "inline_volume_spec", + "insecureSkipTLSVerify": "insecure_skip_tls_verify", + "involvedObject": "involved_object", + "ipFamily": "ip_family", + "iscsiInterface": "iscsi_interface", + "jobTemplate": "job_template", + "kernelVersion": "kernel_version", + "kubeProxyVersion": "kube_proxy_version", + "kubeletConfigKey": "kubelet_config_key", + "kubeletEndpoint": "kubelet_endpoint", + "kubeletVersion": "kubelet_version", + "labelSelectorPath": "label_selector_path", + "lastKnownGood": "last_known_good", + "lastObservedTime": "last_observed_time", + "lastScaleTime": "last_scale_time", + "lastScheduleTime": "last_schedule_time", + "lastTimestamp": "last_timestamp", + "leaseDurationSeconds": "lease_duration_seconds", + "leaseTransitions": "lease_transitions", + "limitResponse": "limit_response", + "listKind": "list_kind", + "loadBalancer": "load_balancer", + "loadBalancerIP": "load_balancer_ip", + "loadBalancerSourceRanges": "load_balancer_source_ranges", + "machineID": "machine_id", + "managedFields": "managed_fields", + "manualSelector": "manual_selector", + "matchExpressions": "match_expressions", + "matchLabels": "match_labels", + "matchingPrecedence": "matching_precedence", + "maxItems": "max_items", + "maxLength": "max_length", + "maxProperties": "max_properties", + "maxReplicas": "max_replicas", + "maxSurge": "max_surge", + "maxUnavailable": "max_unavailable", + "minAvailable": "min_available", + "minItems": "min_items", + "minLength": "min_length", + "minProperties": "min_properties", + "minReadySeconds": "min_ready_seconds", + "minReplicas": "min_replicas", + "mountOptions": "mount_options", + "multipleOf": "multiple_of", + "nodeAffinity": "node_affinity", + "nodeInfo": "node_info", + "nodeName": "node_name", + "nodePublishSecretRef": "node_publish_secret_ref", + "nodeSelector": "node_selector", + "nodeSelectorTerms": "node_selector_terms", + "nodeStageSecretRef": "node_stage_secret_ref", + "nominatedNodeName": "nominated_node_name", + "nonResourceAttributes": "non_resource_attributes", + "nonResourceRules": "non_resource_rules", + "numberAvailable": "number_available", + "numberMisscheduled": "number_misscheduled", + "numberReady": "number_ready", + "numberUnavailable": "number_unavailable", + "observedGeneration": "observed_generation", + "oneOf": "one_of", + "openAPIV3Schema": "open_apiv3_schema", + "operatingSystem": "operating_system", + "osImage": "os_image", + "ownerReferences": "owner_references", + "patternProperties": "pattern_properties", + "pdID": "pd_id", + "pdName": "pd_name", + "persistentVolumeName": "persistent_volume_name", + "persistentVolumeReclaimPolicy": "persistent_volume_reclaim_policy", + "photonPersistentDisk": "photon_persistent_disk", + "podAffinity": "pod_affinity", + "podAntiAffinity": "pod_anti_affinity", + "podCIDRs": "pod_cid_rs", + "podCIDR": "pod_cidr", + "podFixed": "pod_fixed", + "podIPs": "pod_i_ps", + "podInfoOnMount": "pod_info_on_mount", + "podIP": "pod_ip", + "podManagementPolicy": "pod_management_policy", + "podSelector": "pod_selector", + "policyTypes": "policy_types", + "Port": "port", + "portworxVolume": "portworx_volume", + "preemptionPolicy": "preemption_policy", + "preferredDuringSchedulingIgnoredDuringExecution": "preferred_during_scheduling_ignored_during_execution", + "preserveUnknownFields": "preserve_unknown_fields", + "priorityClassName": "priority_class_name", + "priorityLevelConfiguration": "priority_level_configuration", + "progressDeadlineSeconds": "progress_deadline_seconds", + "protectionDomain": "protection_domain", + "providerID": "provider_id", + "publishNotReadyAddresses": "publish_not_ready_addresses", + "qosClass": "qos_class", + "queueLengthLimit": "queue_length_limit", + "readOnly": "read_only", + "readOnlyRootFilesystem": "read_only_root_filesystem", + "readinessGates": "readiness_gates", + "readyReplicas": "ready_replicas", + "reclaimPolicy": "reclaim_policy", + "remainingItemCount": "remaining_item_count", + "renewTime": "renew_time", + "reportingComponent": "reporting_component", + "reportingController": "reporting_controller", + "reportingInstance": "reporting_instance", + "requiredDropCapabilities": "required_drop_capabilities", + "requiredDuringSchedulingIgnoredDuringExecution": "required_during_scheduling_ignored_during_execution", + "resourceAttributes": "resource_attributes", + "resourceRules": "resource_rules", + "resourceVersion": "resource_version", + "restartPolicy": "restart_policy", + "retryAfterSeconds": "retry_after_seconds", + "revisionHistoryLimit": "revision_history_limit", + "roleRef": "role_ref", + "rollbackTo": "rollback_to", + "rollingUpdate": "rolling_update", + "runAsGroup": "run_as_group", + "runAsNonRoot": "run_as_non_root", + "runAsUser": "run_as_user", + "runAsUserName": "run_as_user_name", + "runtimeClass": "runtime_class", + "runtimeClassName": "runtime_class_name", + "runtimeHandler": "runtime_handler", + "scaleDown": "scale_down", + "scaleIO": "scale_io", + "scaleTargetRef": "scale_target_ref", + "scaleUp": "scale_up", + "schedulerName": "scheduler_name", + "scopeSelector": "scope_selector", + "seLinux": "se_linux", + "seLinuxOptions": "se_linux_options", + "secretFile": "secret_file", + "secretName": "secret_name", + "secretNamespace": "secret_namespace", + "secretRef": "secret_ref", + "securityContext": "security_context", + "selectPolicy": "select_policy", + "selfLink": "self_link", + "serviceAccount": "service_account", + "serviceAccountName": "service_account_name", + "serviceName": "service_name", + "servicePort": "service_port", + "sessionAffinity": "session_affinity", + "sessionAffinityConfig": "session_affinity_config", + "shareName": "share_name", + "shareProcessNamespace": "share_process_namespace", + "shortNames": "short_names", + "signerName": "signer_name", + "specReplicasPath": "spec_replicas_path", + "sslEnabled": "ssl_enabled", + "stabilizationWindowSeconds": "stabilization_window_seconds", + "startTime": "start_time", + "startingDeadlineSeconds": "starting_deadline_seconds", + "statusReplicasPath": "status_replicas_path", + "storageClassName": "storage_class_name", + "storageMode": "storage_mode", + "storagePolicyID": "storage_policy_id", + "storagePolicyName": "storage_policy_name", + "storagePool": "storage_pool", + "storedVersions": "stored_versions", + "stringData": "string_data", + "successfulJobsHistoryLimit": "successful_jobs_history_limit", + "supplementalGroups": "supplemental_groups", + "systemUUID": "system_uuid", + "targetCPUUtilizationPercentage": "target_cpu_utilization_percentage", + "targetPortal": "target_portal", + "targetWWNs": "target_ww_ns", + "templateGeneration": "template_generation", + "terminationGracePeriodSeconds": "termination_grace_period_seconds", + "timeoutSeconds": "timeout_seconds", + "topologyKeys": "topology_keys", + "topologySpreadConstraints": "topology_spread_constraints", + "ttlSecondsAfterFinished": "ttl_seconds_after_finished", + "unavailableReplicas": "unavailable_replicas", + "uniqueItems": "unique_items", + "updateRevision": "update_revision", + "updateStrategy": "update_strategy", + "updatedNumberScheduled": "updated_number_scheduled", + "updatedReplicas": "updated_replicas", + "versionPriority": "version_priority", + "volumeAttributes": "volume_attributes", + "volumeBindingMode": "volume_binding_mode", + "volumeClaimTemplates": "volume_claim_templates", + "volumeHandle": "volume_handle", + "volumeID": "volume_id", + "volumeLifecycleModes": "volume_lifecycle_modes", + "volumeMode": "volume_mode", + "volumeMounts": "volume_mounts", + "volumeName": "volume_name", + "volumeNamespace": "volume_namespace", + "volumePath": "volume_path", + "volumesAttached": "volumes_attached", + "volumesInUse": "volumes_in_use", + "vsphereVolume": "vsphere_volume", + "webhookClientConfig": "webhook_client_config", + "windowsOptions": "windows_options", } diff --git a/sdk/python/pulumi_kubernetes/utilities.py b/sdk/python/pulumi_kubernetes/utilities.py new file mode 100644 index 0000000000..9fe6103f03 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/utilities.py @@ -0,0 +1,83 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + + +import os +import pkg_resources + +from semver import VersionInfo as SemverVersion +from parver import Version as PEP440Version + + +def get_env(*args): + for v in args: + value = os.getenv(v) + if value is not None: + return value + return None + + +def get_env_bool(*args): + str = get_env(*args) + if str is not None: + # NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what + # Terraform uses internally when parsing boolean values. + if str in ["1", "t", "T", "true", "TRUE", "True"]: + return True + if str in ["0", "f", "F", "false", "FALSE", "False"]: + return False + return None + + +def get_env_int(*args): + str = get_env(*args) + if str is not None: + try: + return int(str) + except: + return None + return None + + +def get_env_float(*args): + str = get_env(*args) + if str is not None: + try: + return float(str) + except: + return None + return None + + +def get_version(): + # __name__ is set to the fully-qualified name of the current module, In our case, it will be + # .utilities. is the module we want to query the version for. + root_package, *rest = __name__.split('.') + + # pkg_resources uses setuptools to inspect the set of installed packages. We use it here to ask + # for the currently installed version of the root package (i.e. us) and get its version. + + # Unfortunately, PEP440 and semver differ slightly in incompatible ways. The Pulumi engine expects + # to receive a valid semver string when receiving requests from the language host, so it's our + # responsibility as the library to convert our own PEP440 version into a valid semver string. + + pep440_version_string = pkg_resources.require(root_package)[0].version + pep440_version = PEP440Version.parse(pep440_version_string) + (major, minor, patch) = pep440_version.release + prerelease = None + if pep440_version.pre_tag == 'a': + prerelease = f"alpha.{pep440_version.pre}" + elif pep440_version.pre_tag == 'b': + prerelease = f"beta.{pep440_version.pre}" + elif pep440_version.pre_tag == 'rc': + prerelease = f"rc.{pep440_version.pre}" + elif pep440_version.dev is not None: + prerelease = f"dev.{pep440_version.dev}" + + # The only significant difference between PEP440 and semver as it pertains to us is that PEP440 has explicit support + # for dev builds, while semver encodes them as "prerelease" versions. In order to bridge between the two, we convert + # our dev build version into a prerelease tag. This matches what all of our other packages do when constructing + # their own semver string. + semver_version = SemverVersion(major=major, minor=minor, patch=patch, prerelease=prerelease) + return str(semver_version) diff --git a/sdk/python/setup.py b/sdk/python/setup.py index 2f868797f1..649759e828 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -1,9 +1,12 @@ -import errno - -from subprocess import check_call +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** +import errno from setuptools import setup, find_packages from setuptools.command.install import install +from subprocess import check_call + class InstallPluginCommand(install): def run(self): @@ -24,29 +27,35 @@ def run(self): def readme(): - with open('README.md', 'r') as f: + with open('README.md', encoding='utf-8') as f: return f.read() setup(name='pulumi_kubernetes', version='${VERSION}', - description='A Pulumi package for creating and managing Kubernetes resources.', + description="A Pulumi package for creating and managing Kubernetes resources.", long_description=readme(), long_description_content_type='text/markdown', cmdclass={ 'install': InstallPluginCommand, }, keywords='pulumi kubernetes', - url='https://pulumi.io', + url='https://pulumi.com', project_urls={ 'Repository': 'https://github.com/pulumi/pulumi-kubernetes' }, license='Apache-2.0', packages=find_packages(), + package_data={ + 'pulumi_kubernetes': [ + 'py.typed' + ] + }, install_requires=[ - 'pulumi>=2.0.0,<3.0.0', - 'requests~=2.21.0', - 'semver>=2.8.1', 'parver>=0.2.1', + 'pulumi>=2.0.0,<3.0.0', + 'pyyaml>=5.1,<5.2', + 'requests>=2.21.0,<2.22.0', + 'semver>=2.8.1' ], zip_safe=False) From bdf5787cd3eddf08d2516c63ef5548d2706a12b9 Mon Sep 17 00:00:00 2001 From: komal Date: Mon, 15 Jun 2020 11:37:18 -0700 Subject: [PATCH 03/25] use new version of pulumi/pulumi --- provider/go.mod | 2 +- provider/go.sum | 6 +----- tests/go.sum | 9 ++------- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/provider/go.mod b/provider/go.mod index 86079ffd38..0854ee41e0 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -12,7 +12,7 @@ require ( github.com/mitchellh/go-wordwrap v1.0.0 github.com/pkg/errors v0.9.1 github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200622153820-282c95ee402d - github.com/pulumi/pulumi/sdk/v2 v2.3.0 + github.com/pulumi/pulumi/sdk/v2 v2.4.0 github.com/stretchr/testify v1.6.1 google.golang.org/grpc v1.28.0 k8s.io/api v0.18.0 diff --git a/provider/go.sum b/provider/go.sum index 3fe71cbdcf..5c915ff782 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -507,8 +507,6 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6 h1:9VTskZOIRf2vKF3UL8TuWElry5pgUpV1tFSe/e/0m/E= github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6/go.mod h1:XDKHRm5ThF8YJjx001LtgelzsoaEcvnA7lVWz9EeX3g= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -790,7 +788,7 @@ google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8 google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.28.0 h1:bO/TA4OxCOummhSf10siHuG7vJOiwh7SpRpFZDkOgl4= google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -gopkg.in/AlecAivazis/survey.v1 v1.8.9-0.20200217094205-6773bdf39b7f/go.mod h1:CaHjv79TCgAvXMSFJSVgonHXYWxnhzI3eoHtnX5UgUo= +gopkg.in/AlecAivazis/survey.v1 v1.8.8/go.mod h1:CaHjv79TCgAvXMSFJSVgonHXYWxnhzI3eoHtnX5UgUo= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -822,8 +820,6 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/tests/go.sum b/tests/go.sum index a2cddb10e5..7dad93245c 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -474,7 +474,6 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= -github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386/go.mod h1:MRxHTJrf9FhdfNQ8Hdeh9gmHevC9RJE/fu8M3JIGjoE= github.com/pierrec/lz4 v2.0.5+incompatible h1:2xWsjqPFWcplujydGg4WmhC/6fZqK42wMM8aXeqhl0I= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -564,8 +563,6 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6 h1:9VTskZOIRf2vKF3UL8TuWElry5pgUpV1tFSe/e/0m/E= github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6/go.mod h1:XDKHRm5ThF8YJjx001LtgelzsoaEcvnA7lVWz9EeX3g= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -857,8 +854,8 @@ google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8 google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.28.0 h1:bO/TA4OxCOummhSf10siHuG7vJOiwh7SpRpFZDkOgl4= google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -gopkg.in/AlecAivazis/survey.v1 v1.8.9-0.20200217094205-6773bdf39b7f h1:AQkMzsSzHWrgZWqGRpuRaRPDmyNibcXlpGcnQJ7HxZw= -gopkg.in/AlecAivazis/survey.v1 v1.8.9-0.20200217094205-6773bdf39b7f/go.mod h1:CaHjv79TCgAvXMSFJSVgonHXYWxnhzI3eoHtnX5UgUo= +gopkg.in/AlecAivazis/survey.v1 v1.8.8 h1:5UtTowJZTz1j7NxVzDGKTz6Lm9IWm8DDF6b7a2wq9VY= +gopkg.in/AlecAivazis/survey.v1 v1.8.8/go.mod h1:CaHjv79TCgAvXMSFJSVgonHXYWxnhzI3eoHtnX5UgUo= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -891,8 +888,6 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= From 2d98a0df05cf5b38c6853854a34f5adb9a4d1fb1 Mon Sep 17 00:00:00 2001 From: komal Date: Mon, 15 Jun 2020 13:33:02 -0700 Subject: [PATCH 04/25] remove nested docstrings --- sdk/go.sum | 2 + .../v1/mutating_webhook_configuration.py | 284 ---- .../v1/mutating_webhook_configuration_list.py | 306 ----- .../v1/validating_webhook_configuration.py | 270 ---- .../validating_webhook_configuration_list.py | 292 ----- .../v1beta1/mutating_webhook_configuration.py | 284 ---- .../mutating_webhook_configuration_list.py | 306 ----- .../validating_webhook_configuration.py | 270 ---- .../validating_webhook_configuration_list.py | 292 ----- .../v1/custom_resource_definition.py | 352 ----- .../v1/custom_resource_definition_list.py | 420 ------ .../v1beta1/custom_resource_definition.py | 358 ----- .../custom_resource_definition_list.py | 426 ------ .../apiregistration/v1/api_service.py | 80 -- .../apiregistration/v1/api_service_list.py | 82 -- .../apiregistration/v1beta1/api_service.py | 80 -- .../v1beta1/api_service_list.py | 82 -- .../apps/v1/controller_revision.py | 95 -- .../apps/v1/controller_revision_list.py | 122 -- .../pulumi_kubernetes/apps/v1/daemon_set.py | 1109 ---------------- .../apps/v1/daemon_set_list.py | 1104 ---------------- .../pulumi_kubernetes/apps/v1/deployment.py | 1116 ---------------- .../apps/v1/deployment_list.py | 1110 ---------------- .../pulumi_kubernetes/apps/v1/replica_set.py | 1093 ---------------- .../apps/v1/replica_set_list.py | 1084 ---------------- .../pulumi_kubernetes/apps/v1/stateful_set.py | 1126 ---------------- .../apps/v1/stateful_set_list.py | 586 --------- .../apps/v1beta1/controller_revision.py | 95 -- .../apps/v1beta1/controller_revision_list.py | 122 -- .../apps/v1beta1/deployment.py | 1122 ---------------- .../apps/v1beta1/deployment_list.py | 1116 ---------------- .../apps/v1beta1/stateful_set.py | 1126 ---------------- .../apps/v1beta1/stateful_set_list.py | 586 --------- .../apps/v1beta2/controller_revision.py | 95 -- .../apps/v1beta2/controller_revision_list.py | 122 -- .../apps/v1beta2/daemon_set.py | 1109 ---------------- .../apps/v1beta2/daemon_set_list.py | 1104 ---------------- .../apps/v1beta2/deployment.py | 1116 ---------------- .../apps/v1beta2/deployment_list.py | 1110 ---------------- .../apps/v1beta2/replica_set.py | 1093 ---------------- .../apps/v1beta2/replica_set_list.py | 1084 ---------------- .../apps/v1beta2/stateful_set.py | 1126 ---------------- .../apps/v1beta2/stateful_set_list.py | 586 --------- .../auditregistration/v1alpha1/audit_sink.py | 112 -- .../v1alpha1/audit_sink_list.py | 174 --- .../authentication/v1/token_request.py | 60 - .../authentication/v1/token_review.py | 64 - .../authentication/v1beta1/token_review.py | 64 - .../v1/local_subject_access_review.py | 90 -- .../v1/self_subject_access_review.py | 80 -- .../v1/self_subject_rules_review.py | 66 - .../authorization/v1/subject_access_review.py | 90 -- .../v1beta1/local_subject_access_review.py | 90 -- .../v1beta1/self_subject_access_review.py | 80 -- .../v1beta1/self_subject_rules_review.py | 66 - .../v1beta1/subject_access_review.py | 90 -- .../v1/horizontal_pod_autoscaler.py | 119 -- .../v1/horizontal_pod_autoscaler_list.py | 150 --- .../v2beta1/horizontal_pod_autoscaler.py | 224 ---- .../v2beta1/horizontal_pod_autoscaler_list.py | 278 ---- .../v2beta2/horizontal_pod_autoscaler.py | 255 ---- .../v2beta2/horizontal_pod_autoscaler_list.py | 304 ----- sdk/python/pulumi_kubernetes/batch/v1/job.py | 1104 ---------------- .../pulumi_kubernetes/batch/v1/job_list.py | 1096 ---------------- .../batch/v1beta1/cron_job.py | 1121 ---------------- .../batch/v1beta1/cron_job_list.py | 1110 ---------------- .../batch/v2alpha1/cron_job.py | 1121 ---------------- .../batch/v2alpha1/cron_job_list.py | 1110 ---------------- .../v1beta1/certificate_signing_request.py | 86 -- .../certificate_signing_request_list.py | 85 -- .../coordination/v1/lease.py | 108 -- .../coordination/v1/lease_list.py | 130 -- .../coordination/v1beta1/lease.py | 108 -- .../coordination/v1beta1/lease_list.py | 130 -- .../pulumi_kubernetes/core/v1/binding.py | 112 -- .../core/v1/component_status.py | 106 -- .../core/v1/component_status_list.py | 128 -- .../pulumi_kubernetes/core/v1/config_map.py | 95 -- .../core/v1/config_map_list.py | 122 -- .../pulumi_kubernetes/core/v1/endpoints.py | 136 -- .../core/v1/endpoints_list.py | 158 --- sdk/python/pulumi_kubernetes/core/v1/event.py | 135 -- .../pulumi_kubernetes/core/v1/event_list.py | 176 --- .../pulumi_kubernetes/core/v1/limit_range.py | 112 -- .../core/v1/limit_range_list.py | 134 -- .../pulumi_kubernetes/core/v1/namespace.py | 108 -- .../core/v1/namespace_list.py | 142 -- sdk/python/pulumi_kubernetes/core/v1/node.py | 189 --- .../pulumi_kubernetes/core/v1/node_list.py | 254 ---- .../core/v1/persistent_volume.py | 461 ------- .../core/v1/persistent_volume_claim.py | 151 --- .../core/v1/persistent_volume_claim_list.py | 188 --- .../core/v1/persistent_volume_list.py | 490 ------- sdk/python/pulumi_kubernetes/core/v1/pod.py | 1074 --------------- .../pulumi_kubernetes/core/v1/pod_list.py | 1152 ----------------- .../pulumi_kubernetes/core/v1/pod_template.py | 1073 --------------- .../core/v1/pod_template_list.py | 1048 --------------- .../core/v1/replication_controller.py | 1093 ---------------- .../core/v1/replication_controller_list.py | 1084 ---------------- .../core/v1/resource_quota.py | 116 -- .../core/v1/resource_quota_list.py | 144 --- .../pulumi_kubernetes/core/v1/secret.py | 95 -- .../pulumi_kubernetes/core/v1/secret_list.py | 126 -- .../pulumi_kubernetes/core/v1/service.py | 152 --- .../core/v1/service_account.py | 117 -- .../core/v1/service_account_list.py | 142 -- .../pulumi_kubernetes/core/v1/service_list.py | 182 --- .../discovery/v1beta1/endpoint_slice.py | 151 --- .../discovery/v1beta1/endpoint_slice_list.py | 176 --- .../pulumi_kubernetes/events/v1beta1/event.py | 89 -- .../events/v1beta1/event_list.py | 176 --- .../extensions/v1beta1/daemon_set.py | 1111 ---------------- .../extensions/v1beta1/daemon_set_list.py | 1106 ---------------- .../extensions/v1beta1/deployment.py | 1122 ---------------- .../extensions/v1beta1/deployment_list.py | 1116 ---------------- .../extensions/v1beta1/ingress.py | 178 --- .../extensions/v1beta1/ingress_list.py | 208 --- .../extensions/v1beta1/network_policy.py | 158 --- .../extensions/v1beta1/network_policy_list.py | 180 --- .../extensions/v1beta1/pod_security_policy.py | 228 ---- .../v1beta1/pod_security_policy_list.py | 250 ---- .../extensions/v1beta1/replica_set.py | 1093 ---------------- .../extensions/v1beta1/replica_set_list.py | 1084 ---------------- .../flowcontrol/v1alpha1/flow_schema.py | 176 --- .../flowcontrol/v1alpha1/flow_schema_list.py | 208 --- .../v1alpha1/priority_level_configuration.py | 134 -- .../priority_level_configuration_list.py | 166 --- .../pulumi_kubernetes/meta/v1/status.py | 46 - .../networking/v1/network_policy.py | 158 --- .../networking/v1/network_policy_list.py | 180 --- .../networking/v1beta1/ingress.py | 178 --- .../networking/v1beta1/ingress_class.py | 108 -- .../networking/v1beta1/ingress_class_list.py | 130 -- .../networking/v1beta1/ingress_list.py | 208 --- .../node/v1alpha1/runtime_class.py | 122 -- .../node/v1alpha1/runtime_class_list.py | 144 --- .../node/v1beta1/runtime_class.py | 117 -- .../node/v1beta1/runtime_class_list.py | 142 -- .../policy/v1beta1/pod_disruption_budget.py | 76 -- .../v1beta1/pod_disruption_budget_list.py | 80 -- .../policy/v1beta1/pod_security_policy.py | 228 ---- .../v1beta1/pod_security_policy_list.py | 250 ---- .../pulumi_kubernetes/rbac/v1/cluster_role.py | 125 -- .../rbac/v1/cluster_role_binding.py | 115 -- .../rbac/v1/cluster_role_binding_list.py | 138 -- .../rbac/v1/cluster_role_list.py | 148 --- sdk/python/pulumi_kubernetes/rbac/v1/role.py | 108 -- .../pulumi_kubernetes/rbac/v1/role_binding.py | 115 -- .../rbac/v1/role_binding_list.py | 138 -- .../pulumi_kubernetes/rbac/v1/role_list.py | 130 -- .../rbac/v1alpha1/cluster_role.py | 125 -- .../rbac/v1alpha1/cluster_role_binding.py | 115 -- .../v1alpha1/cluster_role_binding_list.py | 138 -- .../rbac/v1alpha1/cluster_role_list.py | 148 --- .../pulumi_kubernetes/rbac/v1alpha1/role.py | 108 -- .../rbac/v1alpha1/role_binding.py | 115 -- .../rbac/v1alpha1/role_binding_list.py | 138 -- .../rbac/v1alpha1/role_list.py | 130 -- .../rbac/v1beta1/cluster_role.py | 125 -- .../rbac/v1beta1/cluster_role_binding.py | 115 -- .../rbac/v1beta1/cluster_role_binding_list.py | 138 -- .../rbac/v1beta1/cluster_role_list.py | 148 --- .../pulumi_kubernetes/rbac/v1beta1/role.py | 108 -- .../rbac/v1beta1/role_binding.py | 115 -- .../rbac/v1beta1/role_binding_list.py | 138 -- .../rbac/v1beta1/role_list.py | 130 -- .../scheduling/v1/priority_class.py | 95 -- .../scheduling/v1/priority_class_list.py | 126 -- .../scheduling/v1alpha1/priority_class.py | 95 -- .../v1alpha1/priority_class_list.py | 126 -- .../scheduling/v1beta1/priority_class.py | 95 -- .../scheduling/v1beta1/priority_class_list.py | 126 -- .../settings/v1alpha1/pod_preset.py | 305 ----- .../settings/v1alpha1/pod_preset_list.py | 626 --------- .../storage/v1/csi_driver.py | 110 -- .../storage/v1/csi_driver_list.py | 132 -- .../pulumi_kubernetes/storage/v1/csi_node.py | 112 -- .../storage/v1/csi_node_list.py | 134 -- .../storage/v1/storage_class.py | 104 -- .../storage/v1/storage_class_list.py | 140 -- .../storage/v1/volume_attachment.py | 477 ------- .../storage/v1/volume_attachment_list.py | 510 -------- .../storage/v1alpha1/volume_attachment.py | 477 ------- .../v1alpha1/volume_attachment_list.py | 510 -------- .../storage/v1beta1/csi_driver.py | 110 -- .../storage/v1beta1/csi_driver_list.py | 132 -- .../storage/v1beta1/csi_node.py | 112 -- .../storage/v1beta1/csi_node_list.py | 134 -- .../storage/v1beta1/storage_class.py | 104 -- .../storage/v1beta1/storage_class_list.py | 140 -- .../storage/v1beta1/volume_attachment.py | 477 ------- .../storage/v1beta1/volume_attachment_list.py | 510 -------- 192 files changed, 2 insertions(+), 66548 deletions(-) diff --git a/sdk/go.sum b/sdk/go.sum index 27ce91edf7..d5618582e3 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -151,8 +151,10 @@ github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7z github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/pulumi/sdk/v2 v2.2.2-0.20200514204320-e677c7d6dca3 h1:uCVadlcmLexcm6WHJv1EFB3E9PKqWQt/+zVuNC+WpjM= github.com/pulumi/pulumi/sdk/v2 v2.2.2-0.20200514204320-e677c7d6dca3/go.mod h1:QNbWpL4gvf3X0lUFT7TXA2Jo1ff/Ti2l97AyFGYwvW4= +github.com/pulumi/pulumi/sdk/v2 v2.4.0/go.mod h1:llk6tmXss8kJrt3vEXAkwiwgZOuINEFmKIfMveVIwO8= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/sabhiram/go-gitignore v0.0.0-20180611051255-d3107576ba94/go.mod h1:b18R55ulyQ/h3RaWyloPyER7fWQVZvimKKhnI5OfrJQ= github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py index d26f941f97..06035fb977 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py @@ -22,149 +22,10 @@ class MutatingWebhookConfiguration(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ webhooks: pulumi.Output[list] """ Webhooks is a list of webhooks and the affected resources and operations. - * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. - * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - `name` is the name of the service. Required - * `namespace` (`str`) - `namespace` is the namespace of the service. Required - * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. - * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Equivalent" - * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `reinvocationPolicy` (`str`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - - Never: the webhook will not be called more than once in a single admission evaluation. - - IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - - Defaults to "Never". - * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`list`) - 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. - * `resources` (`list`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. - * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): """ @@ -175,151 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **webhooks** object supports the following: - - * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. - * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. - * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Equivalent" - * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `reinvocationPolicy` (`pulumi.Input[str]`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - - Never: the webhook will not be called more than once in a single admission evaluation. - - IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - - Defaults to "Never". - * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`pulumi.Input[list]`) - 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. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. - * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py index 7d555b92c8..45cd21cc68 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py @@ -18,150 +18,6 @@ class MutatingWebhookConfigurationList(pulumi.CustomResource): items: pulumi.Output[list] """ List of MutatingWebhookConfiguration. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `webhooks` (`list`) - Webhooks is a list of webhooks and the affected resources and operations. - * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. - * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - `name` is the name of the service. Required - * `namespace` (`str`) - `namespace` is the namespace of the service. Required - * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. - * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Equivalent" - * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `reinvocationPolicy` (`str`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - - Never: the webhook will not be called more than once in a single admission evaluation. - - IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - - Defaults to "Never". - * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`list`) - 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. - * `resources` (`list`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. - * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. """ kind: pulumi.Output[str] """ @@ -170,12 +26,6 @@ class MutatingWebhookConfigurationList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -186,162 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of MutatingWebhookConfiguration. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `webhooks` (`pulumi.Input[list]`) - Webhooks is a list of webhooks and the affected resources and operations. - * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. - * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. - * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Equivalent" - * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `reinvocationPolicy` (`pulumi.Input[str]`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - - Never: the webhook will not be called more than once in a single admission evaluation. - - IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - - Defaults to "Never". - * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`pulumi.Input[list]`) - 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. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. - * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py index db985e1b16..7e39f0ed96 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py @@ -22,142 +22,10 @@ class ValidatingWebhookConfiguration(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ webhooks: pulumi.Output[list] """ Webhooks is a list of webhooks and the affected resources and operations. - * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. - * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - `name` is the name of the service. Required - * `namespace` (`str`) - `namespace` is the namespace of the service. Required - * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. - * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Equivalent" - * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`list`) - 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. - * `resources` (`list`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. - * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): """ @@ -168,144 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **webhooks** object supports the following: - - * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. - * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. - * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Equivalent" - * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`pulumi.Input[list]`) - 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. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. - * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py index a840690617..7b254d45a1 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py @@ -18,143 +18,6 @@ class ValidatingWebhookConfigurationList(pulumi.CustomResource): items: pulumi.Output[list] """ List of ValidatingWebhookConfiguration. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `webhooks` (`list`) - Webhooks is a list of webhooks and the affected resources and operations. - * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. - * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - `name` is the name of the service. Required - * `namespace` (`str`) - `namespace` is the namespace of the service. Required - * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. - * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Equivalent" - * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`list`) - 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. - * `resources` (`list`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. - * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. """ kind: pulumi.Output[str] """ @@ -163,12 +26,6 @@ class ValidatingWebhookConfigurationList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -179,155 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of ValidatingWebhookConfiguration. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `webhooks` (`pulumi.Input[list]`) - Webhooks is a list of webhooks and the affected resources and operations. - * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. - * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. - * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Equivalent" - * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`pulumi.Input[list]`) - 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. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. - * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py index 9f03fb9ee9..19e67ef320 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py @@ -22,149 +22,10 @@ class MutatingWebhookConfiguration(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ webhooks: pulumi.Output[list] """ Webhooks is a list of webhooks and the affected resources and operations. - * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. - * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - `name` is the name of the service. Required - * `namespace` (`str`) - `namespace` is the namespace of the service. Required - * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. - * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Exact" - * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `reinvocationPolicy` (`str`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - - Never: the webhook will not be called more than once in a single admission evaluation. - - IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - - Defaults to "Never". - * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`list`) - 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. - * `resources` (`list`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. - * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): """ @@ -175,151 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **webhooks** object supports the following: - - * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. - * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. - * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Exact" - * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `reinvocationPolicy` (`pulumi.Input[str]`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - - Never: the webhook will not be called more than once in a single admission evaluation. - - IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - - Defaults to "Never". - * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`pulumi.Input[list]`) - 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. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. - * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py index 56130c536a..b8f11795c6 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py @@ -18,150 +18,6 @@ class MutatingWebhookConfigurationList(pulumi.CustomResource): items: pulumi.Output[list] """ List of MutatingWebhookConfiguration. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `webhooks` (`list`) - Webhooks is a list of webhooks and the affected resources and operations. - * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. - * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - `name` is the name of the service. Required - * `namespace` (`str`) - `namespace` is the namespace of the service. Required - * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. - * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Exact" - * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `reinvocationPolicy` (`str`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - - Never: the webhook will not be called more than once in a single admission evaluation. - - IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - - Defaults to "Never". - * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`list`) - 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. - * `resources` (`list`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. - * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. """ kind: pulumi.Output[str] """ @@ -170,12 +26,6 @@ class MutatingWebhookConfigurationList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -186,162 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of MutatingWebhookConfiguration. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `webhooks` (`pulumi.Input[list]`) - Webhooks is a list of webhooks and the affected resources and operations. - * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. - * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. - * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Exact" - * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `reinvocationPolicy` (`pulumi.Input[str]`) - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - - Never: the webhook will not be called more than once in a single admission evaluation. - - IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - - Defaults to "Never". - * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`pulumi.Input[list]`) - 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. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. - * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py index 4f90dfa5fc..9ccf17d057 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py @@ -22,142 +22,10 @@ class ValidatingWebhookConfiguration(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ webhooks: pulumi.Output[list] """ Webhooks is a list of webhooks and the affected resources and operations. - * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. - * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - `name` is the name of the service. Required - * `namespace` (`str`) - `namespace` is the namespace of the service. Required - * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. - * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Exact" - * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`list`) - 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. - * `resources` (`list`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. - * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): """ @@ -168,144 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **webhooks** object supports the following: - - * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. - * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. - * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Exact" - * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`pulumi.Input[list]`) - 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. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. - * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py index 86ad3c049c..3d871758e2 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py @@ -18,143 +18,6 @@ class ValidatingWebhookConfigurationList(pulumi.CustomResource): items: pulumi.Output[list] """ List of ValidatingWebhookConfiguration. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `webhooks` (`list`) - Webhooks is a list of webhooks and the affected resources and operations. - * `admissionReviewVersions` (`list`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. - * `client_config` (`dict`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - `name` is the name of the service. Required - * `namespace` (`str`) - `namespace` is the namespace of the service. Required - * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`str`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. - * `matchPolicy` (`str`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Exact" - * `name` (`str`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`dict`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`dict`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `rules` (`list`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`list`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`list`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`list`) - 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. - * `resources` (`list`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`str`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`str`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. - * `timeout_seconds` (`float`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. """ kind: pulumi.Output[str] """ @@ -163,12 +26,6 @@ class ValidatingWebhookConfigurationList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -179,155 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of ValidatingWebhookConfiguration. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `webhooks` (`pulumi.Input[list]`) - Webhooks is a list of webhooks and the affected resources and operations. - * `admissionReviewVersions` (`pulumi.Input[list]`) - AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. - * `client_config` (`pulumi.Input[dict]`) - ClientConfig defines how to communicate with the hook. Required - * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `failurePolicy` (`pulumi.Input[str]`) - FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. - * `matchPolicy` (`pulumi.Input[str]`) - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Exact" - * `name` (`pulumi.Input[str]`) - The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required. - * `namespaceSelector` (`pulumi.Input[dict]`) - NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. - - For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "runlevel", - "operator": "NotIn", - "values": [ - "0", - "1" - ] - } - ] - } - - If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": { - "matchExpressions": [ - { - "key": "environment", - "operator": "In", - "values": [ - "prod", - "staging" - ] - } - ] - } - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors. - - Default to the empty LabelSelector, which matches everything. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `objectSelector` (`pulumi.Input[dict]`) - ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything. - * `rules` (`pulumi.Input[list]`) - Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. - * `apiVersions` (`pulumi.Input[list]`) - APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. - * `operations` (`pulumi.Input[list]`) - 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. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. - - For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. - - If wildcard is present, the validation rule will ensure resources do not overlap with each other. - - Depending on the enclosing object, subresources might not be allowed. Required. - * `scope` (`pulumi.Input[str]`) - scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*". - - * `sideEffects` (`pulumi.Input[str]`) - SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. - * `timeout_seconds` (`pulumi.Input[float]`) - TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py index 43dfc86434..692822fcfc 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py @@ -23,168 +23,10 @@ class CustomResourceDefinition(pulumi.CustomResource): spec: pulumi.Output[dict] """ spec describes how the user wants the resources to appear - * `conversion` (`dict`) - conversion defines conversion settings for the CRD. - * `strategy` (`str`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information - is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. - * `webhook` (`dict`) - webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`. - * `client_config` (`dict`) - clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. - * `ca_bundle` (`str`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - service is a reference to the service for this webhook. Either service or url must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - name is the name of the service. Required - * `namespace` (`str`) - namespace is the namespace of the service. Required - * `path` (`str`) - path is an optional URL path at which the webhook will be contacted. - * `port` (`float`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. - - * `url` (`str`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `conversion_review_versions` (`list`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. - - * `group` (`str`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). - * `names` (`dict`) - names specify the resource and kind names for the custom resource. - * `categories` (`list`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. - * `kind` (`str`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. - * `list_kind` (`str`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". - * `plural` (`str`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. - * `short_names` (`list`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. - * `singular` (`str`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. - - * `preserve_unknown_fields` (`bool`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. - * `scope` (`str`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. - * `versions` (`list`) - versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - * `additional_printer_columns` (`list`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. - * `description` (`str`) - description is a human readable description of this column. - * `format` (`str`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - * `jsonPath` (`str`) - jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. - * `name` (`str`) - name is a human readable name for the column. - * `priority` (`float`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. - * `type` (`str`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - - * `name` (`str`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. - * `schema` (`dict`) - schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. - * `open_apiv3_schema` (`dict`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. - * `_ref` (`str`) - * `_schema` (`str`) - * `additional_items` (`dict`) - * `additional_properties` (`dict`) - * `all_of` (`list`) - * `any_of` (`list`) - * `default` (`dict`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. - * `definitions` (`dict`) - * `dependencies` (`dict`) - * `description` (`str`) - * `enum` (`list`) - * `example` (`dict`) - * `exclusive_maximum` (`bool`) - * `exclusive_minimum` (`bool`) - * `external_docs` (`dict`) - * `description` (`str`) - * `url` (`str`) - - * `format` (`str`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - - - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. - * `id` (`str`) - * `items` (`dict`) - * `max_items` (`float`) - * `max_length` (`float`) - * `max_properties` (`float`) - * `maximum` (`float`) - * `min_items` (`float`) - * `min_length` (`float`) - * `min_properties` (`float`) - * `minimum` (`float`) - * `multiple_of` (`float`) - * `not` (`dict`) - * `nullable` (`bool`) - * `one_of` (`list`) - * `pattern` (`str`) - * `pattern_properties` (`dict`) - * `properties` (`dict`) - * `required` (`list`) - * `title` (`str`) - * `type` (`str`) - * `unique_items` (`bool`) - * `x_kubernetes_embedded_resource` (`bool`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). - * `x_kubernetes_int_or_string` (`bool`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: - - 1) anyOf: - - type: integer - - type: string - 2) allOf: - - anyOf: - - type: integer - - type: string - - ... zero or more - * `x_kubernetes_list_map_keys` (`list`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. - - This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). - - The properties specified must either be required or have a default value, to ensure those properties are present for all list items. - * `x_kubernetes_list_type` (`str`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: - - 1) `atomic`: the list is treated as a single entity, like a scalar. - Atomic lists will be entirely replaced when updated. This extension - may be used on any type of list (struct, scalar, ...). - 2) `set`: - Sets are lists that must not have multiple items with the same value. Each - value must be a scalar, an object with x-kubernetes-map-type `atomic` or an - array with x-kubernetes-list-type `atomic`. - 3) `map`: - These lists are like maps in that their elements have a non-index key - used to identify them. Order is preserved upon merge. The map tag - must only be used on a list with elements of type object. - Defaults to atomic for arrays. - * `x_kubernetes_map_type` (`str`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: - - 1) `granular`: - These maps are actual maps (key-value pairs) and each fields are independent - from each other (they can each be manipulated by separate actors). This is - the default behaviour for all maps. - 2) `atomic`: the list is treated as a single entity, like a scalar. - Atomic maps will be entirely replaced when updated. - * `x_kubernetes_preserve_unknown_fields` (`bool`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. - - * `served` (`bool`) - served is a flag enabling/disabling this version from being served via REST APIs - * `storage` (`bool`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. - * `subresources` (`dict`) - subresources specify what subresources this version of the defined custom resource have. - * `scale` (`dict`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. - * `label_selector_path` (`str`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. - * `spec_replicas_path` (`str`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. - * `status_replicas_path` (`str`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. - - * `status` (`dict`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. """ status: pulumi.Output[dict] """ status indicates the actual state of the CustomResourceDefinition - * `accepted_names` (`dict`) - acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. - * `categories` (`list`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. - * `kind` (`str`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. - * `list_kind` (`str`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". - * `plural` (`str`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. - * `short_names` (`list`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. - * `singular` (`str`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. - - * `conditions` (`list`) - conditions indicate state for particular aspects of a CustomResourceDefinition - * `lastTransitionTime` (`str`) - lastTransitionTime last time the condition transitioned from one status to another. - * `message` (`str`) - message is a human-readable message indicating details about last transition. - * `reason` (`str`) - reason is a unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`str`) - status is the status of the condition. Can be True, False, Unknown. - * `type` (`str`) - type is the type of the condition. Types include Established, NamesAccepted and Terminating. - - * `stored_versions` (`list`) - storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -194,200 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: spec describes how the user wants the resources to appear - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `conversion` (`pulumi.Input[dict]`) - conversion defines conversion settings for the CRD. - * `strategy` (`pulumi.Input[str]`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information - is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. - * `webhook` (`pulumi.Input[dict]`) - webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`. - * `client_config` (`pulumi.Input[dict]`) - clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. - * `ca_bundle` (`pulumi.Input[str]`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - service is a reference to the service for this webhook. Either service or url must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - name is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - namespace is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - path is an optional URL path at which the webhook will be contacted. - * `port` (`pulumi.Input[float]`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. - - * `url` (`pulumi.Input[str]`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `conversion_review_versions` (`pulumi.Input[list]`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. - - * `group` (`pulumi.Input[str]`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). - * `names` (`pulumi.Input[dict]`) - names specify the resource and kind names for the custom resource. - * `categories` (`pulumi.Input[list]`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. - * `kind` (`pulumi.Input[str]`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. - * `list_kind` (`pulumi.Input[str]`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". - * `plural` (`pulumi.Input[str]`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. - * `short_names` (`pulumi.Input[list]`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. - * `singular` (`pulumi.Input[str]`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. - - * `preserve_unknown_fields` (`pulumi.Input[bool]`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. - * `scope` (`pulumi.Input[str]`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. - * `versions` (`pulumi.Input[list]`) - versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - * `additional_printer_columns` (`pulumi.Input[list]`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. - * `description` (`pulumi.Input[str]`) - description is a human readable description of this column. - * `format` (`pulumi.Input[str]`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - * `jsonPath` (`pulumi.Input[str]`) - jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. - * `name` (`pulumi.Input[str]`) - name is a human readable name for the column. - * `priority` (`pulumi.Input[float]`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. - * `type` (`pulumi.Input[str]`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - - * `name` (`pulumi.Input[str]`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. - * `schema` (`pulumi.Input[dict]`) - schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. - * `open_apiv3_schema` (`pulumi.Input[dict]`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. - * `_ref` (`pulumi.Input[str]`) - * `_schema` (`pulumi.Input[str]`) - * `additional_items` (`pulumi.Input[dict]`) - * `additional_properties` (`pulumi.Input[dict]`) - * `all_of` (`pulumi.Input[list]`) - * `any_of` (`pulumi.Input[list]`) - * `default` (`pulumi.Input[dict]`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. - * `definitions` (`pulumi.Input[dict]`) - * `dependencies` (`pulumi.Input[dict]`) - * `description` (`pulumi.Input[str]`) - * `enum` (`pulumi.Input[list]`) - * `example` (`pulumi.Input[dict]`) - * `exclusive_maximum` (`pulumi.Input[bool]`) - * `exclusive_minimum` (`pulumi.Input[bool]`) - * `external_docs` (`pulumi.Input[dict]`) - * `description` (`pulumi.Input[str]`) - * `url` (`pulumi.Input[str]`) - - * `format` (`pulumi.Input[str]`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - - - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. - * `id` (`pulumi.Input[str]`) - * `items` (`pulumi.Input[dict]`) - * `max_items` (`pulumi.Input[float]`) - * `max_length` (`pulumi.Input[float]`) - * `max_properties` (`pulumi.Input[float]`) - * `maximum` (`pulumi.Input[float]`) - * `min_items` (`pulumi.Input[float]`) - * `min_length` (`pulumi.Input[float]`) - * `min_properties` (`pulumi.Input[float]`) - * `minimum` (`pulumi.Input[float]`) - * `multiple_of` (`pulumi.Input[float]`) - * `not` (`pulumi.Input[dict]`) - * `nullable` (`pulumi.Input[bool]`) - * `one_of` (`pulumi.Input[list]`) - * `pattern` (`pulumi.Input[str]`) - * `pattern_properties` (`pulumi.Input[dict]`) - * `properties` (`pulumi.Input[dict]`) - * `required` (`pulumi.Input[list]`) - * `title` (`pulumi.Input[str]`) - * `type` (`pulumi.Input[str]`) - * `unique_items` (`pulumi.Input[bool]`) - * `x_kubernetes_embedded_resource` (`pulumi.Input[bool]`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). - * `x_kubernetes_int_or_string` (`pulumi.Input[bool]`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: - - 1) anyOf: - - type: integer - - type: string - 2) allOf: - - anyOf: - - type: integer - - type: string - - ... zero or more - * `x_kubernetes_list_map_keys` (`pulumi.Input[list]`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. - - This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). - - The properties specified must either be required or have a default value, to ensure those properties are present for all list items. - * `x_kubernetes_list_type` (`pulumi.Input[str]`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: - - 1) `atomic`: the list is treated as a single entity, like a scalar. - Atomic lists will be entirely replaced when updated. This extension - may be used on any type of list (struct, scalar, ...). - 2) `set`: - Sets are lists that must not have multiple items with the same value. Each - value must be a scalar, an object with x-kubernetes-map-type `atomic` or an - array with x-kubernetes-list-type `atomic`. - 3) `map`: - These lists are like maps in that their elements have a non-index key - used to identify them. Order is preserved upon merge. The map tag - must only be used on a list with elements of type object. - Defaults to atomic for arrays. - * `x_kubernetes_map_type` (`pulumi.Input[str]`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: - - 1) `granular`: - These maps are actual maps (key-value pairs) and each fields are independent - from each other (they can each be manipulated by separate actors). This is - the default behaviour for all maps. - 2) `atomic`: the list is treated as a single entity, like a scalar. - Atomic maps will be entirely replaced when updated. - * `x_kubernetes_preserve_unknown_fields` (`pulumi.Input[bool]`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. - - * `served` (`pulumi.Input[bool]`) - served is a flag enabling/disabling this version from being served via REST APIs - * `storage` (`pulumi.Input[bool]`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. - * `subresources` (`pulumi.Input[dict]`) - subresources specify what subresources this version of the defined custom resource have. - * `scale` (`pulumi.Input[dict]`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. - * `label_selector_path` (`pulumi.Input[str]`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. - * `spec_replicas_path` (`pulumi.Input[str]`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. - * `status_replicas_path` (`pulumi.Input[str]`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. - - * `status` (`pulumi.Input[dict]`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py index f0c8da4ee2..af52e7a35a 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py @@ -18,210 +18,6 @@ class CustomResourceDefinitionList(pulumi.CustomResource): items: pulumi.Output[list] """ items list individual CustomResourceDefinition objects - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - spec describes how the user wants the resources to appear - * `conversion` (`dict`) - conversion defines conversion settings for the CRD. - * `strategy` (`str`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information - is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. - * `webhook` (`dict`) - webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`. - * `client_config` (`dict`) - clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. - * `ca_bundle` (`str`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - service is a reference to the service for this webhook. Either service or url must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - name is the name of the service. Required - * `namespace` (`str`) - namespace is the namespace of the service. Required - * `path` (`str`) - path is an optional URL path at which the webhook will be contacted. - * `port` (`float`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. - - * `url` (`str`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `conversion_review_versions` (`list`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. - - * `group` (`str`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). - * `names` (`dict`) - names specify the resource and kind names for the custom resource. - * `categories` (`list`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. - * `kind` (`str`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. - * `list_kind` (`str`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". - * `plural` (`str`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. - * `short_names` (`list`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. - * `singular` (`str`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. - - * `preserve_unknown_fields` (`bool`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. - * `scope` (`str`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. - * `versions` (`list`) - versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - * `additional_printer_columns` (`list`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. - * `description` (`str`) - description is a human readable description of this column. - * `format` (`str`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - * `jsonPath` (`str`) - jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. - * `name` (`str`) - name is a human readable name for the column. - * `priority` (`float`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. - * `type` (`str`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - - * `name` (`str`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. - * `schema` (`dict`) - schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. - * `open_apiv3_schema` (`dict`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. - * `_ref` (`str`) - * `_schema` (`str`) - * `additional_items` (`dict`) - * `additional_properties` (`dict`) - * `all_of` (`list`) - * `any_of` (`list`) - * `default` (`dict`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. - * `definitions` (`dict`) - * `dependencies` (`dict`) - * `description` (`str`) - * `enum` (`list`) - * `example` (`dict`) - * `exclusive_maximum` (`bool`) - * `exclusive_minimum` (`bool`) - * `external_docs` (`dict`) - * `description` (`str`) - * `url` (`str`) - - * `format` (`str`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - - - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. - * `id` (`str`) - * `items` (`dict`) - * `max_items` (`float`) - * `max_length` (`float`) - * `max_properties` (`float`) - * `maximum` (`float`) - * `min_items` (`float`) - * `min_length` (`float`) - * `min_properties` (`float`) - * `minimum` (`float`) - * `multiple_of` (`float`) - * `not` (`dict`) - * `nullable` (`bool`) - * `one_of` (`list`) - * `pattern` (`str`) - * `pattern_properties` (`dict`) - * `properties` (`dict`) - * `required` (`list`) - * `title` (`str`) - * `type` (`str`) - * `unique_items` (`bool`) - * `x_kubernetes_embedded_resource` (`bool`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). - * `x_kubernetes_int_or_string` (`bool`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: - - 1) anyOf: - - type: integer - - type: string - 2) allOf: - - anyOf: - - type: integer - - type: string - - ... zero or more - * `x_kubernetes_list_map_keys` (`list`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. - - This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). - - The properties specified must either be required or have a default value, to ensure those properties are present for all list items. - * `x_kubernetes_list_type` (`str`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: - - 1) `atomic`: the list is treated as a single entity, like a scalar. - Atomic lists will be entirely replaced when updated. This extension - may be used on any type of list (struct, scalar, ...). - 2) `set`: - Sets are lists that must not have multiple items with the same value. Each - value must be a scalar, an object with x-kubernetes-map-type `atomic` or an - array with x-kubernetes-list-type `atomic`. - 3) `map`: - These lists are like maps in that their elements have a non-index key - used to identify them. Order is preserved upon merge. The map tag - must only be used on a list with elements of type object. - Defaults to atomic for arrays. - * `x_kubernetes_map_type` (`str`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: - - 1) `granular`: - These maps are actual maps (key-value pairs) and each fields are independent - from each other (they can each be manipulated by separate actors). This is - the default behaviour for all maps. - 2) `atomic`: the list is treated as a single entity, like a scalar. - Atomic maps will be entirely replaced when updated. - * `x_kubernetes_preserve_unknown_fields` (`bool`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. - - * `served` (`bool`) - served is a flag enabling/disabling this version from being served via REST APIs - * `storage` (`bool`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. - * `subresources` (`dict`) - subresources specify what subresources this version of the defined custom resource have. - * `scale` (`dict`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. - * `label_selector_path` (`str`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. - * `spec_replicas_path` (`str`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. - * `status_replicas_path` (`str`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. - - * `status` (`dict`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. - - * `status` (`dict`) - status indicates the actual state of the CustomResourceDefinition - * `accepted_names` (`dict`) - acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. - * `conditions` (`list`) - conditions indicate state for particular aspects of a CustomResourceDefinition - * `lastTransitionTime` (`str`) - lastTransitionTime last time the condition transitioned from one status to another. - * `message` (`str`) - message is a human-readable message indicating details about last transition. - * `reason` (`str`) - reason is a unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`str`) - status is the status of the condition. Can be True, False, Unknown. - * `type` (`str`) - type is the type of the condition. Types include Established, NamesAccepted and Terminating. - - * `stored_versions` (`list`) - storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. """ kind: pulumi.Output[str] """ @@ -236,222 +32,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :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 :param pulumi.Input[list] items: items list individual CustomResourceDefinition objects :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 - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - spec describes how the user wants the resources to appear - * `conversion` (`pulumi.Input[dict]`) - conversion defines conversion settings for the CRD. - * `strategy` (`pulumi.Input[str]`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information - is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set. - * `webhook` (`pulumi.Input[dict]`) - webhook describes how to call the conversion webhook. Required when `strategy` is set to `Webhook`. - * `client_config` (`pulumi.Input[dict]`) - clientConfig is the instructions for how to call the webhook if strategy is `Webhook`. - * `ca_bundle` (`pulumi.Input[str]`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - service is a reference to the service for this webhook. Either service or url must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - name is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - namespace is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - path is an optional URL path at which the webhook will be contacted. - * `port` (`pulumi.Input[float]`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. - - * `url` (`pulumi.Input[str]`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `conversion_review_versions` (`pulumi.Input[list]`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. - - * `group` (`pulumi.Input[str]`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). - * `names` (`pulumi.Input[dict]`) - names specify the resource and kind names for the custom resource. - * `categories` (`pulumi.Input[list]`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. - * `kind` (`pulumi.Input[str]`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. - * `list_kind` (`pulumi.Input[str]`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". - * `plural` (`pulumi.Input[str]`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. - * `short_names` (`pulumi.Input[list]`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. - * `singular` (`pulumi.Input[str]`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. - - * `preserve_unknown_fields` (`pulumi.Input[bool]`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. - * `scope` (`pulumi.Input[str]`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. - * `versions` (`pulumi.Input[list]`) - versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - * `additional_printer_columns` (`pulumi.Input[list]`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used. - * `description` (`pulumi.Input[str]`) - description is a human readable description of this column. - * `format` (`pulumi.Input[str]`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - * `jsonPath` (`pulumi.Input[str]`) - jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. - * `name` (`pulumi.Input[str]`) - name is a human readable name for the column. - * `priority` (`pulumi.Input[float]`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. - * `type` (`pulumi.Input[str]`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - - * `name` (`pulumi.Input[str]`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. - * `schema` (`pulumi.Input[dict]`) - schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource. - * `open_apiv3_schema` (`pulumi.Input[dict]`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. - * `_ref` (`pulumi.Input[str]`) - * `_schema` (`pulumi.Input[str]`) - * `additional_items` (`pulumi.Input[dict]`) - * `additional_properties` (`pulumi.Input[dict]`) - * `all_of` (`pulumi.Input[list]`) - * `any_of` (`pulumi.Input[list]`) - * `default` (`pulumi.Input[dict]`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. - * `definitions` (`pulumi.Input[dict]`) - * `dependencies` (`pulumi.Input[dict]`) - * `description` (`pulumi.Input[str]`) - * `enum` (`pulumi.Input[list]`) - * `example` (`pulumi.Input[dict]`) - * `exclusive_maximum` (`pulumi.Input[bool]`) - * `exclusive_minimum` (`pulumi.Input[bool]`) - * `external_docs` (`pulumi.Input[dict]`) - * `description` (`pulumi.Input[str]`) - * `url` (`pulumi.Input[str]`) - - * `format` (`pulumi.Input[str]`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - - - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. - * `id` (`pulumi.Input[str]`) - * `items` (`pulumi.Input[dict]`) - * `max_items` (`pulumi.Input[float]`) - * `max_length` (`pulumi.Input[float]`) - * `max_properties` (`pulumi.Input[float]`) - * `maximum` (`pulumi.Input[float]`) - * `min_items` (`pulumi.Input[float]`) - * `min_length` (`pulumi.Input[float]`) - * `min_properties` (`pulumi.Input[float]`) - * `minimum` (`pulumi.Input[float]`) - * `multiple_of` (`pulumi.Input[float]`) - * `not` (`pulumi.Input[dict]`) - * `nullable` (`pulumi.Input[bool]`) - * `one_of` (`pulumi.Input[list]`) - * `pattern` (`pulumi.Input[str]`) - * `pattern_properties` (`pulumi.Input[dict]`) - * `properties` (`pulumi.Input[dict]`) - * `required` (`pulumi.Input[list]`) - * `title` (`pulumi.Input[str]`) - * `type` (`pulumi.Input[str]`) - * `unique_items` (`pulumi.Input[bool]`) - * `x_kubernetes_embedded_resource` (`pulumi.Input[bool]`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). - * `x_kubernetes_int_or_string` (`pulumi.Input[bool]`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: - - 1) anyOf: - - type: integer - - type: string - 2) allOf: - - anyOf: - - type: integer - - type: string - - ... zero or more - * `x_kubernetes_list_map_keys` (`pulumi.Input[list]`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. - - This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). - - The properties specified must either be required or have a default value, to ensure those properties are present for all list items. - * `x_kubernetes_list_type` (`pulumi.Input[str]`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: - - 1) `atomic`: the list is treated as a single entity, like a scalar. - Atomic lists will be entirely replaced when updated. This extension - may be used on any type of list (struct, scalar, ...). - 2) `set`: - Sets are lists that must not have multiple items with the same value. Each - value must be a scalar, an object with x-kubernetes-map-type `atomic` or an - array with x-kubernetes-list-type `atomic`. - 3) `map`: - These lists are like maps in that their elements have a non-index key - used to identify them. Order is preserved upon merge. The map tag - must only be used on a list with elements of type object. - Defaults to atomic for arrays. - * `x_kubernetes_map_type` (`pulumi.Input[str]`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: - - 1) `granular`: - These maps are actual maps (key-value pairs) and each fields are independent - from each other (they can each be manipulated by separate actors). This is - the default behaviour for all maps. - 2) `atomic`: the list is treated as a single entity, like a scalar. - Atomic maps will be entirely replaced when updated. - * `x_kubernetes_preserve_unknown_fields` (`pulumi.Input[bool]`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. - - * `served` (`pulumi.Input[bool]`) - served is a flag enabling/disabling this version from being served via REST APIs - * `storage` (`pulumi.Input[bool]`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. - * `subresources` (`pulumi.Input[dict]`) - subresources specify what subresources this version of the defined custom resource have. - * `scale` (`pulumi.Input[dict]`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. - * `label_selector_path` (`pulumi.Input[str]`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. - * `spec_replicas_path` (`pulumi.Input[str]`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. - * `status_replicas_path` (`pulumi.Input[str]`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. - - * `status` (`pulumi.Input[dict]`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. - - * `status` (`pulumi.Input[dict]`) - status indicates the actual state of the CustomResourceDefinition - * `accepted_names` (`pulumi.Input[dict]`) - acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. - * `conditions` (`pulumi.Input[list]`) - conditions indicate state for particular aspects of a CustomResourceDefinition - * `lastTransitionTime` (`pulumi.Input[str]`) - lastTransitionTime last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - message is a human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - reason is a unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - status is the status of the condition. Can be True, False, Unknown. - * `type` (`pulumi.Input[str]`) - type is the type of the condition. Types include Established, NamesAccepted and Terminating. - - * `stored_versions` (`pulumi.Input[list]`) - storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py index c99744bef9..f8b36f0254 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py @@ -23,171 +23,10 @@ class CustomResourceDefinition(pulumi.CustomResource): spec: pulumi.Output[dict] """ spec describes how the user wants the resources to appear - * `additional_printer_columns` (`list`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If present, this field configures columns for all versions. Top-level and per-version columns are mutually exclusive. If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. - * `JSONPath` (`str`) - JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. - * `description` (`str`) - description is a human readable description of this column. - * `format` (`str`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - * `name` (`str`) - name is a human readable name for the column. - * `priority` (`float`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. - * `type` (`str`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - - * `conversion` (`dict`) - conversion defines conversion settings for the CRD. - * `conversion_review_versions` (`list`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. - * `strategy` (`str`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information - is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set. - * `webhook_client_config` (`dict`) - webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. - * `ca_bundle` (`str`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - service is a reference to the service for this webhook. Either service or url must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - name is the name of the service. Required - * `namespace` (`str`) - namespace is the namespace of the service. Required - * `path` (`str`) - path is an optional URL path at which the webhook will be contacted. - * `port` (`float`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. - - * `url` (`str`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `group` (`str`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). - * `names` (`dict`) - names specify the resource and kind names for the custom resource. - * `categories` (`list`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. - * `kind` (`str`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. - * `list_kind` (`str`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". - * `plural` (`str`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. - * `short_names` (`list`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. - * `singular` (`str`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. - - * `preserve_unknown_fields` (`bool`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. If false, schemas must be defined for all versions. Defaults to true in v1beta for backwards compatibility. Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. - * `scope` (`str`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`. - * `subresources` (`dict`) - subresources specify what subresources the defined custom resource has. If present, this field configures subresources for all versions. Top-level and per-version subresources are mutually exclusive. - * `scale` (`dict`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. - * `label_selector_path` (`str`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. - * `spec_replicas_path` (`str`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. - * `status_replicas_path` (`str`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. - - * `status` (`dict`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. - - * `validation` (`dict`) - validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive. - * `open_apiv3_schema` (`dict`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. - * `_ref` (`str`) - * `_schema` (`str`) - * `additional_items` (`dict`) - * `additional_properties` (`dict`) - * `all_of` (`list`) - * `any_of` (`list`) - * `default` (`dict`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API. - * `definitions` (`dict`) - * `dependencies` (`dict`) - * `description` (`str`) - * `enum` (`list`) - * `example` (`dict`) - * `exclusive_maximum` (`bool`) - * `exclusive_minimum` (`bool`) - * `external_docs` (`dict`) - * `description` (`str`) - * `url` (`str`) - - * `format` (`str`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - - - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. - * `id` (`str`) - * `items` (`dict`) - * `max_items` (`float`) - * `max_length` (`float`) - * `max_properties` (`float`) - * `maximum` (`float`) - * `min_items` (`float`) - * `min_length` (`float`) - * `min_properties` (`float`) - * `minimum` (`float`) - * `multiple_of` (`float`) - * `not` (`dict`) - * `nullable` (`bool`) - * `one_of` (`list`) - * `pattern` (`str`) - * `pattern_properties` (`dict`) - * `properties` (`dict`) - * `required` (`list`) - * `title` (`str`) - * `type` (`str`) - * `unique_items` (`bool`) - * `x_kubernetes_embedded_resource` (`bool`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). - * `x_kubernetes_int_or_string` (`bool`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: - - 1) anyOf: - - type: integer - - type: string - 2) allOf: - - anyOf: - - type: integer - - type: string - - ... zero or more - * `x_kubernetes_list_map_keys` (`list`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. - - This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). - - The properties specified must either be required or have a default value, to ensure those properties are present for all list items. - * `x_kubernetes_list_type` (`str`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: - - 1) `atomic`: the list is treated as a single entity, like a scalar. - Atomic lists will be entirely replaced when updated. This extension - may be used on any type of list (struct, scalar, ...). - 2) `set`: - Sets are lists that must not have multiple items with the same value. Each - value must be a scalar, an object with x-kubernetes-map-type `atomic` or an - array with x-kubernetes-list-type `atomic`. - 3) `map`: - These lists are like maps in that their elements have a non-index key - used to identify them. Order is preserved upon merge. The map tag - must only be used on a list with elements of type object. - Defaults to atomic for arrays. - * `x_kubernetes_map_type` (`str`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: - - 1) `granular`: - These maps are actual maps (key-value pairs) and each fields are independent - from each other (they can each be manipulated by separate actors). This is - the default behaviour for all maps. - 2) `atomic`: the list is treated as a single entity, like a scalar. - Atomic maps will be entirely replaced when updated. - * `x_kubernetes_preserve_unknown_fields` (`bool`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. - - * `version` (`str`) - version is the API version of the defined custom resource. The custom resources are served under `/apis///...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead. - * `versions` (`list`) - versions is the list of all API versions of the defined custom resource. Optional if `version` is specified. The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - * `additional_printer_columns` (`list`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. - * `name` (`str`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. - * `schema` (`dict`) - schema describes the schema used for validation and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead). - * `served` (`bool`) - served is a flag enabling/disabling this version from being served via REST APIs - * `storage` (`bool`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. - * `subresources` (`dict`) - subresources specify what subresources this version of the defined custom resource have. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead). """ status: pulumi.Output[dict] """ status indicates the actual state of the CustomResourceDefinition - * `accepted_names` (`dict`) - acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. - * `categories` (`list`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. - * `kind` (`str`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. - * `list_kind` (`str`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". - * `plural` (`str`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. - * `short_names` (`list`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. - * `singular` (`str`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. - - * `conditions` (`list`) - conditions indicate state for particular aspects of a CustomResourceDefinition - * `lastTransitionTime` (`str`) - lastTransitionTime last time the condition transitioned from one status to another. - * `message` (`str`) - message is a human-readable message indicating details about last transition. - * `reason` (`str`) - reason is a unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`str`) - status is the status of the condition. Can be True, False, Unknown. - * `type` (`str`) - type is the type of the condition. Types include Established, NamesAccepted and Terminating. - - * `stored_versions` (`list`) - storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -197,203 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: spec describes how the user wants the resources to appear - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `additional_printer_columns` (`pulumi.Input[list]`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If present, this field configures columns for all versions. Top-level and per-version columns are mutually exclusive. If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. - * `JSONPath` (`pulumi.Input[str]`) - JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. - * `description` (`pulumi.Input[str]`) - description is a human readable description of this column. - * `format` (`pulumi.Input[str]`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - * `name` (`pulumi.Input[str]`) - name is a human readable name for the column. - * `priority` (`pulumi.Input[float]`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. - * `type` (`pulumi.Input[str]`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - - * `conversion` (`pulumi.Input[dict]`) - conversion defines conversion settings for the CRD. - * `conversion_review_versions` (`pulumi.Input[list]`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. - * `strategy` (`pulumi.Input[str]`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information - is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set. - * `webhook_client_config` (`pulumi.Input[dict]`) - webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. - * `ca_bundle` (`pulumi.Input[str]`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - service is a reference to the service for this webhook. Either service or url must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - name is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - namespace is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - path is an optional URL path at which the webhook will be contacted. - * `port` (`pulumi.Input[float]`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. - - * `url` (`pulumi.Input[str]`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `group` (`pulumi.Input[str]`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). - * `names` (`pulumi.Input[dict]`) - names specify the resource and kind names for the custom resource. - * `categories` (`pulumi.Input[list]`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. - * `kind` (`pulumi.Input[str]`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. - * `list_kind` (`pulumi.Input[str]`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". - * `plural` (`pulumi.Input[str]`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. - * `short_names` (`pulumi.Input[list]`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. - * `singular` (`pulumi.Input[str]`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. - - * `preserve_unknown_fields` (`pulumi.Input[bool]`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. If false, schemas must be defined for all versions. Defaults to true in v1beta for backwards compatibility. Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. - * `scope` (`pulumi.Input[str]`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`. - * `subresources` (`pulumi.Input[dict]`) - subresources specify what subresources the defined custom resource has. If present, this field configures subresources for all versions. Top-level and per-version subresources are mutually exclusive. - * `scale` (`pulumi.Input[dict]`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. - * `label_selector_path` (`pulumi.Input[str]`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. - * `spec_replicas_path` (`pulumi.Input[str]`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. - * `status_replicas_path` (`pulumi.Input[str]`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. - - * `status` (`pulumi.Input[dict]`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. - - * `validation` (`pulumi.Input[dict]`) - validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive. - * `open_apiv3_schema` (`pulumi.Input[dict]`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. - * `_ref` (`pulumi.Input[str]`) - * `_schema` (`pulumi.Input[str]`) - * `additional_items` (`pulumi.Input[dict]`) - * `additional_properties` (`pulumi.Input[dict]`) - * `all_of` (`pulumi.Input[list]`) - * `any_of` (`pulumi.Input[list]`) - * `default` (`pulumi.Input[dict]`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API. - * `definitions` (`pulumi.Input[dict]`) - * `dependencies` (`pulumi.Input[dict]`) - * `description` (`pulumi.Input[str]`) - * `enum` (`pulumi.Input[list]`) - * `example` (`pulumi.Input[dict]`) - * `exclusive_maximum` (`pulumi.Input[bool]`) - * `exclusive_minimum` (`pulumi.Input[bool]`) - * `external_docs` (`pulumi.Input[dict]`) - * `description` (`pulumi.Input[str]`) - * `url` (`pulumi.Input[str]`) - - * `format` (`pulumi.Input[str]`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - - - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. - * `id` (`pulumi.Input[str]`) - * `items` (`pulumi.Input[dict]`) - * `max_items` (`pulumi.Input[float]`) - * `max_length` (`pulumi.Input[float]`) - * `max_properties` (`pulumi.Input[float]`) - * `maximum` (`pulumi.Input[float]`) - * `min_items` (`pulumi.Input[float]`) - * `min_length` (`pulumi.Input[float]`) - * `min_properties` (`pulumi.Input[float]`) - * `minimum` (`pulumi.Input[float]`) - * `multiple_of` (`pulumi.Input[float]`) - * `not` (`pulumi.Input[dict]`) - * `nullable` (`pulumi.Input[bool]`) - * `one_of` (`pulumi.Input[list]`) - * `pattern` (`pulumi.Input[str]`) - * `pattern_properties` (`pulumi.Input[dict]`) - * `properties` (`pulumi.Input[dict]`) - * `required` (`pulumi.Input[list]`) - * `title` (`pulumi.Input[str]`) - * `type` (`pulumi.Input[str]`) - * `unique_items` (`pulumi.Input[bool]`) - * `x_kubernetes_embedded_resource` (`pulumi.Input[bool]`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). - * `x_kubernetes_int_or_string` (`pulumi.Input[bool]`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: - - 1) anyOf: - - type: integer - - type: string - 2) allOf: - - anyOf: - - type: integer - - type: string - - ... zero or more - * `x_kubernetes_list_map_keys` (`pulumi.Input[list]`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. - - This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). - - The properties specified must either be required or have a default value, to ensure those properties are present for all list items. - * `x_kubernetes_list_type` (`pulumi.Input[str]`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: - - 1) `atomic`: the list is treated as a single entity, like a scalar. - Atomic lists will be entirely replaced when updated. This extension - may be used on any type of list (struct, scalar, ...). - 2) `set`: - Sets are lists that must not have multiple items with the same value. Each - value must be a scalar, an object with x-kubernetes-map-type `atomic` or an - array with x-kubernetes-list-type `atomic`. - 3) `map`: - These lists are like maps in that their elements have a non-index key - used to identify them. Order is preserved upon merge. The map tag - must only be used on a list with elements of type object. - Defaults to atomic for arrays. - * `x_kubernetes_map_type` (`pulumi.Input[str]`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: - - 1) `granular`: - These maps are actual maps (key-value pairs) and each fields are independent - from each other (they can each be manipulated by separate actors). This is - the default behaviour for all maps. - 2) `atomic`: the list is treated as a single entity, like a scalar. - Atomic maps will be entirely replaced when updated. - * `x_kubernetes_preserve_unknown_fields` (`pulumi.Input[bool]`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. - - * `version` (`pulumi.Input[str]`) - version is the API version of the defined custom resource. The custom resources are served under `/apis///...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead. - * `versions` (`pulumi.Input[list]`) - versions is the list of all API versions of the defined custom resource. Optional if `version` is specified. The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - * `additional_printer_columns` (`pulumi.Input[list]`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. - * `name` (`pulumi.Input[str]`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. - * `schema` (`pulumi.Input[dict]`) - schema describes the schema used for validation and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead). - * `served` (`pulumi.Input[bool]`) - served is a flag enabling/disabling this version from being served via REST APIs - * `storage` (`pulumi.Input[bool]`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. - * `subresources` (`pulumi.Input[dict]`) - subresources specify what subresources this version of the defined custom resource have. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead). """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py index 12e9aa1817..f1c1a4d8ff 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py @@ -18,213 +18,6 @@ class CustomResourceDefinitionList(pulumi.CustomResource): items: pulumi.Output[list] """ items list individual CustomResourceDefinition objects - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - spec describes how the user wants the resources to appear - * `additional_printer_columns` (`list`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If present, this field configures columns for all versions. Top-level and per-version columns are mutually exclusive. If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. - * `JSONPath` (`str`) - JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. - * `description` (`str`) - description is a human readable description of this column. - * `format` (`str`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - * `name` (`str`) - name is a human readable name for the column. - * `priority` (`float`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. - * `type` (`str`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - - * `conversion` (`dict`) - conversion defines conversion settings for the CRD. - * `conversion_review_versions` (`list`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. - * `strategy` (`str`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information - is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set. - * `webhook_client_config` (`dict`) - webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. - * `ca_bundle` (`str`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - service is a reference to the service for this webhook. Either service or url must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - name is the name of the service. Required - * `namespace` (`str`) - namespace is the namespace of the service. Required - * `path` (`str`) - path is an optional URL path at which the webhook will be contacted. - * `port` (`float`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. - - * `url` (`str`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `group` (`str`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). - * `names` (`dict`) - names specify the resource and kind names for the custom resource. - * `categories` (`list`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. - * `kind` (`str`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. - * `list_kind` (`str`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". - * `plural` (`str`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. - * `short_names` (`list`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. - * `singular` (`str`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. - - * `preserve_unknown_fields` (`bool`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. If false, schemas must be defined for all versions. Defaults to true in v1beta for backwards compatibility. Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. - * `scope` (`str`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`. - * `subresources` (`dict`) - subresources specify what subresources the defined custom resource has. If present, this field configures subresources for all versions. Top-level and per-version subresources are mutually exclusive. - * `scale` (`dict`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. - * `label_selector_path` (`str`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. - * `spec_replicas_path` (`str`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. - * `status_replicas_path` (`str`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. - - * `status` (`dict`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. - - * `validation` (`dict`) - validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive. - * `open_apiv3_schema` (`dict`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. - * `_ref` (`str`) - * `_schema` (`str`) - * `additional_items` (`dict`) - * `additional_properties` (`dict`) - * `all_of` (`list`) - * `any_of` (`list`) - * `default` (`dict`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API. - * `definitions` (`dict`) - * `dependencies` (`dict`) - * `description` (`str`) - * `enum` (`list`) - * `example` (`dict`) - * `exclusive_maximum` (`bool`) - * `exclusive_minimum` (`bool`) - * `external_docs` (`dict`) - * `description` (`str`) - * `url` (`str`) - - * `format` (`str`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - - - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. - * `id` (`str`) - * `items` (`dict`) - * `max_items` (`float`) - * `max_length` (`float`) - * `max_properties` (`float`) - * `maximum` (`float`) - * `min_items` (`float`) - * `min_length` (`float`) - * `min_properties` (`float`) - * `minimum` (`float`) - * `multiple_of` (`float`) - * `not` (`dict`) - * `nullable` (`bool`) - * `one_of` (`list`) - * `pattern` (`str`) - * `pattern_properties` (`dict`) - * `properties` (`dict`) - * `required` (`list`) - * `title` (`str`) - * `type` (`str`) - * `unique_items` (`bool`) - * `x_kubernetes_embedded_resource` (`bool`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). - * `x_kubernetes_int_or_string` (`bool`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: - - 1) anyOf: - - type: integer - - type: string - 2) allOf: - - anyOf: - - type: integer - - type: string - - ... zero or more - * `x_kubernetes_list_map_keys` (`list`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. - - This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). - - The properties specified must either be required or have a default value, to ensure those properties are present for all list items. - * `x_kubernetes_list_type` (`str`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: - - 1) `atomic`: the list is treated as a single entity, like a scalar. - Atomic lists will be entirely replaced when updated. This extension - may be used on any type of list (struct, scalar, ...). - 2) `set`: - Sets are lists that must not have multiple items with the same value. Each - value must be a scalar, an object with x-kubernetes-map-type `atomic` or an - array with x-kubernetes-list-type `atomic`. - 3) `map`: - These lists are like maps in that their elements have a non-index key - used to identify them. Order is preserved upon merge. The map tag - must only be used on a list with elements of type object. - Defaults to atomic for arrays. - * `x_kubernetes_map_type` (`str`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: - - 1) `granular`: - These maps are actual maps (key-value pairs) and each fields are independent - from each other (they can each be manipulated by separate actors). This is - the default behaviour for all maps. - 2) `atomic`: the list is treated as a single entity, like a scalar. - Atomic maps will be entirely replaced when updated. - * `x_kubernetes_preserve_unknown_fields` (`bool`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. - - * `version` (`str`) - version is the API version of the defined custom resource. The custom resources are served under `/apis///...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead. - * `versions` (`list`) - versions is the list of all API versions of the defined custom resource. Optional if `version` is specified. The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - * `additional_printer_columns` (`list`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. - * `name` (`str`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. - * `schema` (`dict`) - schema describes the schema used for validation and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead). - * `served` (`bool`) - served is a flag enabling/disabling this version from being served via REST APIs - * `storage` (`bool`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. - * `subresources` (`dict`) - subresources specify what subresources this version of the defined custom resource have. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead). - - * `status` (`dict`) - status indicates the actual state of the CustomResourceDefinition - * `accepted_names` (`dict`) - acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. - * `conditions` (`list`) - conditions indicate state for particular aspects of a CustomResourceDefinition - * `lastTransitionTime` (`str`) - lastTransitionTime last time the condition transitioned from one status to another. - * `message` (`str`) - message is a human-readable message indicating details about last transition. - * `reason` (`str`) - reason is a unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`str`) - status is the status of the condition. Can be True, False, Unknown. - * `type` (`str`) - type is the type of the condition. Types include Established, NamesAccepted and Terminating. - - * `stored_versions` (`list`) - storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. """ kind: pulumi.Output[str] """ @@ -239,225 +32,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :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 :param pulumi.Input[list] items: items list individual CustomResourceDefinition objects :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 - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - spec describes how the user wants the resources to appear - * `additional_printer_columns` (`pulumi.Input[list]`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If present, this field configures columns for all versions. Top-level and per-version columns are mutually exclusive. If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. - * `JSONPath` (`pulumi.Input[str]`) - JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. - * `description` (`pulumi.Input[str]`) - description is a human readable description of this column. - * `format` (`pulumi.Input[str]`) - format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - * `name` (`pulumi.Input[str]`) - name is a human readable name for the column. - * `priority` (`pulumi.Input[float]`) - priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0. - * `type` (`pulumi.Input[str]`) - type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details. - - * `conversion` (`pulumi.Input[dict]`) - conversion defines conversion settings for the CRD. - * `conversion_review_versions` (`pulumi.Input[list]`) - conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. - * `strategy` (`pulumi.Input[str]`) - strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information - is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set. - * `webhook_client_config` (`pulumi.Input[dict]`) - webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. - * `ca_bundle` (`pulumi.Input[str]`) - caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - service is a reference to the service for this webhook. Either service or url must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - name is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - namespace is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - path is an optional URL path at which the webhook will be contacted. - * `port` (`pulumi.Input[float]`) - port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility. - - * `url` (`pulumi.Input[str]`) - url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `group` (`pulumi.Input[str]`) - group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`). - * `names` (`pulumi.Input[dict]`) - names specify the resource and kind names for the custom resource. - * `categories` (`pulumi.Input[list]`) - categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`. - * `kind` (`pulumi.Input[str]`) - kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls. - * `list_kind` (`pulumi.Input[str]`) - listKind is the serialized kind of the list for this resource. Defaults to "`kind`List". - * `plural` (`pulumi.Input[str]`) - plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase. - * `short_names` (`pulumi.Input[list]`) - shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase. - * `singular` (`pulumi.Input[str]`) - singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`. - - * `preserve_unknown_fields` (`pulumi.Input[bool]`) - preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. If false, schemas must be defined for all versions. Defaults to true in v1beta for backwards compatibility. Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. - * `scope` (`pulumi.Input[str]`) - scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`. - * `subresources` (`pulumi.Input[dict]`) - subresources specify what subresources the defined custom resource has. If present, this field configures subresources for all versions. Top-level and per-version subresources are mutually exclusive. - * `scale` (`pulumi.Input[dict]`) - scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object. - * `label_selector_path` (`pulumi.Input[str]`) - labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. - * `spec_replicas_path` (`pulumi.Input[str]`) - specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET. - * `status_replicas_path` (`pulumi.Input[str]`) - statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0. - - * `status` (`pulumi.Input[dict]`) - status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object. - - * `validation` (`pulumi.Input[dict]`) - validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive. - * `open_apiv3_schema` (`pulumi.Input[dict]`) - openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning. - * `_ref` (`pulumi.Input[str]`) - * `_schema` (`pulumi.Input[str]`) - * `additional_items` (`pulumi.Input[dict]`) - * `additional_properties` (`pulumi.Input[dict]`) - * `all_of` (`pulumi.Input[list]`) - * `any_of` (`pulumi.Input[list]`) - * `default` (`pulumi.Input[dict]`) - default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API. - * `definitions` (`pulumi.Input[dict]`) - * `dependencies` (`pulumi.Input[dict]`) - * `description` (`pulumi.Input[str]`) - * `enum` (`pulumi.Input[list]`) - * `example` (`pulumi.Input[dict]`) - * `exclusive_maximum` (`pulumi.Input[bool]`) - * `exclusive_minimum` (`pulumi.Input[bool]`) - * `external_docs` (`pulumi.Input[dict]`) - * `description` (`pulumi.Input[str]`) - * `url` (`pulumi.Input[str]`) - - * `format` (`pulumi.Input[str]`) - format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: - - - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339. - * `id` (`pulumi.Input[str]`) - * `items` (`pulumi.Input[dict]`) - * `max_items` (`pulumi.Input[float]`) - * `max_length` (`pulumi.Input[float]`) - * `max_properties` (`pulumi.Input[float]`) - * `maximum` (`pulumi.Input[float]`) - * `min_items` (`pulumi.Input[float]`) - * `min_length` (`pulumi.Input[float]`) - * `min_properties` (`pulumi.Input[float]`) - * `minimum` (`pulumi.Input[float]`) - * `multiple_of` (`pulumi.Input[float]`) - * `not` (`pulumi.Input[dict]`) - * `nullable` (`pulumi.Input[bool]`) - * `one_of` (`pulumi.Input[list]`) - * `pattern` (`pulumi.Input[str]`) - * `pattern_properties` (`pulumi.Input[dict]`) - * `properties` (`pulumi.Input[dict]`) - * `required` (`pulumi.Input[list]`) - * `title` (`pulumi.Input[str]`) - * `type` (`pulumi.Input[str]`) - * `unique_items` (`pulumi.Input[bool]`) - * `x_kubernetes_embedded_resource` (`pulumi.Input[bool]`) - x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). - * `x_kubernetes_int_or_string` (`pulumi.Input[bool]`) - x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: - - 1) anyOf: - - type: integer - - type: string - 2) allOf: - - anyOf: - - type: integer - - type: string - - ... zero or more - * `x_kubernetes_list_map_keys` (`pulumi.Input[list]`) - x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map. - - This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported). - - The properties specified must either be required or have a default value, to ensure those properties are present for all list items. - * `x_kubernetes_list_type` (`pulumi.Input[str]`) - x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values: - - 1) `atomic`: the list is treated as a single entity, like a scalar. - Atomic lists will be entirely replaced when updated. This extension - may be used on any type of list (struct, scalar, ...). - 2) `set`: - Sets are lists that must not have multiple items with the same value. Each - value must be a scalar, an object with x-kubernetes-map-type `atomic` or an - array with x-kubernetes-list-type `atomic`. - 3) `map`: - These lists are like maps in that their elements have a non-index key - used to identify them. Order is preserved upon merge. The map tag - must only be used on a list with elements of type object. - Defaults to atomic for arrays. - * `x_kubernetes_map_type` (`pulumi.Input[str]`) - x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values: - - 1) `granular`: - These maps are actual maps (key-value pairs) and each fields are independent - from each other (they can each be manipulated by separate actors). This is - the default behaviour for all maps. - 2) `atomic`: the list is treated as a single entity, like a scalar. - Atomic maps will be entirely replaced when updated. - * `x_kubernetes_preserve_unknown_fields` (`pulumi.Input[bool]`) - x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. - - * `version` (`pulumi.Input[str]`) - version is the API version of the defined custom resource. The custom resources are served under `/apis///...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead. - * `versions` (`pulumi.Input[list]`) - versions is the list of all API versions of the defined custom resource. Optional if `version` is specified. The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - * `additional_printer_columns` (`pulumi.Input[list]`) - additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used. - * `name` (`pulumi.Input[str]`) - name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis///...` if `served` is true. - * `schema` (`pulumi.Input[dict]`) - schema describes the schema used for validation and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead). - * `served` (`pulumi.Input[bool]`) - served is a flag enabling/disabling this version from being served via REST APIs - * `storage` (`pulumi.Input[bool]`) - storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true. - * `subresources` (`pulumi.Input[dict]`) - subresources specify what subresources this version of the defined custom resource have. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead). - - * `status` (`pulumi.Input[dict]`) - status indicates the actual state of the CustomResourceDefinition - * `accepted_names` (`pulumi.Input[dict]`) - acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec. - * `conditions` (`pulumi.Input[list]`) - conditions indicate state for particular aspects of a CustomResourceDefinition - * `lastTransitionTime` (`pulumi.Input[str]`) - lastTransitionTime last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - message is a human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - reason is a unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - status is the status of the condition. Can be True, False, Unknown. - * `type` (`pulumi.Input[str]`) - type is the type of the condition. Types include Established, NamesAccepted and Terminating. - - * `stored_versions` (`pulumi.Input[list]`) - storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py index da4ba331d7..a43cdfbc07 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py @@ -23,27 +23,10 @@ class APIService(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec contains information for locating and communicating with a server - * `ca_bundle` (`str`) - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. - * `group` (`str`) - Group is the API group name this server hosts - * `group_priority_minimum` (`float`) - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s - * `insecure_skip_tls_verify` (`bool`) - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. - * `service` (`dict`) - 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. - * `name` (`str`) - Name is the name of the service - * `namespace` (`str`) - Namespace is the namespace of the service - * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `version` (`str`) - Version is the API version this server hosts. For example, "v1" - * `version_priority` (`float`) - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. """ status: pulumi.Output[dict] """ Status contains derived information about an API server - * `conditions` (`list`) - Current service state of apiService. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - Human-readable message indicating details about last transition. - * `reason` (`str`) - Unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`str`) - Status is the status of the condition. Can be True, False, Unknown. - * `type` (`str`) - Type is the type of the condition. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -53,69 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec contains information for locating and communicating with a server - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `ca_bundle` (`pulumi.Input[str]`) - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. - * `group` (`pulumi.Input[str]`) - Group is the API group name this server hosts - * `group_priority_minimum` (`pulumi.Input[float]`) - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s - * `insecure_skip_tls_verify` (`pulumi.Input[bool]`) - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. - * `service` (`pulumi.Input[dict]`) - 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. - * `name` (`pulumi.Input[str]`) - Name is the name of the service - * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the service - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `version` (`pulumi.Input[str]`) - Version is the API version this server hosts. For example, "v1" - * `version_priority` (`pulumi.Input[float]`) - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py index 9db1262d47..38931d3953 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py @@ -28,88 +28,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.ResourceOptions opts: Options for the resource. :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 :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 - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec contains information for locating and communicating with a server - * `ca_bundle` (`pulumi.Input[str]`) - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. - * `group` (`pulumi.Input[str]`) - Group is the API group name this server hosts - * `group_priority_minimum` (`pulumi.Input[float]`) - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s - * `insecure_skip_tls_verify` (`pulumi.Input[bool]`) - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. - * `service` (`pulumi.Input[dict]`) - 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. - * `name` (`pulumi.Input[str]`) - Name is the name of the service - * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the service - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `version` (`pulumi.Input[str]`) - Version is the API version this server hosts. For example, "v1" - * `version_priority` (`pulumi.Input[float]`) - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - - * `status` (`pulumi.Input[dict]`) - Status contains derived information about an API server - * `conditions` (`pulumi.Input[list]`) - Current service state of apiService. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - Unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status is the status of the condition. Can be True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type is the type of the condition. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py index 29b5ab54b5..18a744978d 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py @@ -23,27 +23,10 @@ class APIService(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec contains information for locating and communicating with a server - * `ca_bundle` (`str`) - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. - * `group` (`str`) - Group is the API group name this server hosts - * `group_priority_minimum` (`float`) - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s - * `insecure_skip_tls_verify` (`bool`) - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. - * `service` (`dict`) - 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. - * `name` (`str`) - Name is the name of the service - * `namespace` (`str`) - Namespace is the namespace of the service - * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `version` (`str`) - Version is the API version this server hosts. For example, "v1" - * `version_priority` (`float`) - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. """ status: pulumi.Output[dict] """ Status contains derived information about an API server - * `conditions` (`list`) - Current service state of apiService. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - Human-readable message indicating details about last transition. - * `reason` (`str`) - Unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`str`) - Status is the status of the condition. Can be True, False, Unknown. - * `type` (`str`) - Type is the type of the condition. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -53,69 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec contains information for locating and communicating with a server - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `ca_bundle` (`pulumi.Input[str]`) - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. - * `group` (`pulumi.Input[str]`) - Group is the API group name this server hosts - * `group_priority_minimum` (`pulumi.Input[float]`) - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s - * `insecure_skip_tls_verify` (`pulumi.Input[bool]`) - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. - * `service` (`pulumi.Input[dict]`) - 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. - * `name` (`pulumi.Input[str]`) - Name is the name of the service - * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the service - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `version` (`pulumi.Input[str]`) - Version is the API version this server hosts. For example, "v1" - * `version_priority` (`pulumi.Input[float]`) - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py index 7b28dca275..44b987fb08 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py @@ -28,88 +28,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.ResourceOptions opts: Options for the resource. :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 :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 - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec contains information for locating and communicating with a server - * `ca_bundle` (`pulumi.Input[str]`) - CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. - * `group` (`pulumi.Input[str]`) - Group is the API group name this server hosts - * `group_priority_minimum` (`pulumi.Input[float]`) - GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s - * `insecure_skip_tls_verify` (`pulumi.Input[bool]`) - InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. - * `service` (`pulumi.Input[dict]`) - 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. - * `name` (`pulumi.Input[str]`) - Name is the name of the service - * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the service - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `version` (`pulumi.Input[str]`) - Version is the API version this server hosts. For example, "v1" - * `version_priority` (`pulumi.Input[float]`) - VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. - - * `status` (`pulumi.Input[dict]`) - Status contains derived information about an API server - * `conditions` (`pulumi.Input[list]`) - Current service state of apiService. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - Unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status is the status of the condition. Can be True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type is the type of the condition. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py index 6c38a58738..a7d1ddcb57 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py @@ -26,52 +26,6 @@ class ControllerRevision(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ revision: pulumi.Output[float] """ @@ -87,55 +41,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, data=None, ki :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[float] revision: Revision indicates the revision of the state represented by Data. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py index 35471cea89..e60d2afb5c 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py @@ -18,58 +18,6 @@ class ControllerRevisionList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of ControllerRevisions - * `api_version` (`str`) - 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 - * `data` (`dict`) - Data is the serialized representation of the state. - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `revision` (`float`) - Revision indicates the revision of the state represented by Data. """ kind: pulumi.Output[str] """ @@ -78,12 +26,6 @@ class ControllerRevisionList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -94,70 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of ControllerRevisions :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 :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `data` (`pulumi.Input[dict]`) - Data is the serialized representation of the state. - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `revision` (`pulumi.Input[float]`) - Revision indicates the revision of the state represented by Data. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py index 7bc044fa74..53190637ea 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py @@ -22,597 +22,14 @@ class DaemonSet(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * `revision_history_limit` (`float`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`dict`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`dict`) - An update strategy to replace existing DaemonSet pods with new pods. - * `rolling_update` (`dict`) - Rolling update config params. Present only if type = "RollingUpdate". - * `max_unavailable` (`dict`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - * `type` (`str`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. """ status: pulumi.Output[dict] """ The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `collision_count` (`float`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`list`) - Represents the latest available observations of a DaemonSet's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of DaemonSet condition. - - * `current_number_scheduled` (`float`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `desired_number_scheduled` (`float`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_available` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `number_misscheduled` (`float`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_ready` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. - * `number_unavailable` (`float`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `observed_generation` (`float`) - The most recent generation observed by the daemon set controller. - * `updated_number_scheduled` (`float`) - The total number of nodes that are running updated daemon pod """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -623,532 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `min_ready_seconds` (`pulumi.Input[float]`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`pulumi.Input[dict]`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`pulumi.Input[dict]`) - An update strategy to replace existing DaemonSet pods with new pods. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if type = "RollingUpdate". - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - * `type` (`pulumi.Input[str]`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py index 0292ff7662..cd20c6e4b8 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py @@ -18,549 +18,6 @@ class DaemonSetList(pulumi.CustomResource): items: pulumi.Output[list] """ A list of daemon sets. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * `revision_history_limit` (`float`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`dict`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`dict`) - An update strategy to replace existing DaemonSet pods with new pods. - * `rolling_update` (`dict`) - Rolling update config params. Present only if type = "RollingUpdate". - * `max_unavailable` (`dict`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - * `type` (`str`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - - * `status` (`dict`) - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `collision_count` (`float`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`list`) - Represents the latest available observations of a DaemonSet's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of DaemonSet condition. - - * `current_number_scheduled` (`float`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `desired_number_scheduled` (`float`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_available` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `number_misscheduled` (`float`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_ready` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. - * `number_unavailable` (`float`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `observed_generation` (`float`) - The most recent generation observed by the daemon set controller. - * `updated_number_scheduled` (`float`) - The total number of nodes that are running updated daemon pod """ kind: pulumi.Output[str] """ @@ -569,12 +26,6 @@ class DaemonSetList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -585,561 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: A list of daemon sets. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`pulumi.Input[float]`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`pulumi.Input[dict]`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`pulumi.Input[dict]`) - An update strategy to replace existing DaemonSet pods with new pods. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if type = "RollingUpdate". - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - * `type` (`pulumi.Input[str]`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - - * `status` (`pulumi.Input[dict]`) - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a DaemonSet's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of DaemonSet condition. - - * `current_number_scheduled` (`pulumi.Input[float]`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `desired_number_scheduled` (`pulumi.Input[float]`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_available` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `number_misscheduled` (`pulumi.Input[float]`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_ready` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. - * `number_unavailable` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `observed_generation` (`pulumi.Input[float]`) - The most recent generation observed by the daemon set controller. - * `updated_number_scheduled` (`pulumi.Input[float]`) - The total number of nodes that are running updated daemon pod - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1/deployment.py index 356dbef224..7a3ffaf1e8 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/deployment.py @@ -22,600 +22,14 @@ class Deployment(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the desired behavior of the Deployment. - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`bool`) - Indicates that the deployment is paused. - * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`dict`) - Template describes the pods that will be created. - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk """ status: pulumi.Output[dict] """ Most recently observed status of the Deployment. - * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. - * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `lastUpdateTime` (`str`) - The last time this condition was updated. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of deployment condition. - - * `observed_generation` (`float`) - The generation observed by the deployment controller. - * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. - * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. - * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -648,536 +62,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata. :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused. - * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py index b48a5a0370..fa4f02150b 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py @@ -18,552 +18,6 @@ class DeploymentList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of Deployments. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the Deployment. - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`bool`) - Indicates that the deployment is paused. - * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`dict`) - Template describes the pods that will be created. - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `status` (`dict`) - Most recently observed status of the Deployment. - * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. - * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `lastUpdateTime` (`str`) - The last time this condition was updated. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of deployment condition. - - * `observed_generation` (`float`) - The generation observed by the deployment controller. - * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. - * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. - * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. """ kind: pulumi.Output[str] """ @@ -572,12 +26,6 @@ class DeploymentList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -588,564 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of Deployments. :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 :param pulumi.Input[dict] metadata: Standard list metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the Deployment. - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused. - * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `status` (`pulumi.Input[dict]`) - Most recently observed status of the Deployment. - * `available_replicas` (`pulumi.Input[float]`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a deployment's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `lastUpdateTime` (`pulumi.Input[str]`) - The last time this condition was updated. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of deployment condition. - - * `observed_generation` (`pulumi.Input[float]`) - The generation observed by the deployment controller. - * `ready_replicas` (`pulumi.Input[float]`) - Total number of ready pods targeted by this deployment. - * `replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * `unavailable_replicas` (`pulumi.Input[float]`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. - * `updated_replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py b/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py index 8cb44e9efc..42f459b8ea 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py @@ -22,587 +22,14 @@ class ReplicaSet(pulumi.CustomResource): metadata: pulumi.Output[dict] """ If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * `selector` (`dict`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk """ status: pulumi.Output[dict] """ Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. - * `conditions` (`list`) - Represents the latest available observations of a replica set's current state. - * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of replica set condition. - - * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replicaset. - * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - * `ready_replicas` (`float`) - The number of ready replicas for this replica set. - * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -613,526 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py index 630a0df81c..5ed5563165 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py @@ -18,539 +18,6 @@ class ReplicaSetList(pulumi.CustomResource): items: pulumi.Output[list] """ List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * `selector` (`dict`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `status` (`dict`) - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. - * `conditions` (`list`) - Represents the latest available observations of a replica set's current state. - * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of replica set condition. - - * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replicaset. - * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - * `ready_replicas` (`float`) - The number of ready replicas for this replica set. - * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller """ kind: pulumi.Output[str] """ @@ -559,12 +26,6 @@ class ReplicaSetList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -575,551 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `status` (`pulumi.Input[dict]`) - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `available_replicas` (`pulumi.Input[float]`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a replica set's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - The last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of replica set condition. - - * `fully_labeled_replicas` (`pulumi.Input[float]`) - The number of pods that have labels matching the labels of the pod template of the replicaset. - * `observed_generation` (`pulumi.Input[float]`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - * `ready_replicas` (`pulumi.Input[float]`) - The number of ready replicas for this replica set. - * `replicas` (`pulumi.Input[float]`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py index b06ba7a0ea..bf3f8bcae3 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py @@ -23,578 +23,10 @@ class StatefulSet(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec defines the desired identities of pods in this set. - * `pod_management_policy` (`str`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. - * `replicas` (`float`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. - * `revision_history_limit` (`float`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. - * `selector` (`dict`) - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `service_name` (`str`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. - * `template` (`dict`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`dict`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. - * `rolling_update` (`dict`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - * `partition` (`float`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. - - * `type` (`str`) - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. - - * `volume_claim_templates` (`list`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`list`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `data_source` (`dict`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `resources` (`dict`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `selector` (`dict`) - A label query over volumes to consider for binding. - * `storage_class_name` (`str`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * `volume_mode` (`str`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * `volume_name` (`str`) - VolumeName is the binding reference to the PersistentVolume backing this claim. - - * `status` (`dict`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`list`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `capacity` (`dict`) - Represents the actual resources of the underlying volume. - * `conditions` (`list`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - * `lastProbeTime` (`str`) - Last time we probed the condition. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - Human-readable message indicating details about last transition. - * `reason` (`str`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. - * `status` (`str`) - * `type` (`str`) - - * `phase` (`str`) - Phase represents the current phase of PersistentVolumeClaim. """ status: pulumi.Output[dict] """ Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. - * `collision_count` (`float`) - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`list`) - Represents the latest available observations of a statefulset's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of statefulset condition. - - * `current_replicas` (`float`) - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. - * `current_revision` (`str`) - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). - * `observed_generation` (`float`) - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. - * `ready_replicas` (`float`) - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. - * `replicas` (`float`) - replicas is the number of Pods created by the StatefulSet controller. - * `update_revision` (`str`) - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) - * `updated_replicas` (`float`) - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -620,564 +52,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `pod_management_policy` (`pulumi.Input[str]`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. - * `replicas` (`pulumi.Input[float]`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. - * `selector` (`pulumi.Input[dict]`) - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `service_name` (`pulumi.Input[str]`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. - * `template` (`pulumi.Input[dict]`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`pulumi.Input[dict]`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. - * `rolling_update` (`pulumi.Input[dict]`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - * `partition` (`pulumi.Input[float]`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. - - * `type` (`pulumi.Input[str]`) - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. - - * `volume_claim_templates` (`pulumi.Input[list]`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. - * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. - - * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. - * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. - * `status` (`pulumi.Input[str]`) - * `type` (`pulumi.Input[str]`) - - * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py index 1c966b6b78..3bb7814436 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py @@ -28,592 +28,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.ResourceOptions opts: Options for the resource. :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 :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 - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the desired identities of pods in this set. - * `pod_management_policy` (`pulumi.Input[str]`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. - * `replicas` (`pulumi.Input[float]`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. - * `selector` (`pulumi.Input[dict]`) - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `service_name` (`pulumi.Input[str]`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. - * `template` (`pulumi.Input[dict]`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`pulumi.Input[dict]`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. - * `rolling_update` (`pulumi.Input[dict]`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - * `partition` (`pulumi.Input[float]`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. - - * `type` (`pulumi.Input[str]`) - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. - - * `volume_claim_templates` (`pulumi.Input[list]`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. - * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. - - * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. - * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. - * `status` (`pulumi.Input[str]`) - * `type` (`pulumi.Input[str]`) - - * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. - - * `status` (`pulumi.Input[dict]`) - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. - * `collision_count` (`pulumi.Input[float]`) - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a statefulset's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of statefulset condition. - - * `current_replicas` (`pulumi.Input[float]`) - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. - * `current_revision` (`pulumi.Input[str]`) - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). - * `observed_generation` (`pulumi.Input[float]`) - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. - * `ready_replicas` (`pulumi.Input[float]`) - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. - * `replicas` (`pulumi.Input[float]`) - replicas is the number of Pods created by the StatefulSet controller. - * `update_revision` (`pulumi.Input[str]`) - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) - * `updated_replicas` (`pulumi.Input[float]`) - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py index f9f83cf750..9170655316 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py @@ -27,52 +27,6 @@ class ControllerRevision(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ revision: pulumi.Output[float] """ @@ -89,55 +43,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, data=None, ki :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[float] revision: Revision indicates the revision of the state represented by Data. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ pulumi.log.warn("ControllerRevision is deprecated: apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.") if __name__ is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py index 1f0e9c7c56..88ef254bba 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py @@ -18,58 +18,6 @@ class ControllerRevisionList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of ControllerRevisions - * `api_version` (`str`) - 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 - * `data` (`dict`) - Data is the serialized representation of the state. - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `revision` (`float`) - Revision indicates the revision of the state represented by Data. """ kind: pulumi.Output[str] """ @@ -78,12 +26,6 @@ class ControllerRevisionList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -94,70 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of ControllerRevisions :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 :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `data` (`pulumi.Input[dict]`) - Data is the serialized representation of the state. - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `revision` (`pulumi.Input[float]`) - Revision indicates the revision of the state represented by Data. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py index db614d8639..93862c678a 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py @@ -23,603 +23,14 @@ class Deployment(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the desired behavior of the Deployment. - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`bool`) - Indicates that the deployment is paused. - * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. - * `rollback_to` (`dict`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. - * `revision` (`float`) - The revision to rollback to. If set to 0, rollback to the last revision. - - * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`dict`) - Template describes the pods that will be created. - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk """ status: pulumi.Output[dict] """ Most recently observed status of the Deployment. - * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. - * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `lastUpdateTime` (`str`) - The last time this condition was updated. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of deployment condition. - - * `observed_generation` (`float`) - The generation observed by the deployment controller. - * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. - * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. - * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. """ warnings.warn("apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): @@ -653,539 +64,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata. :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused. - * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. - * `rollback_to` (`pulumi.Input[dict]`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. - * `revision` (`pulumi.Input[float]`) - The revision to rollback to. If set to 0, rollback to the last revision. - - * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk """ pulumi.log.warn("Deployment is deprecated: apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.") if __name__ is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py index 76a9703560..97834d3d24 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py @@ -18,555 +18,6 @@ class DeploymentList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of Deployments. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the Deployment. - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`bool`) - Indicates that the deployment is paused. - * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. - * `rollback_to` (`dict`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. - * `revision` (`float`) - The revision to rollback to. If set to 0, rollback to the last revision. - - * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`dict`) - Template describes the pods that will be created. - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `status` (`dict`) - Most recently observed status of the Deployment. - * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. - * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `lastUpdateTime` (`str`) - The last time this condition was updated. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of deployment condition. - - * `observed_generation` (`float`) - The generation observed by the deployment controller. - * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. - * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. - * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. """ kind: pulumi.Output[str] """ @@ -575,12 +26,6 @@ class DeploymentList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -591,567 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of Deployments. :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 :param pulumi.Input[dict] metadata: Standard list metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the Deployment. - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused. - * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. - * `rollback_to` (`pulumi.Input[dict]`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. - * `revision` (`pulumi.Input[float]`) - The revision to rollback to. If set to 0, rollback to the last revision. - - * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `status` (`pulumi.Input[dict]`) - Most recently observed status of the Deployment. - * `available_replicas` (`pulumi.Input[float]`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a deployment's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `lastUpdateTime` (`pulumi.Input[str]`) - The last time this condition was updated. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of deployment condition. - - * `observed_generation` (`pulumi.Input[float]`) - The generation observed by the deployment controller. - * `ready_replicas` (`pulumi.Input[float]`) - Total number of ready pods targeted by this deployment. - * `replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * `unavailable_replicas` (`pulumi.Input[float]`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. - * `updated_replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py index 2ca6f3eaab..5c990495dd 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py @@ -24,578 +24,10 @@ class StatefulSet(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec defines the desired identities of pods in this set. - * `pod_management_policy` (`str`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. - * `replicas` (`float`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. - * `revision_history_limit` (`float`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. - * `selector` (`dict`) - selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `service_name` (`str`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. - * `template` (`dict`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`dict`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. - * `rolling_update` (`dict`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - * `partition` (`float`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. - - * `type` (`str`) - Type indicates the type of the StatefulSetUpdateStrategy. - - * `volume_claim_templates` (`list`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`list`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `data_source` (`dict`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `resources` (`dict`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `selector` (`dict`) - A label query over volumes to consider for binding. - * `storage_class_name` (`str`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * `volume_mode` (`str`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * `volume_name` (`str`) - VolumeName is the binding reference to the PersistentVolume backing this claim. - - * `status` (`dict`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`list`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `capacity` (`dict`) - Represents the actual resources of the underlying volume. - * `conditions` (`list`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - * `lastProbeTime` (`str`) - Last time we probed the condition. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - Human-readable message indicating details about last transition. - * `reason` (`str`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. - * `status` (`str`) - * `type` (`str`) - - * `phase` (`str`) - Phase represents the current phase of PersistentVolumeClaim. """ status: pulumi.Output[dict] """ Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. - * `collision_count` (`float`) - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`list`) - Represents the latest available observations of a statefulset's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of statefulset condition. - - * `current_replicas` (`float`) - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. - * `current_revision` (`str`) - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). - * `observed_generation` (`float`) - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. - * `ready_replicas` (`float`) - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. - * `replicas` (`float`) - replicas is the number of Pods created by the StatefulSet controller. - * `update_revision` (`str`) - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) - * `updated_replicas` (`float`) - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. """ warnings.warn("apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): @@ -622,564 +54,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `pod_management_policy` (`pulumi.Input[str]`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. - * `replicas` (`pulumi.Input[float]`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. - * `selector` (`pulumi.Input[dict]`) - selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `service_name` (`pulumi.Input[str]`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. - * `template` (`pulumi.Input[dict]`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`pulumi.Input[dict]`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. - * `rolling_update` (`pulumi.Input[dict]`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - * `partition` (`pulumi.Input[float]`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. - - * `type` (`pulumi.Input[str]`) - Type indicates the type of the StatefulSetUpdateStrategy. - - * `volume_claim_templates` (`pulumi.Input[list]`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. - * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. - - * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. - * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. - * `status` (`pulumi.Input[str]`) - * `type` (`pulumi.Input[str]`) - - * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. """ pulumi.log.warn("StatefulSet is deprecated: apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.") if __name__ is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py index 906fe9c144..8d2b518b29 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py @@ -28,592 +28,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.ResourceOptions opts: Options for the resource. :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 :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 - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the desired identities of pods in this set. - * `pod_management_policy` (`pulumi.Input[str]`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. - * `replicas` (`pulumi.Input[float]`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. - * `selector` (`pulumi.Input[dict]`) - selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `service_name` (`pulumi.Input[str]`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. - * `template` (`pulumi.Input[dict]`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`pulumi.Input[dict]`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. - * `rolling_update` (`pulumi.Input[dict]`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - * `partition` (`pulumi.Input[float]`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. - - * `type` (`pulumi.Input[str]`) - Type indicates the type of the StatefulSetUpdateStrategy. - - * `volume_claim_templates` (`pulumi.Input[list]`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. - * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. - - * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. - * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. - * `status` (`pulumi.Input[str]`) - * `type` (`pulumi.Input[str]`) - - * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. - - * `status` (`pulumi.Input[dict]`) - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. - * `collision_count` (`pulumi.Input[float]`) - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a statefulset's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of statefulset condition. - - * `current_replicas` (`pulumi.Input[float]`) - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. - * `current_revision` (`pulumi.Input[str]`) - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). - * `observed_generation` (`pulumi.Input[float]`) - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. - * `ready_replicas` (`pulumi.Input[float]`) - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. - * `replicas` (`pulumi.Input[float]`) - replicas is the number of Pods created by the StatefulSet controller. - * `update_revision` (`pulumi.Input[str]`) - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) - * `updated_replicas` (`pulumi.Input[float]`) - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py index 8309c1d6a4..6472f672ff 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py @@ -27,52 +27,6 @@ class ControllerRevision(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ revision: pulumi.Output[float] """ @@ -89,55 +43,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, data=None, ki :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[float] revision: Revision indicates the revision of the state represented by Data. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ pulumi.log.warn("ControllerRevision is deprecated: apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.") if __name__ is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py index a9193503ff..af9c4e0b40 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py @@ -18,58 +18,6 @@ class ControllerRevisionList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of ControllerRevisions - * `api_version` (`str`) - 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 - * `data` (`dict`) - Data is the serialized representation of the state. - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `revision` (`float`) - Revision indicates the revision of the state represented by Data. """ kind: pulumi.Output[str] """ @@ -78,12 +26,6 @@ class ControllerRevisionList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -94,70 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of ControllerRevisions :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 :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `data` (`pulumi.Input[dict]`) - Data is the serialized representation of the state. - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `revision` (`pulumi.Input[float]`) - Revision indicates the revision of the state represented by Data. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py index f0ac233697..8d277e4c88 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py @@ -23,597 +23,14 @@ class DaemonSet(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * `revision_history_limit` (`float`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`dict`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`dict`) - An update strategy to replace existing DaemonSet pods with new pods. - * `rolling_update` (`dict`) - Rolling update config params. Present only if type = "RollingUpdate". - * `max_unavailable` (`dict`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - * `type` (`str`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. """ status: pulumi.Output[dict] """ The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `collision_count` (`float`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`list`) - Represents the latest available observations of a DaemonSet's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of DaemonSet condition. - - * `current_number_scheduled` (`float`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `desired_number_scheduled` (`float`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_available` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `number_misscheduled` (`float`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_ready` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. - * `number_unavailable` (`float`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `observed_generation` (`float`) - The most recent generation observed by the daemon set controller. - * `updated_number_scheduled` (`float`) - The total number of nodes that are running updated daemon pod """ warnings.warn("apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): @@ -625,532 +42,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `min_ready_seconds` (`pulumi.Input[float]`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`pulumi.Input[dict]`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`pulumi.Input[dict]`) - An update strategy to replace existing DaemonSet pods with new pods. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if type = "RollingUpdate". - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - * `type` (`pulumi.Input[str]`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. """ pulumi.log.warn("DaemonSet is deprecated: apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.") if __name__ is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py index 9b38cd4be8..dd1b58d345 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py @@ -18,549 +18,6 @@ class DaemonSetList(pulumi.CustomResource): items: pulumi.Output[list] """ A list of daemon sets. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * `revision_history_limit` (`float`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`dict`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`dict`) - An update strategy to replace existing DaemonSet pods with new pods. - * `rolling_update` (`dict`) - Rolling update config params. Present only if type = "RollingUpdate". - * `max_unavailable` (`dict`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - * `type` (`str`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - - * `status` (`dict`) - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `collision_count` (`float`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`list`) - Represents the latest available observations of a DaemonSet's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of DaemonSet condition. - - * `current_number_scheduled` (`float`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `desired_number_scheduled` (`float`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_available` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `number_misscheduled` (`float`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_ready` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. - * `number_unavailable` (`float`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `observed_generation` (`float`) - The most recent generation observed by the daemon set controller. - * `updated_number_scheduled` (`float`) - The total number of nodes that are running updated daemon pod """ kind: pulumi.Output[str] """ @@ -569,12 +26,6 @@ class DaemonSetList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -585,561 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: A list of daemon sets. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`pulumi.Input[float]`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`pulumi.Input[dict]`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`pulumi.Input[dict]`) - An update strategy to replace existing DaemonSet pods with new pods. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if type = "RollingUpdate". - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - * `type` (`pulumi.Input[str]`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - - * `status` (`pulumi.Input[dict]`) - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a DaemonSet's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of DaemonSet condition. - - * `current_number_scheduled` (`pulumi.Input[float]`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `desired_number_scheduled` (`pulumi.Input[float]`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_available` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `number_misscheduled` (`pulumi.Input[float]`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_ready` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. - * `number_unavailable` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `observed_generation` (`pulumi.Input[float]`) - The most recent generation observed by the daemon set controller. - * `updated_number_scheduled` (`pulumi.Input[float]`) - The total number of nodes that are running updated daemon pod - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py index f57e5f1ea5..d817f2bef1 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py @@ -23,600 +23,14 @@ class Deployment(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the desired behavior of the Deployment. - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`bool`) - Indicates that the deployment is paused. - * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`dict`) - Template describes the pods that will be created. - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk """ status: pulumi.Output[dict] """ Most recently observed status of the Deployment. - * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. - * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `lastUpdateTime` (`str`) - The last time this condition was updated. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of deployment condition. - - * `observed_generation` (`float`) - The generation observed by the deployment controller. - * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. - * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. - * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. """ warnings.warn("apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): @@ -650,536 +64,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata. :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused. - * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk """ pulumi.log.warn("Deployment is deprecated: apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.") if __name__ is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py index 65a8cdc684..ed2d841e32 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py @@ -18,552 +18,6 @@ class DeploymentList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of Deployments. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the Deployment. - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`bool`) - Indicates that the deployment is paused. - * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`dict`) - Template describes the pods that will be created. - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `status` (`dict`) - Most recently observed status of the Deployment. - * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. - * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `lastUpdateTime` (`str`) - The last time this condition was updated. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of deployment condition. - - * `observed_generation` (`float`) - The generation observed by the deployment controller. - * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. - * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. - * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. """ kind: pulumi.Output[str] """ @@ -572,12 +26,6 @@ class DeploymentList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -588,564 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of Deployments. :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 :param pulumi.Input[dict] metadata: Standard list metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the Deployment. - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused. - * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. - * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `status` (`pulumi.Input[dict]`) - Most recently observed status of the Deployment. - * `available_replicas` (`pulumi.Input[float]`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a deployment's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `lastUpdateTime` (`pulumi.Input[str]`) - The last time this condition was updated. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of deployment condition. - - * `observed_generation` (`pulumi.Input[float]`) - The generation observed by the deployment controller. - * `ready_replicas` (`pulumi.Input[float]`) - Total number of ready pods targeted by this deployment. - * `replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * `unavailable_replicas` (`pulumi.Input[float]`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. - * `updated_replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py index 2fa4a08961..82d353057b 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py @@ -23,587 +23,14 @@ class ReplicaSet(pulumi.CustomResource): metadata: pulumi.Output[dict] """ If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * `selector` (`dict`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk """ status: pulumi.Output[dict] """ Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. - * `conditions` (`list`) - Represents the latest available observations of a replica set's current state. - * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of replica set condition. - - * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replicaset. - * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - * `ready_replicas` (`float`) - The number of ready replicas for this replica set. - * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller """ warnings.warn("apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): @@ -615,526 +42,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk """ pulumi.log.warn("ReplicaSet is deprecated: apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.") if __name__ is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py index 6290ea162d..fb1244233a 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py @@ -18,539 +18,6 @@ class ReplicaSetList(pulumi.CustomResource): items: pulumi.Output[list] """ List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * `selector` (`dict`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `status` (`dict`) - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. - * `conditions` (`list`) - Represents the latest available observations of a replica set's current state. - * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of replica set condition. - - * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replicaset. - * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - * `ready_replicas` (`float`) - The number of ready replicas for this replica set. - * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller """ kind: pulumi.Output[str] """ @@ -559,12 +26,6 @@ class ReplicaSetList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -575,551 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `status` (`pulumi.Input[dict]`) - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `available_replicas` (`pulumi.Input[float]`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a replica set's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - The last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of replica set condition. - - * `fully_labeled_replicas` (`pulumi.Input[float]`) - The number of pods that have labels matching the labels of the pod template of the replicaset. - * `observed_generation` (`pulumi.Input[float]`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - * `ready_replicas` (`pulumi.Input[float]`) - The number of ready replicas for this replica set. - * `replicas` (`pulumi.Input[float]`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py index 41ec9d9a45..3060e2ee05 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py @@ -24,578 +24,10 @@ class StatefulSet(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec defines the desired identities of pods in this set. - * `pod_management_policy` (`str`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. - * `replicas` (`float`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. - * `revision_history_limit` (`float`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. - * `selector` (`dict`) - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `service_name` (`str`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. - * `template` (`dict`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`dict`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. - * `rolling_update` (`dict`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - * `partition` (`float`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. - - * `type` (`str`) - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. - - * `volume_claim_templates` (`list`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`list`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `data_source` (`dict`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `resources` (`dict`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `selector` (`dict`) - A label query over volumes to consider for binding. - * `storage_class_name` (`str`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * `volume_mode` (`str`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * `volume_name` (`str`) - VolumeName is the binding reference to the PersistentVolume backing this claim. - - * `status` (`dict`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`list`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `capacity` (`dict`) - Represents the actual resources of the underlying volume. - * `conditions` (`list`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - * `lastProbeTime` (`str`) - Last time we probed the condition. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - Human-readable message indicating details about last transition. - * `reason` (`str`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. - * `status` (`str`) - * `type` (`str`) - - * `phase` (`str`) - Phase represents the current phase of PersistentVolumeClaim. """ status: pulumi.Output[dict] """ Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. - * `collision_count` (`float`) - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`list`) - Represents the latest available observations of a statefulset's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of statefulset condition. - - * `current_replicas` (`float`) - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. - * `current_revision` (`str`) - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). - * `observed_generation` (`float`) - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. - * `ready_replicas` (`float`) - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. - * `replicas` (`float`) - replicas is the number of Pods created by the StatefulSet controller. - * `update_revision` (`str`) - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) - * `updated_replicas` (`float`) - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. """ warnings.warn("apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): @@ -622,564 +54,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `pod_management_policy` (`pulumi.Input[str]`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. - * `replicas` (`pulumi.Input[float]`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. - * `selector` (`pulumi.Input[dict]`) - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `service_name` (`pulumi.Input[str]`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. - * `template` (`pulumi.Input[dict]`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`pulumi.Input[dict]`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. - * `rolling_update` (`pulumi.Input[dict]`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - * `partition` (`pulumi.Input[float]`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. - - * `type` (`pulumi.Input[str]`) - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. - - * `volume_claim_templates` (`pulumi.Input[list]`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. - * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. - - * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. - * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. - * `status` (`pulumi.Input[str]`) - * `type` (`pulumi.Input[str]`) - - * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. """ pulumi.log.warn("StatefulSet is deprecated: apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.") if __name__ is not None: diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py index e18127498e..a1d44d790a 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py @@ -28,592 +28,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.ResourceOptions opts: Options for the resource. :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 :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 - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the desired identities of pods in this set. - * `pod_management_policy` (`pulumi.Input[str]`) - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. - * `replicas` (`pulumi.Input[float]`) - replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. - * `selector` (`pulumi.Input[dict]`) - selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `service_name` (`pulumi.Input[str]`) - serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where "pod-specific-string" is managed by the StatefulSet controller. - * `template` (`pulumi.Input[dict]`) - template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `update_strategy` (`pulumi.Input[dict]`) - updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. - * `rolling_update` (`pulumi.Input[dict]`) - RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. - * `partition` (`pulumi.Input[float]`) - Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. - - * `type` (`pulumi.Input[str]`) - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. - - * `volume_claim_templates` (`pulumi.Input[list]`) - volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. - * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. - - * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. - * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. - * `status` (`pulumi.Input[str]`) - * `type` (`pulumi.Input[str]`) - - * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. - - * `status` (`pulumi.Input[dict]`) - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. - * `collision_count` (`pulumi.Input[float]`) - collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a statefulset's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of statefulset condition. - - * `current_replicas` (`pulumi.Input[float]`) - currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. - * `current_revision` (`pulumi.Input[str]`) - currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). - * `observed_generation` (`pulumi.Input[float]`) - observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. - * `ready_replicas` (`pulumi.Input[float]`) - readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. - * `replicas` (`pulumi.Input[float]`) - replicas is the number of Pods created by the StatefulSet controller. - * `update_revision` (`pulumi.Input[str]`) - updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) - * `updated_replicas` (`pulumi.Input[float]`) - updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py index b5b2b6889e..14bd48594b 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py @@ -23,36 +23,6 @@ class AuditSink(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec defines the audit configuration spec - * `policy` (`dict`) - Policy defines the policy for selecting which events should be sent to the webhook required - * `level` (`str`) - The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required - * `stages` (`list`) - Stages is a list of stages for which events are created. - - * `webhook` (`dict`) - Webhook to send events required - * `client_config` (`dict`) - ClientConfig holds the connection parameters for the webhook required - * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - `name` is the name of the service. Required - * `namespace` (`str`) - `namespace` is the namespace of the service. Required - * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `throttle` (`dict`) - Throttle holds the options for throttling the webhook - * `burst` (`float`) - ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS - * `qps` (`float`) - ThrottleQPS maximum number of batches per second default 10 QPS """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -62,88 +32,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec defines the audit configuration spec - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `policy` (`pulumi.Input[dict]`) - Policy defines the policy for selecting which events should be sent to the webhook required - * `level` (`pulumi.Input[str]`) - The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required - * `stages` (`pulumi.Input[list]`) - Stages is a list of stages for which events are created. - - * `webhook` (`pulumi.Input[dict]`) - Webhook to send events required - * `client_config` (`pulumi.Input[dict]`) - ClientConfig holds the connection parameters for the webhook required - * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `throttle` (`pulumi.Input[dict]`) - Throttle holds the options for throttling the webhook - * `burst` (`pulumi.Input[float]`) - ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS - * `qps` (`pulumi.Input[float]`) - ThrottleQPS maximum number of batches per second default 10 QPS """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py index 41f4f3b60a..84c079a538 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py @@ -18,87 +18,6 @@ class AuditSinkList(pulumi.CustomResource): items: pulumi.Output[list] """ List of audit configurations. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec defines the audit configuration spec - * `policy` (`dict`) - Policy defines the policy for selecting which events should be sent to the webhook required - * `level` (`str`) - The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required - * `stages` (`list`) - Stages is a list of stages for which events are created. - - * `webhook` (`dict`) - Webhook to send events required - * `client_config` (`dict`) - ClientConfig holds the connection parameters for the webhook required - * `ca_bundle` (`str`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`dict`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`str`) - `name` is the name of the service. Required - * `namespace` (`str`) - `namespace` is the namespace of the service. Required - * `path` (`str`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`float`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`str`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `throttle` (`dict`) - Throttle holds the options for throttling the webhook - * `burst` (`float`) - ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS - * `qps` (`float`) - ThrottleQPS maximum number of batches per second default 10 QPS """ kind: pulumi.Output[str] """ @@ -113,99 +32,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :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 :param pulumi.Input[list] items: List of audit configurations. :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 - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the audit configuration spec - * `policy` (`pulumi.Input[dict]`) - Policy defines the policy for selecting which events should be sent to the webhook required - * `level` (`pulumi.Input[str]`) - The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required - * `stages` (`pulumi.Input[list]`) - Stages is a list of stages for which events are created. - - * `webhook` (`pulumi.Input[dict]`) - Webhook to send events required - * `client_config` (`pulumi.Input[dict]`) - ClientConfig holds the connection parameters for the webhook required - * `ca_bundle` (`pulumi.Input[str]`) - `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. - * `service` (`pulumi.Input[dict]`) - `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. - - If the webhook is running within the cluster, then you should use `service`. - * `name` (`pulumi.Input[str]`) - `name` is the name of the service. Required - * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of the service. Required - * `path` (`pulumi.Input[str]`) - `path` is an optional URL path which will be sent in any request to this service. - * `port` (`pulumi.Input[float]`) - If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). - - * `url` (`pulumi.Input[str]`) - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - - * `throttle` (`pulumi.Input[dict]`) - Throttle holds the options for throttling the webhook - * `burst` (`pulumi.Input[float]`) - ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS - * `qps` (`pulumi.Input[float]`) - ThrottleQPS maximum number of batches per second default 10 QPS - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py b/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py index a9c022480b..92ba27f058 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py @@ -29,66 +29,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :param pulumi.ResourceOptions opts: Options for the resource. :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 :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 - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `audiences` (`pulumi.Input[list]`) - Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. - * `bound_object_ref` (`pulumi.Input[dict]`) - BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. Valid kinds are 'Pod' and 'Secret'. - * `name` (`pulumi.Input[str]`) - Name of the referent. - * `uid` (`pulumi.Input[str]`) - UID of the referent. - - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py b/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py index 876ae1f986..ae3dff45d3 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py @@ -23,20 +23,10 @@ class TokenReview(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec holds information about the request being evaluated - * `audiences` (`list`) - Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. - * `token` (`str`) - Token is the opaque bearer token. """ status: pulumi.Output[dict] """ Status is filled in by the server and indicates whether the request can be authenticated. - * `audiences` (`list`) - Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server. - * `authenticated` (`bool`) - Authenticated indicates that the token was associated with a known user. - * `error` (`str`) - Error indicates that the token couldn't be checked - * `user` (`dict`) - User is the UserInfo associated with the provided token. - * `extra` (`dict`) - Any additional information provided by the authenticator. - * `groups` (`list`) - The names of groups this user is a part of. - * `uid` (`str`) - A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. - * `username` (`str`) - The name that uniquely identifies this user among all active users. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -46,60 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `audiences` (`pulumi.Input[list]`) - Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. - * `token` (`pulumi.Input[str]`) - Token is the opaque bearer token. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py index 312ab73015..c9ed0aec43 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py @@ -23,20 +23,10 @@ class TokenReview(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec holds information about the request being evaluated - * `audiences` (`list`) - Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. - * `token` (`str`) - Token is the opaque bearer token. """ status: pulumi.Output[dict] """ Status is filled in by the server and indicates whether the request can be authenticated. - * `audiences` (`list`) - Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server. - * `authenticated` (`bool`) - Authenticated indicates that the token was associated with a known user. - * `error` (`str`) - Error indicates that the token couldn't be checked - * `user` (`dict`) - User is the UserInfo associated with the provided token. - * `extra` (`dict`) - Any additional information provided by the authenticator. - * `groups` (`list`) - The names of groups this user is a part of. - * `uid` (`str`) - A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. - * `username` (`str`) - The name that uniquely identifies this user among all active users. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -46,60 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `audiences` (`pulumi.Input[list]`) - Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. - * `token` (`pulumi.Input[str]`) - Token is the opaque bearer token. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py index 6dfe5eccd4..a3521ee199 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py @@ -23,31 +23,10 @@ class LocalSubjectAccessReview(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - * `extra` (`dict`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - * `groups` (`list`) - Groups is the groups you're testing for. - * `non_resource_attributes` (`dict`) - NonResourceAttributes describes information for a non-resource access request - * `path` (`str`) - Path is the URL path of the request - * `verb` (`str`) - Verb is the standard HTTP verb - - * `resource_attributes` (`dict`) - ResourceAuthorizationAttributes describes information for a resource access request - * `group` (`str`) - Group is the API Group of the Resource. "*" means all. - * `name` (`str`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * `namespace` (`str`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * `resource` (`str`) - Resource is one of the existing resource types. "*" means all. - * `subresource` (`str`) - Subresource is one of the existing resource types. "" means none. - * `verb` (`str`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * `version` (`str`) - Version is the API Version of the Resource. "*" means all. - - * `uid` (`str`) - UID information about the requesting user. - * `user` (`str`) - User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups """ status: pulumi.Output[dict] """ Status is filled in by the server and indicates whether the request is allowed or not - * `allowed` (`bool`) - Allowed is required. True if the action would be allowed, false otherwise. - * `denied` (`bool`) - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. - * `evaluation_error` (`str`) - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - * `reason` (`str`) - Reason is optional. It indicates why a request was allowed or denied. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -57,75 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `extra` (`pulumi.Input[dict]`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - * `groups` (`pulumi.Input[list]`) - Groups is the groups you're testing for. - * `non_resource_attributes` (`pulumi.Input[dict]`) - NonResourceAttributes describes information for a non-resource access request - * `path` (`pulumi.Input[str]`) - Path is the URL path of the request - * `verb` (`pulumi.Input[str]`) - Verb is the standard HTTP verb - - * `resource_attributes` (`pulumi.Input[dict]`) - ResourceAuthorizationAttributes describes information for a resource access request - * `group` (`pulumi.Input[str]`) - Group is the API Group of the Resource. "*" means all. - * `name` (`pulumi.Input[str]`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * `resource` (`pulumi.Input[str]`) - Resource is one of the existing resource types. "*" means all. - * `subresource` (`pulumi.Input[str]`) - Subresource is one of the existing resource types. "" means none. - * `verb` (`pulumi.Input[str]`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * `version` (`pulumi.Input[str]`) - Version is the API Version of the Resource. "*" means all. - - * `uid` (`pulumi.Input[str]`) - UID information about the requesting user. - * `user` (`pulumi.Input[str]`) - User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py index 43e4dfffe3..a870918f92 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py @@ -23,26 +23,10 @@ class SelfSubjectAccessReview(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec holds information about the request being evaluated. user and groups must be empty - * `non_resource_attributes` (`dict`) - NonResourceAttributes describes information for a non-resource access request - * `path` (`str`) - Path is the URL path of the request - * `verb` (`str`) - Verb is the standard HTTP verb - - * `resource_attributes` (`dict`) - ResourceAuthorizationAttributes describes information for a resource access request - * `group` (`str`) - Group is the API Group of the Resource. "*" means all. - * `name` (`str`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * `namespace` (`str`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * `resource` (`str`) - Resource is one of the existing resource types. "*" means all. - * `subresource` (`str`) - Subresource is one of the existing resource types. "" means none. - * `verb` (`str`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * `version` (`str`) - Version is the API Version of the Resource. "*" means all. """ status: pulumi.Output[dict] """ Status is filled in by the server and indicates whether the request is allowed or not - * `allowed` (`bool`) - Allowed is required. True if the action would be allowed, false otherwise. - * `denied` (`bool`) - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. - * `evaluation_error` (`str`) - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - * `reason` (`str`) - Reason is optional. It indicates why a request was allowed or denied. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -52,70 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. user and groups must be empty - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `non_resource_attributes` (`pulumi.Input[dict]`) - NonResourceAttributes describes information for a non-resource access request - * `path` (`pulumi.Input[str]`) - Path is the URL path of the request - * `verb` (`pulumi.Input[str]`) - Verb is the standard HTTP verb - - * `resource_attributes` (`pulumi.Input[dict]`) - ResourceAuthorizationAttributes describes information for a resource access request - * `group` (`pulumi.Input[str]`) - Group is the API Group of the Resource. "*" means all. - * `name` (`pulumi.Input[str]`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * `resource` (`pulumi.Input[str]`) - Resource is one of the existing resource types. "*" means all. - * `subresource` (`pulumi.Input[str]`) - Subresource is one of the existing resource types. "" means none. - * `verb` (`pulumi.Input[str]`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * `version` (`pulumi.Input[str]`) - Version is the API Version of the Resource. "*" means all. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py index e904d243e1..4f7eb1806e 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py @@ -23,23 +23,10 @@ class SelfSubjectRulesReview(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec holds information about the request being evaluated. - * `namespace` (`str`) - Namespace to evaluate rules for. Required. """ status: pulumi.Output[dict] """ Status is filled in by the server and indicates the set of actions a user can perform. - * `evaluation_error` (`str`) - EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. - * `incomplete` (`bool`) - Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. - * `non_resource_rules` (`list`) - NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. "*" means all. - * `verbs` (`list`) - Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all. - - * `resource_rules` (`list`) - ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. - * `resources` (`list`) - Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. - "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. - * `verbs` (`list`) - Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -49,59 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `namespace` (`pulumi.Input[str]`) - Namespace to evaluate rules for. Required. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py index 0f7bd696ea..ee969b6272 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py @@ -23,31 +23,10 @@ class SubjectAccessReview(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec holds information about the request being evaluated - * `extra` (`dict`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - * `groups` (`list`) - Groups is the groups you're testing for. - * `non_resource_attributes` (`dict`) - NonResourceAttributes describes information for a non-resource access request - * `path` (`str`) - Path is the URL path of the request - * `verb` (`str`) - Verb is the standard HTTP verb - - * `resource_attributes` (`dict`) - ResourceAuthorizationAttributes describes information for a resource access request - * `group` (`str`) - Group is the API Group of the Resource. "*" means all. - * `name` (`str`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * `namespace` (`str`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * `resource` (`str`) - Resource is one of the existing resource types. "*" means all. - * `subresource` (`str`) - Subresource is one of the existing resource types. "" means none. - * `verb` (`str`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * `version` (`str`) - Version is the API Version of the Resource. "*" means all. - - * `uid` (`str`) - UID information about the requesting user. - * `user` (`str`) - User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups """ status: pulumi.Output[dict] """ Status is filled in by the server and indicates whether the request is allowed or not - * `allowed` (`bool`) - Allowed is required. True if the action would be allowed, false otherwise. - * `denied` (`bool`) - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. - * `evaluation_error` (`str`) - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - * `reason` (`str`) - Reason is optional. It indicates why a request was allowed or denied. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -57,75 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `extra` (`pulumi.Input[dict]`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - * `groups` (`pulumi.Input[list]`) - Groups is the groups you're testing for. - * `non_resource_attributes` (`pulumi.Input[dict]`) - NonResourceAttributes describes information for a non-resource access request - * `path` (`pulumi.Input[str]`) - Path is the URL path of the request - * `verb` (`pulumi.Input[str]`) - Verb is the standard HTTP verb - - * `resource_attributes` (`pulumi.Input[dict]`) - ResourceAuthorizationAttributes describes information for a resource access request - * `group` (`pulumi.Input[str]`) - Group is the API Group of the Resource. "*" means all. - * `name` (`pulumi.Input[str]`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * `resource` (`pulumi.Input[str]`) - Resource is one of the existing resource types. "*" means all. - * `subresource` (`pulumi.Input[str]`) - Subresource is one of the existing resource types. "" means none. - * `verb` (`pulumi.Input[str]`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * `version` (`pulumi.Input[str]`) - Version is the API Version of the Resource. "*" means all. - - * `uid` (`pulumi.Input[str]`) - UID information about the requesting user. - * `user` (`pulumi.Input[str]`) - User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py index 07451c1eaf..a9f82c37af 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py @@ -23,31 +23,10 @@ class LocalSubjectAccessReview(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - * `extra` (`dict`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - * `group` (`list`) - Groups is the groups you're testing for. - * `non_resource_attributes` (`dict`) - NonResourceAttributes describes information for a non-resource access request - * `path` (`str`) - Path is the URL path of the request - * `verb` (`str`) - Verb is the standard HTTP verb - - * `resource_attributes` (`dict`) - ResourceAuthorizationAttributes describes information for a resource access request - * `group` (`str`) - Group is the API Group of the Resource. "*" means all. - * `name` (`str`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * `namespace` (`str`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * `resource` (`str`) - Resource is one of the existing resource types. "*" means all. - * `subresource` (`str`) - Subresource is one of the existing resource types. "" means none. - * `verb` (`str`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * `version` (`str`) - Version is the API Version of the Resource. "*" means all. - - * `uid` (`str`) - UID information about the requesting user. - * `user` (`str`) - User is the user you're testing for. If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups """ status: pulumi.Output[dict] """ Status is filled in by the server and indicates whether the request is allowed or not - * `allowed` (`bool`) - Allowed is required. True if the action would be allowed, false otherwise. - * `denied` (`bool`) - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. - * `evaluation_error` (`str`) - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - * `reason` (`str`) - Reason is optional. It indicates why a request was allowed or denied. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -57,75 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `extra` (`pulumi.Input[dict]`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - * `group` (`pulumi.Input[list]`) - Groups is the groups you're testing for. - * `non_resource_attributes` (`pulumi.Input[dict]`) - NonResourceAttributes describes information for a non-resource access request - * `path` (`pulumi.Input[str]`) - Path is the URL path of the request - * `verb` (`pulumi.Input[str]`) - Verb is the standard HTTP verb - - * `resource_attributes` (`pulumi.Input[dict]`) - ResourceAuthorizationAttributes describes information for a resource access request - * `group` (`pulumi.Input[str]`) - Group is the API Group of the Resource. "*" means all. - * `name` (`pulumi.Input[str]`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * `resource` (`pulumi.Input[str]`) - Resource is one of the existing resource types. "*" means all. - * `subresource` (`pulumi.Input[str]`) - Subresource is one of the existing resource types. "" means none. - * `verb` (`pulumi.Input[str]`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * `version` (`pulumi.Input[str]`) - Version is the API Version of the Resource. "*" means all. - - * `uid` (`pulumi.Input[str]`) - UID information about the requesting user. - * `user` (`pulumi.Input[str]`) - User is the user you're testing for. If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py index a19f04492b..89b9713a91 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py @@ -23,26 +23,10 @@ class SelfSubjectAccessReview(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec holds information about the request being evaluated. user and groups must be empty - * `non_resource_attributes` (`dict`) - NonResourceAttributes describes information for a non-resource access request - * `path` (`str`) - Path is the URL path of the request - * `verb` (`str`) - Verb is the standard HTTP verb - - * `resource_attributes` (`dict`) - ResourceAuthorizationAttributes describes information for a resource access request - * `group` (`str`) - Group is the API Group of the Resource. "*" means all. - * `name` (`str`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * `namespace` (`str`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * `resource` (`str`) - Resource is one of the existing resource types. "*" means all. - * `subresource` (`str`) - Subresource is one of the existing resource types. "" means none. - * `verb` (`str`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * `version` (`str`) - Version is the API Version of the Resource. "*" means all. """ status: pulumi.Output[dict] """ Status is filled in by the server and indicates whether the request is allowed or not - * `allowed` (`bool`) - Allowed is required. True if the action would be allowed, false otherwise. - * `denied` (`bool`) - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. - * `evaluation_error` (`str`) - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - * `reason` (`str`) - Reason is optional. It indicates why a request was allowed or denied. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -52,70 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. user and groups must be empty - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `non_resource_attributes` (`pulumi.Input[dict]`) - NonResourceAttributes describes information for a non-resource access request - * `path` (`pulumi.Input[str]`) - Path is the URL path of the request - * `verb` (`pulumi.Input[str]`) - Verb is the standard HTTP verb - - * `resource_attributes` (`pulumi.Input[dict]`) - ResourceAuthorizationAttributes describes information for a resource access request - * `group` (`pulumi.Input[str]`) - Group is the API Group of the Resource. "*" means all. - * `name` (`pulumi.Input[str]`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * `resource` (`pulumi.Input[str]`) - Resource is one of the existing resource types. "*" means all. - * `subresource` (`pulumi.Input[str]`) - Subresource is one of the existing resource types. "" means none. - * `verb` (`pulumi.Input[str]`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * `version` (`pulumi.Input[str]`) - Version is the API Version of the Resource. "*" means all. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py index bc82bf752c..c56e363c3d 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py @@ -23,23 +23,10 @@ class SelfSubjectRulesReview(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec holds information about the request being evaluated. - * `namespace` (`str`) - Namespace to evaluate rules for. Required. """ status: pulumi.Output[dict] """ Status is filled in by the server and indicates the set of actions a user can perform. - * `evaluation_error` (`str`) - EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. - * `incomplete` (`bool`) - Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. - * `non_resource_rules` (`list`) - NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. "*" means all. - * `verbs` (`list`) - Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all. - - * `resource_rules` (`list`) - ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. - * `resources` (`list`) - Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. - "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. - * `verbs` (`list`) - Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -49,59 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `namespace` (`pulumi.Input[str]`) - Namespace to evaluate rules for. Required. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py index d2bb9c5826..fd23943eff 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py @@ -23,31 +23,10 @@ class SubjectAccessReview(pulumi.CustomResource): spec: pulumi.Output[dict] """ Spec holds information about the request being evaluated - * `extra` (`dict`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - * `group` (`list`) - Groups is the groups you're testing for. - * `non_resource_attributes` (`dict`) - NonResourceAttributes describes information for a non-resource access request - * `path` (`str`) - Path is the URL path of the request - * `verb` (`str`) - Verb is the standard HTTP verb - - * `resource_attributes` (`dict`) - ResourceAuthorizationAttributes describes information for a resource access request - * `group` (`str`) - Group is the API Group of the Resource. "*" means all. - * `name` (`str`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * `namespace` (`str`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * `resource` (`str`) - Resource is one of the existing resource types. "*" means all. - * `subresource` (`str`) - Subresource is one of the existing resource types. "" means none. - * `verb` (`str`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * `version` (`str`) - Version is the API Version of the Resource. "*" means all. - - * `uid` (`str`) - UID information about the requesting user. - * `user` (`str`) - User is the user you're testing for. If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups """ status: pulumi.Output[dict] """ Status is filled in by the server and indicates whether the request is allowed or not - * `allowed` (`bool`) - Allowed is required. True if the action would be allowed, false otherwise. - * `denied` (`bool`) - Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. - * `evaluation_error` (`str`) - EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. - * `reason` (`str`) - Reason is optional. It indicates why a request was allowed or denied. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -57,75 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `extra` (`pulumi.Input[dict]`) - Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. - * `group` (`pulumi.Input[list]`) - Groups is the groups you're testing for. - * `non_resource_attributes` (`pulumi.Input[dict]`) - NonResourceAttributes describes information for a non-resource access request - * `path` (`pulumi.Input[str]`) - Path is the URL path of the request - * `verb` (`pulumi.Input[str]`) - Verb is the standard HTTP verb - - * `resource_attributes` (`pulumi.Input[dict]`) - ResourceAuthorizationAttributes describes information for a resource access request - * `group` (`pulumi.Input[str]`) - Group is the API Group of the Resource. "*" means all. - * `name` (`pulumi.Input[str]`) - Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. - * `namespace` (`pulumi.Input[str]`) - Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview - * `resource` (`pulumi.Input[str]`) - Resource is one of the existing resource types. "*" means all. - * `subresource` (`pulumi.Input[str]`) - Subresource is one of the existing resource types. "" means none. - * `verb` (`pulumi.Input[str]`) - Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all. - * `version` (`pulumi.Input[str]`) - Version is the API Version of the Resource. "*" means all. - - * `uid` (`pulumi.Input[str]`) - UID information about the requesting user. - * `user` (`pulumi.Input[str]`) - User is the user you're testing for. If you specify "User" but not "Group", then is it interpreted as "What if User were not a member of any groups """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py index 4afb1664ed..a1158296a9 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py @@ -22,73 +22,14 @@ class HorizontalPodAutoscaler(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * `max_replicas` (`float`) - upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. - * `min_replicas` (`float`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * `scale_target_ref` (`dict`) - reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. - * `api_version` (`str`) - API version of the referent - * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `target_cpu_utilization_percentage` (`float`) - target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. """ status: pulumi.Output[dict] """ current information about the autoscaler. - * `current_cpu_utilization_percentage` (`float`) - current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. - * `current_replicas` (`float`) - current number of replicas of pods managed by this autoscaler. - * `desired_replicas` (`float`) - desired number of replicas of pods managed by this autoscaler. - * `last_scale_time` (`str`) - last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. - * `observed_generation` (`float`) - most recent generation observed by this autoscaler. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -99,66 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `max_replicas` (`pulumi.Input[float]`) - upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. - * `min_replicas` (`pulumi.Input[float]`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * `scale_target_ref` (`pulumi.Input[dict]`) - reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. - * `api_version` (`pulumi.Input[str]`) - API version of the referent - * `kind` (`pulumi.Input[str]`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`pulumi.Input[str]`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `target_cpu_utilization_percentage` (`pulumi.Input[float]`) - target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py index 5965cb6b01..82387dfb44 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py @@ -18,72 +18,6 @@ class HorizontalPodAutoscalerList(pulumi.CustomResource): items: pulumi.Output[list] """ list of horizontal pod autoscaler objects. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * `max_replicas` (`float`) - upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. - * `min_replicas` (`float`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * `scale_target_ref` (`dict`) - reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. - * `api_version` (`str`) - API version of the referent - * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `target_cpu_utilization_percentage` (`float`) - target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. - - * `status` (`dict`) - current information about the autoscaler. - * `current_cpu_utilization_percentage` (`float`) - current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. - * `current_replicas` (`float`) - current number of replicas of pods managed by this autoscaler. - * `desired_replicas` (`float`) - desired number of replicas of pods managed by this autoscaler. - * `last_scale_time` (`str`) - last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. - * `observed_generation` (`float`) - most recent generation observed by this autoscaler. """ kind: pulumi.Output[str] """ @@ -92,12 +26,6 @@ class HorizontalPodAutoscalerList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -108,84 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: list of horizontal pod autoscaler objects. :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 :param pulumi.Input[dict] metadata: Standard list metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * `max_replicas` (`pulumi.Input[float]`) - upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. - * `min_replicas` (`pulumi.Input[float]`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * `scale_target_ref` (`pulumi.Input[dict]`) - reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. - * `api_version` (`pulumi.Input[str]`) - API version of the referent - * `kind` (`pulumi.Input[str]`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`pulumi.Input[str]`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `target_cpu_utilization_percentage` (`pulumi.Input[float]`) - target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. - - * `status` (`pulumi.Input[dict]`) - current information about the autoscaler. - * `current_cpu_utilization_percentage` (`pulumi.Input[float]`) - current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. - * `current_replicas` (`pulumi.Input[float]`) - current number of replicas of pods managed by this autoscaler. - * `desired_replicas` (`pulumi.Input[float]`) - desired number of replicas of pods managed by this autoscaler. - * `last_scale_time` (`pulumi.Input[str]`) - last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. - * `observed_generation` (`pulumi.Input[float]`) - most recent generation observed by this autoscaler. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py index d1fbb6fa4d..67cacbf659 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py @@ -22,146 +22,14 @@ class HorizontalPodAutoscaler(pulumi.CustomResource): metadata: pulumi.Output[dict] """ metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * `max_replicas` (`float`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - * `metrics` (`list`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. - * `external` (`dict`) - 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). - * `metricName` (`str`) - metricName is the name of the metric in question. - * `metricSelector` (`dict`) - metricSelector is used to identify a specific time series within a given metric. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `targetAverageValue` (`str`) - targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. - * `targetValue` (`str`) - targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. - - * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `averageValue` (`str`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) - * `metricName` (`str`) - metricName is the name of the metric in question. - * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. - * `target` (`dict`) - target is the described Kubernetes object. - * `api_version` (`str`) - API version of the referent - * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `targetValue` (`str`) - targetValue is the target value of the metric (as a quantity). - - * `pods` (`dict`) - 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. - * `metricName` (`str`) - metricName is the name of the metric in question - * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. - * `targetAverageValue` (`str`) - targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) - - * `resource` (`dict`) - 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. - * `name` (`str`) - name is the name of the resource in question. - * `targetAverageUtilization` (`float`) - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - * `targetAverageValue` (`str`) - targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. - - * `type` (`str`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. - - * `min_replicas` (`float`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * `scale_target_ref` (`dict`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. """ status: pulumi.Output[dict] """ status is the current information about the autoscaler. - * `conditions` (`list`) - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. - * `lastTransitionTime` (`str`) - lastTransitionTime is the last time the condition transitioned from one status to another - * `message` (`str`) - message is a human-readable explanation containing details about the transition - * `reason` (`str`) - reason is the reason for the condition's last transition. - * `status` (`str`) - status is the status of the condition (True, False, Unknown) - * `type` (`str`) - type describes the current condition - - * `current_metrics` (`list`) - currentMetrics is the last read state of the metrics used by this autoscaler. - * `external` (`dict`) - 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). - * `currentAverageValue` (`str`) - currentAverageValue is the current value of metric averaged over autoscaled pods. - * `currentValue` (`str`) - currentValue is the current value of the metric (as a quantity) - * `metricName` (`str`) - metricName is the name of a metric used for autoscaling in metric system. - * `metricSelector` (`dict`) - metricSelector is used to identify a specific time series within a given metric. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `averageValue` (`str`) - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) - * `currentValue` (`str`) - currentValue is the current value of the metric (as a quantity). - * `metricName` (`str`) - metricName is the name of the metric in question. - * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. - * `target` (`dict`) - target is the described Kubernetes object. - * `api_version` (`str`) - API version of the referent - * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `pods` (`dict`) - 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. - * `currentAverageValue` (`str`) - currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) - * `metricName` (`str`) - metricName is the name of the metric in question - * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. - - * `resource` (`dict`) - 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. - * `currentAverageUtilization` (`float`) - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. - * `currentAverageValue` (`str`) - currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification. - * `name` (`str`) - name is the name of the resource in question. - - * `type` (`str`) - type is the type of metric source. It will be one of "Object", "Pods" or "Resource", each corresponds to a matching field in the object. - - * `current_replicas` (`float`) - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. - * `desired_replicas` (`float`) - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. - * `last_scale_time` (`str`) - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. - * `observed_generation` (`float`) - observedGeneration is the most recent generation observed by this autoscaler. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -172,98 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `max_replicas` (`pulumi.Input[float]`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - * `metrics` (`pulumi.Input[list]`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. - * `external` (`pulumi.Input[dict]`) - 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). - * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question. - * `metricSelector` (`pulumi.Input[dict]`) - metricSelector is used to identify a specific time series within a given metric. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `targetAverageValue` (`pulumi.Input[str]`) - targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. - * `targetValue` (`pulumi.Input[str]`) - targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. - - * `object` (`pulumi.Input[dict]`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `averageValue` (`pulumi.Input[str]`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) - * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question. - * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. - * `target` (`pulumi.Input[dict]`) - target is the described Kubernetes object. - * `api_version` (`pulumi.Input[str]`) - API version of the referent - * `kind` (`pulumi.Input[str]`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`pulumi.Input[str]`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `targetValue` (`pulumi.Input[str]`) - targetValue is the target value of the metric (as a quantity). - - * `pods` (`pulumi.Input[dict]`) - 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. - * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question - * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. - * `targetAverageValue` (`pulumi.Input[str]`) - targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) - - * `resource` (`pulumi.Input[dict]`) - 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. - * `name` (`pulumi.Input[str]`) - name is the name of the resource in question. - * `targetAverageUtilization` (`pulumi.Input[float]`) - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - * `targetAverageValue` (`pulumi.Input[str]`) - targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. - - * `type` (`pulumi.Input[str]`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. - - * `min_replicas` (`pulumi.Input[float]`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * `scale_target_ref` (`pulumi.Input[dict]`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py index 7043bc2af6..b97626a8b1 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py @@ -18,136 +18,6 @@ class HorizontalPodAutoscalerList(pulumi.CustomResource): items: pulumi.Output[list] """ items is the list of horizontal pod autoscaler objects. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * `max_replicas` (`float`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - * `metrics` (`list`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. - * `external` (`dict`) - 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). - * `metricName` (`str`) - metricName is the name of the metric in question. - * `metricSelector` (`dict`) - metricSelector is used to identify a specific time series within a given metric. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `targetAverageValue` (`str`) - targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. - * `targetValue` (`str`) - targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. - - * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `averageValue` (`str`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) - * `metricName` (`str`) - metricName is the name of the metric in question. - * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. - * `target` (`dict`) - target is the described Kubernetes object. - * `api_version` (`str`) - API version of the referent - * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `targetValue` (`str`) - targetValue is the target value of the metric (as a quantity). - - * `pods` (`dict`) - 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. - * `metricName` (`str`) - metricName is the name of the metric in question - * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. - * `targetAverageValue` (`str`) - targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) - - * `resource` (`dict`) - 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. - * `name` (`str`) - name is the name of the resource in question. - * `targetAverageUtilization` (`float`) - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - * `targetAverageValue` (`str`) - targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. - - * `type` (`str`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. - - * `min_replicas` (`float`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * `scale_target_ref` (`dict`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. - - * `status` (`dict`) - status is the current information about the autoscaler. - * `conditions` (`list`) - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. - * `lastTransitionTime` (`str`) - lastTransitionTime is the last time the condition transitioned from one status to another - * `message` (`str`) - message is a human-readable explanation containing details about the transition - * `reason` (`str`) - reason is the reason for the condition's last transition. - * `status` (`str`) - status is the status of the condition (True, False, Unknown) - * `type` (`str`) - type describes the current condition - - * `current_metrics` (`list`) - currentMetrics is the last read state of the metrics used by this autoscaler. - * `external` (`dict`) - 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). - * `currentAverageValue` (`str`) - currentAverageValue is the current value of metric averaged over autoscaled pods. - * `currentValue` (`str`) - currentValue is the current value of the metric (as a quantity) - * `metricName` (`str`) - metricName is the name of a metric used for autoscaling in metric system. - * `metricSelector` (`dict`) - metricSelector is used to identify a specific time series within a given metric. - - * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `averageValue` (`str`) - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) - * `currentValue` (`str`) - currentValue is the current value of the metric (as a quantity). - * `metricName` (`str`) - metricName is the name of the metric in question. - * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. - * `target` (`dict`) - target is the described Kubernetes object. - - * `pods` (`dict`) - 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. - * `currentAverageValue` (`str`) - currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) - * `metricName` (`str`) - metricName is the name of the metric in question - * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. - - * `resource` (`dict`) - 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. - * `currentAverageUtilization` (`float`) - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. - * `currentAverageValue` (`str`) - currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification. - * `name` (`str`) - name is the name of the resource in question. - - * `type` (`str`) - type is the type of metric source. It will be one of "Object", "Pods" or "Resource", each corresponds to a matching field in the object. - - * `current_replicas` (`float`) - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. - * `desired_replicas` (`float`) - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. - * `last_scale_time` (`str`) - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. - * `observed_generation` (`float`) - observedGeneration is the most recent generation observed by this autoscaler. """ kind: pulumi.Output[str] """ @@ -156,12 +26,6 @@ class HorizontalPodAutoscalerList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ metadata is the standard list metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -172,148 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is the list of horizontal pod autoscaler objects. :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 :param pulumi.Input[dict] metadata: metadata is the standard list metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * `max_replicas` (`pulumi.Input[float]`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - * `metrics` (`pulumi.Input[list]`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. - * `external` (`pulumi.Input[dict]`) - 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). - * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question. - * `metricSelector` (`pulumi.Input[dict]`) - metricSelector is used to identify a specific time series within a given metric. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `targetAverageValue` (`pulumi.Input[str]`) - targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. - * `targetValue` (`pulumi.Input[str]`) - targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. - - * `object` (`pulumi.Input[dict]`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `averageValue` (`pulumi.Input[str]`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) - * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question. - * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. - * `target` (`pulumi.Input[dict]`) - target is the described Kubernetes object. - * `api_version` (`pulumi.Input[str]`) - API version of the referent - * `kind` (`pulumi.Input[str]`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`pulumi.Input[str]`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `targetValue` (`pulumi.Input[str]`) - targetValue is the target value of the metric (as a quantity). - - * `pods` (`pulumi.Input[dict]`) - 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. - * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question - * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. - * `targetAverageValue` (`pulumi.Input[str]`) - targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) - - * `resource` (`pulumi.Input[dict]`) - 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. - * `name` (`pulumi.Input[str]`) - name is the name of the resource in question. - * `targetAverageUtilization` (`pulumi.Input[float]`) - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - * `targetAverageValue` (`pulumi.Input[str]`) - targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. - - * `type` (`pulumi.Input[str]`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. - - * `min_replicas` (`pulumi.Input[float]`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * `scale_target_ref` (`pulumi.Input[dict]`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. - - * `status` (`pulumi.Input[dict]`) - status is the current information about the autoscaler. - * `conditions` (`pulumi.Input[list]`) - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. - * `lastTransitionTime` (`pulumi.Input[str]`) - lastTransitionTime is the last time the condition transitioned from one status to another - * `message` (`pulumi.Input[str]`) - message is a human-readable explanation containing details about the transition - * `reason` (`pulumi.Input[str]`) - reason is the reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - status is the status of the condition (True, False, Unknown) - * `type` (`pulumi.Input[str]`) - type describes the current condition - - * `current_metrics` (`pulumi.Input[list]`) - currentMetrics is the last read state of the metrics used by this autoscaler. - * `external` (`pulumi.Input[dict]`) - 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). - * `currentAverageValue` (`pulumi.Input[str]`) - currentAverageValue is the current value of metric averaged over autoscaled pods. - * `currentValue` (`pulumi.Input[str]`) - currentValue is the current value of the metric (as a quantity) - * `metricName` (`pulumi.Input[str]`) - metricName is the name of a metric used for autoscaling in metric system. - * `metricSelector` (`pulumi.Input[dict]`) - metricSelector is used to identify a specific time series within a given metric. - - * `object` (`pulumi.Input[dict]`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `averageValue` (`pulumi.Input[str]`) - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) - * `currentValue` (`pulumi.Input[str]`) - currentValue is the current value of the metric (as a quantity). - * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question. - * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. - * `target` (`pulumi.Input[dict]`) - target is the described Kubernetes object. - - * `pods` (`pulumi.Input[dict]`) - 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. - * `currentAverageValue` (`pulumi.Input[str]`) - currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) - * `metricName` (`pulumi.Input[str]`) - metricName is the name of the metric in question - * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. - - * `resource` (`pulumi.Input[dict]`) - 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. - * `currentAverageUtilization` (`pulumi.Input[float]`) - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. - * `currentAverageValue` (`pulumi.Input[str]`) - currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification. - * `name` (`pulumi.Input[str]`) - name is the name of the resource in question. - - * `type` (`pulumi.Input[str]`) - type is the type of metric source. It will be one of "Object", "Pods" or "Resource", each corresponds to a matching field in the object. - - * `current_replicas` (`pulumi.Input[float]`) - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. - * `desired_replicas` (`pulumi.Input[float]`) - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. - * `last_scale_time` (`pulumi.Input[str]`) - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. - * `observed_generation` (`pulumi.Input[float]`) - observedGeneration is the most recent generation observed by this autoscaler. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py index 63797441ea..3f60ea8192 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py @@ -22,162 +22,14 @@ class HorizontalPodAutoscaler(pulumi.CustomResource): metadata: pulumi.Output[dict] """ metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * `behavior` (`dict`) - behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. - * `scale_down` (`dict`) - scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). - * `policies` (`list`) - policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid - * `periodSeconds` (`float`) - PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). - * `type` (`str`) - Type is used to specify the scaling policy. - * `value` (`float`) - Value contains the amount of change which is permitted by the policy. It must be greater than zero - - * `select_policy` (`str`) - selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. - * `stabilization_window_seconds` (`float`) - StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). - - * `scale_up` (`dict`) - scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: - * increase no more than 4 pods per 60 seconds - * double the number of pods per 60 seconds - No stabilization is used. - - * `max_replicas` (`float`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - * `metrics` (`list`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. - * `external` (`dict`) - 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). - * `metric` (`dict`) - metric identifies the target metric by name and selector - * `name` (`str`) - name is the name of the given metric - * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `target` (`dict`) - target specifies the target value for the given metric - * `averageUtilization` (`float`) - averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type - * `averageValue` (`str`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) - * `type` (`str`) - type represents whether the metric type is Utilization, Value, or AverageValue - * `value` (`str`) - value is the target value of the metric (as a quantity). - - * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `describedObject` (`dict`) - * `api_version` (`str`) - API version of the referent - * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `metric` (`dict`) - metric identifies the target metric by name and selector - * `target` (`dict`) - target specifies the target value for the given metric - - * `pods` (`dict`) - 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. - * `metric` (`dict`) - metric identifies the target metric by name and selector - * `target` (`dict`) - target specifies the target value for the given metric - - * `resource` (`dict`) - 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. - * `name` (`str`) - name is the name of the resource in question. - * `target` (`dict`) - target specifies the target value for the given metric - - * `type` (`str`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. - - * `min_replicas` (`float`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * `scale_target_ref` (`dict`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. """ status: pulumi.Output[dict] """ status is the current information about the autoscaler. - * `conditions` (`list`) - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. - * `lastTransitionTime` (`str`) - lastTransitionTime is the last time the condition transitioned from one status to another - * `message` (`str`) - message is a human-readable explanation containing details about the transition - * `reason` (`str`) - reason is the reason for the condition's last transition. - * `status` (`str`) - status is the status of the condition (True, False, Unknown) - * `type` (`str`) - type describes the current condition - - * `current_metrics` (`list`) - currentMetrics is the last read state of the metrics used by this autoscaler. - * `external` (`dict`) - 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). - * `current` (`dict`) - current contains the current value for the given metric - * `averageUtilization` (`float`) - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - * `averageValue` (`str`) - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) - * `value` (`str`) - value is the current value of the metric (as a quantity). - - * `metric` (`dict`) - metric identifies the target metric by name and selector - * `name` (`str`) - name is the name of the given metric - * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `current` (`dict`) - current contains the current value for the given metric - * `describedObject` (`dict`) - * `api_version` (`str`) - API version of the referent - * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `metric` (`dict`) - metric identifies the target metric by name and selector - - * `pods` (`dict`) - 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. - * `current` (`dict`) - current contains the current value for the given metric - * `metric` (`dict`) - metric identifies the target metric by name and selector - - * `resource` (`dict`) - 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. - * `current` (`dict`) - current contains the current value for the given metric - * `name` (`str`) - Name is the name of the resource in question. - - * `type` (`str`) - type is the type of metric source. It will be one of "Object", "Pods" or "Resource", each corresponds to a matching field in the object. - - * `current_replicas` (`float`) - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. - * `desired_replicas` (`float`) - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. - * `last_scale_time` (`str`) - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. - * `observed_generation` (`float`) - observedGeneration is the most recent generation observed by this autoscaler. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -188,113 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `behavior` (`pulumi.Input[dict]`) - behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. - * `scale_down` (`pulumi.Input[dict]`) - scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). - * `policies` (`pulumi.Input[list]`) - policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid - * `periodSeconds` (`pulumi.Input[float]`) - PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). - * `type` (`pulumi.Input[str]`) - Type is used to specify the scaling policy. - * `value` (`pulumi.Input[float]`) - Value contains the amount of change which is permitted by the policy. It must be greater than zero - - * `select_policy` (`pulumi.Input[str]`) - selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. - * `stabilization_window_seconds` (`pulumi.Input[float]`) - StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). - - * `scale_up` (`pulumi.Input[dict]`) - scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: - * increase no more than 4 pods per 60 seconds - * double the number of pods per 60 seconds - No stabilization is used. - - * `max_replicas` (`pulumi.Input[float]`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - * `metrics` (`pulumi.Input[list]`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. - * `external` (`pulumi.Input[dict]`) - 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). - * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector - * `name` (`pulumi.Input[str]`) - name is the name of the given metric - * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric - * `averageUtilization` (`pulumi.Input[float]`) - averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type - * `averageValue` (`pulumi.Input[str]`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) - * `type` (`pulumi.Input[str]`) - type represents whether the metric type is Utilization, Value, or AverageValue - * `value` (`pulumi.Input[str]`) - value is the target value of the metric (as a quantity). - - * `object` (`pulumi.Input[dict]`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `describedObject` (`pulumi.Input[dict]`) - * `api_version` (`pulumi.Input[str]`) - API version of the referent - * `kind` (`pulumi.Input[str]`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`pulumi.Input[str]`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector - * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric - - * `pods` (`pulumi.Input[dict]`) - 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. - * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector - * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric - - * `resource` (`pulumi.Input[dict]`) - 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. - * `name` (`pulumi.Input[str]`) - name is the name of the resource in question. - * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric - - * `type` (`pulumi.Input[str]`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. - - * `min_replicas` (`pulumi.Input[float]`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * `scale_target_ref` (`pulumi.Input[dict]`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py index 0acb3091ee..55841833bd 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py @@ -18,149 +18,6 @@ class HorizontalPodAutoscalerList(pulumi.CustomResource): items: pulumi.Output[list] """ items is the list of horizontal pod autoscaler objects. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * `behavior` (`dict`) - behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. - * `scale_down` (`dict`) - scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). - * `policies` (`list`) - policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid - * `periodSeconds` (`float`) - PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). - * `type` (`str`) - Type is used to specify the scaling policy. - * `value` (`float`) - Value contains the amount of change which is permitted by the policy. It must be greater than zero - - * `select_policy` (`str`) - selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. - * `stabilization_window_seconds` (`float`) - StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). - - * `scale_up` (`dict`) - scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: - * increase no more than 4 pods per 60 seconds - * double the number of pods per 60 seconds - No stabilization is used. - - * `max_replicas` (`float`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - * `metrics` (`list`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. - * `external` (`dict`) - 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). - * `metric` (`dict`) - metric identifies the target metric by name and selector - * `name` (`str`) - name is the name of the given metric - * `selector` (`dict`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `target` (`dict`) - target specifies the target value for the given metric - * `averageUtilization` (`float`) - averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type - * `averageValue` (`str`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) - * `type` (`str`) - type represents whether the metric type is Utilization, Value, or AverageValue - * `value` (`str`) - value is the target value of the metric (as a quantity). - - * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `describedObject` (`dict`) - * `api_version` (`str`) - API version of the referent - * `kind` (`str`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`str`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `metric` (`dict`) - metric identifies the target metric by name and selector - * `target` (`dict`) - target specifies the target value for the given metric - - * `pods` (`dict`) - 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. - * `metric` (`dict`) - metric identifies the target metric by name and selector - * `target` (`dict`) - target specifies the target value for the given metric - - * `resource` (`dict`) - 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. - * `name` (`str`) - name is the name of the resource in question. - * `target` (`dict`) - target specifies the target value for the given metric - - * `type` (`str`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. - - * `min_replicas` (`float`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * `scale_target_ref` (`dict`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. - - * `status` (`dict`) - status is the current information about the autoscaler. - * `conditions` (`list`) - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. - * `lastTransitionTime` (`str`) - lastTransitionTime is the last time the condition transitioned from one status to another - * `message` (`str`) - message is a human-readable explanation containing details about the transition - * `reason` (`str`) - reason is the reason for the condition's last transition. - * `status` (`str`) - status is the status of the condition (True, False, Unknown) - * `type` (`str`) - type describes the current condition - - * `current_metrics` (`list`) - currentMetrics is the last read state of the metrics used by this autoscaler. - * `external` (`dict`) - 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). - * `current` (`dict`) - current contains the current value for the given metric - * `averageUtilization` (`float`) - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - * `averageValue` (`str`) - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) - * `value` (`str`) - value is the current value of the metric (as a quantity). - - * `metric` (`dict`) - metric identifies the target metric by name and selector - - * `object` (`dict`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `current` (`dict`) - current contains the current value for the given metric - * `describedObject` (`dict`) - * `metric` (`dict`) - metric identifies the target metric by name and selector - - * `pods` (`dict`) - 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. - * `current` (`dict`) - current contains the current value for the given metric - * `metric` (`dict`) - metric identifies the target metric by name and selector - - * `resource` (`dict`) - 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. - * `current` (`dict`) - current contains the current value for the given metric - * `name` (`str`) - Name is the name of the resource in question. - - * `type` (`str`) - type is the type of metric source. It will be one of "Object", "Pods" or "Resource", each corresponds to a matching field in the object. - - * `current_replicas` (`float`) - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. - * `desired_replicas` (`float`) - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. - * `last_scale_time` (`str`) - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. - * `observed_generation` (`float`) - observedGeneration is the most recent generation observed by this autoscaler. """ kind: pulumi.Output[str] """ @@ -169,12 +26,6 @@ class HorizontalPodAutoscalerList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ metadata is the standard list metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -185,161 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is the list of horizontal pod autoscaler objects. :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 :param pulumi.Input[dict] metadata: metadata is the standard list metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - * `behavior` (`pulumi.Input[dict]`) - behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used. - * `scale_down` (`pulumi.Input[dict]`) - scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used). - * `policies` (`pulumi.Input[list]`) - policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid - * `periodSeconds` (`pulumi.Input[float]`) - PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). - * `type` (`pulumi.Input[str]`) - Type is used to specify the scaling policy. - * `value` (`pulumi.Input[float]`) - Value contains the amount of change which is permitted by the policy. It must be greater than zero - - * `select_policy` (`pulumi.Input[str]`) - selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used. - * `stabilization_window_seconds` (`pulumi.Input[float]`) - StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long). - - * `scale_up` (`pulumi.Input[dict]`) - scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of: - * increase no more than 4 pods per 60 seconds - * double the number of pods per 60 seconds - No stabilization is used. - - * `max_replicas` (`pulumi.Input[float]`) - maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. - * `metrics` (`pulumi.Input[list]`) - metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. - * `external` (`pulumi.Input[dict]`) - 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). - * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector - * `name` (`pulumi.Input[str]`) - name is the name of the given metric - * `selector` (`pulumi.Input[dict]`) - selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric - * `averageUtilization` (`pulumi.Input[float]`) - averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type - * `averageValue` (`pulumi.Input[str]`) - averageValue is the target value of the average of the metric across all relevant pods (as a quantity) - * `type` (`pulumi.Input[str]`) - type represents whether the metric type is Utilization, Value, or AverageValue - * `value` (`pulumi.Input[str]`) - value is the target value of the metric (as a quantity). - - * `object` (`pulumi.Input[dict]`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `describedObject` (`pulumi.Input[dict]`) - * `api_version` (`pulumi.Input[str]`) - API version of the referent - * `kind` (`pulumi.Input[str]`) - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - * `name` (`pulumi.Input[str]`) - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - - * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector - * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric - - * `pods` (`pulumi.Input[dict]`) - 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. - * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector - * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric - - * `resource` (`pulumi.Input[dict]`) - 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. - * `name` (`pulumi.Input[str]`) - name is the name of the resource in question. - * `target` (`pulumi.Input[dict]`) - target specifies the target value for the given metric - - * `type` (`pulumi.Input[str]`) - type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object. - - * `min_replicas` (`pulumi.Input[float]`) - minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. - * `scale_target_ref` (`pulumi.Input[dict]`) - scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. - - * `status` (`pulumi.Input[dict]`) - status is the current information about the autoscaler. - * `conditions` (`pulumi.Input[list]`) - conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. - * `lastTransitionTime` (`pulumi.Input[str]`) - lastTransitionTime is the last time the condition transitioned from one status to another - * `message` (`pulumi.Input[str]`) - message is a human-readable explanation containing details about the transition - * `reason` (`pulumi.Input[str]`) - reason is the reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - status is the status of the condition (True, False, Unknown) - * `type` (`pulumi.Input[str]`) - type describes the current condition - - * `current_metrics` (`pulumi.Input[list]`) - currentMetrics is the last read state of the metrics used by this autoscaler. - * `external` (`pulumi.Input[dict]`) - 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). - * `current` (`pulumi.Input[dict]`) - current contains the current value for the given metric - * `averageUtilization` (`pulumi.Input[float]`) - currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. - * `averageValue` (`pulumi.Input[str]`) - averageValue is the current value of the average of the metric across all relevant pods (as a quantity) - * `value` (`pulumi.Input[str]`) - value is the current value of the metric (as a quantity). - - * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector - - * `object` (`pulumi.Input[dict]`) - object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * `current` (`pulumi.Input[dict]`) - current contains the current value for the given metric - * `describedObject` (`pulumi.Input[dict]`) - * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector - - * `pods` (`pulumi.Input[dict]`) - 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. - * `current` (`pulumi.Input[dict]`) - current contains the current value for the given metric - * `metric` (`pulumi.Input[dict]`) - metric identifies the target metric by name and selector - - * `resource` (`pulumi.Input[dict]`) - 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. - * `current` (`pulumi.Input[dict]`) - current contains the current value for the given metric - * `name` (`pulumi.Input[str]`) - Name is the name of the resource in question. - - * `type` (`pulumi.Input[str]`) - type is the type of metric source. It will be one of "Object", "Pods" or "Resource", each corresponds to a matching field in the object. - - * `current_replicas` (`pulumi.Input[float]`) - currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. - * `desired_replicas` (`pulumi.Input[float]`) - desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. - * `last_scale_time` (`pulumi.Input[str]`) - lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. - * `observed_generation` (`pulumi.Input[float]`) - observedGeneration is the most recent generation observed by this autoscaler. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/batch/v1/job.py b/sdk/python/pulumi_kubernetes/batch/v1/job.py index aeab1cd307..81af9357a2 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/job.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/job.py @@ -22,593 +22,14 @@ class Job(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer - * `backoff_limit` (`float`) - Specifies the number of retries before marking this job failed. Defaults to 6 - * `completions` (`float`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ - * `manual_selector` (`bool`) - 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 - * `parallelism` (`float`) - 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/ - * `selector` (`dict`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `ttl_seconds_after_finished` (`float`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. """ status: pulumi.Output[dict] """ Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active` (`float`) - The number of actively running pods. - * `completion_time` (`str`) - Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. - * `conditions` (`list`) - The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `lastProbeTime` (`str`) - Last time the condition was checked. - * `lastTransitionTime` (`str`) - Last time the condition transit from one status to another. - * `message` (`str`) - Human readable message indicating details about last transition. - * `reason` (`str`) - (brief) reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of job condition, Complete or Failed. - - * `failed` (`float`) - The number of pods which reached phase Failed. - * `start_time` (`str`) - Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. - * `succeeded` (`float`) - The number of pods which reached phase Succeeded. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -634,531 +55,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `active_deadline_seconds` (`pulumi.Input[float]`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer - * `backoff_limit` (`pulumi.Input[float]`) - Specifies the number of retries before marking this job failed. Defaults to 6 - * `completions` (`pulumi.Input[float]`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ - * `manual_selector` (`pulumi.Input[bool]`) - 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 - * `parallelism` (`pulumi.Input[float]`) - 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/ - * `selector` (`pulumi.Input[dict]`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `ttl_seconds_after_finished` (`pulumi.Input[float]`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/batch/v1/job_list.py b/sdk/python/pulumi_kubernetes/batch/v1/job_list.py index fb52f2d9f1..55ce5de559 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/job_list.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/job_list.py @@ -18,545 +18,6 @@ class JobList(pulumi.CustomResource): items: pulumi.Output[list] """ items is the list of Jobs. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer - * `backoff_limit` (`float`) - Specifies the number of retries before marking this job failed. Defaults to 6 - * `completions` (`float`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ - * `manual_selector` (`bool`) - 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 - * `parallelism` (`float`) - 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/ - * `selector` (`dict`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `ttl_seconds_after_finished` (`float`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. - - * `status` (`dict`) - Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active` (`float`) - The number of actively running pods. - * `completion_time` (`str`) - Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. - * `conditions` (`list`) - The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `lastProbeTime` (`str`) - Last time the condition was checked. - * `lastTransitionTime` (`str`) - Last time the condition transit from one status to another. - * `message` (`str`) - Human readable message indicating details about last transition. - * `reason` (`str`) - (brief) reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of job condition, Complete or Failed. - - * `failed` (`float`) - The number of pods which reached phase Failed. - * `start_time` (`str`) - Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. - * `succeeded` (`float`) - The number of pods which reached phase Succeeded. """ kind: pulumi.Output[str] """ @@ -565,12 +26,6 @@ class JobList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -581,557 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is the list of Jobs. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer - * `backoff_limit` (`pulumi.Input[float]`) - Specifies the number of retries before marking this job failed. Defaults to 6 - * `completions` (`pulumi.Input[float]`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ - * `manual_selector` (`pulumi.Input[bool]`) - 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 - * `parallelism` (`pulumi.Input[float]`) - 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/ - * `selector` (`pulumi.Input[dict]`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `ttl_seconds_after_finished` (`pulumi.Input[float]`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. - - * `status` (`pulumi.Input[dict]`) - Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active` (`pulumi.Input[float]`) - The number of actively running pods. - * `completion_time` (`pulumi.Input[str]`) - Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. - * `conditions` (`pulumi.Input[list]`) - The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `lastProbeTime` (`pulumi.Input[str]`) - Last time the condition was checked. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transit from one status to another. - * `message` (`pulumi.Input[str]`) - Human readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - (brief) reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of job condition, Complete or Failed. - - * `failed` (`pulumi.Input[float]`) - The number of pods which reached phase Failed. - * `start_time` (`pulumi.Input[str]`) - Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. - * `succeeded` (`pulumi.Input[float]`) - The number of pods which reached phase Succeeded. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py index ab7660d5d2..3013c9515e 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py @@ -22,600 +22,14 @@ class CronJob(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `concurrency_policy` (`str`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one - * `failed_jobs_history_limit` (`float`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `job_template` (`dict`) - Specifies the job that will be created when executing a CronJob. - * `metadata` (`dict`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer - * `backoff_limit` (`float`) - Specifies the number of retries before marking this job failed. Defaults to 6 - * `completions` (`float`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ - * `manual_selector` (`bool`) - 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 - * `parallelism` (`float`) - 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/ - * `selector` (`dict`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `ttl_seconds_after_finished` (`float`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. - - * `schedule` (`str`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - * `starting_deadline_seconds` (`float`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. - * `successful_jobs_history_limit` (`float`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. - * `suspend` (`bool`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. """ status: pulumi.Output[dict] """ Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active` (`list`) - A list of pointers to currently running jobs. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `last_schedule_time` (`str`) - Information when was the last time the job was successfully scheduled. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -626,541 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `concurrency_policy` (`pulumi.Input[str]`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one - * `failed_jobs_history_limit` (`pulumi.Input[float]`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `job_template` (`pulumi.Input[dict]`) - Specifies the job that will be created when executing a CronJob. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer - * `backoff_limit` (`pulumi.Input[float]`) - Specifies the number of retries before marking this job failed. Defaults to 6 - * `completions` (`pulumi.Input[float]`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ - * `manual_selector` (`pulumi.Input[bool]`) - 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 - * `parallelism` (`pulumi.Input[float]`) - 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/ - * `selector` (`pulumi.Input[dict]`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `ttl_seconds_after_finished` (`pulumi.Input[float]`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. - - * `schedule` (`pulumi.Input[str]`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - * `starting_deadline_seconds` (`pulumi.Input[float]`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. - * `successful_jobs_history_limit` (`pulumi.Input[float]`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. - * `suspend` (`pulumi.Input[bool]`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py index 0903981522..5b965c2b23 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py @@ -18,552 +18,6 @@ class CronJobList(pulumi.CustomResource): items: pulumi.Output[list] """ items is the list of CronJobs. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `concurrency_policy` (`str`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one - * `failed_jobs_history_limit` (`float`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `job_template` (`dict`) - Specifies the job that will be created when executing a CronJob. - * `metadata` (`dict`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer - * `backoff_limit` (`float`) - Specifies the number of retries before marking this job failed. Defaults to 6 - * `completions` (`float`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ - * `manual_selector` (`bool`) - 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 - * `parallelism` (`float`) - 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/ - * `selector` (`dict`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `ttl_seconds_after_finished` (`float`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. - - * `schedule` (`str`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - * `starting_deadline_seconds` (`float`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. - * `successful_jobs_history_limit` (`float`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. - * `suspend` (`bool`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. - - * `status` (`dict`) - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active` (`list`) - A list of pointers to currently running jobs. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `last_schedule_time` (`str`) - Information when was the last time the job was successfully scheduled. """ kind: pulumi.Output[str] """ @@ -572,12 +26,6 @@ class CronJobList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -588,564 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is the list of CronJobs. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `concurrency_policy` (`pulumi.Input[str]`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one - * `failed_jobs_history_limit` (`pulumi.Input[float]`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `job_template` (`pulumi.Input[dict]`) - Specifies the job that will be created when executing a CronJob. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer - * `backoff_limit` (`pulumi.Input[float]`) - Specifies the number of retries before marking this job failed. Defaults to 6 - * `completions` (`pulumi.Input[float]`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ - * `manual_selector` (`pulumi.Input[bool]`) - 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 - * `parallelism` (`pulumi.Input[float]`) - 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/ - * `selector` (`pulumi.Input[dict]`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `ttl_seconds_after_finished` (`pulumi.Input[float]`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. - - * `schedule` (`pulumi.Input[str]`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - * `starting_deadline_seconds` (`pulumi.Input[float]`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. - * `successful_jobs_history_limit` (`pulumi.Input[float]`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. - * `suspend` (`pulumi.Input[bool]`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. - - * `status` (`pulumi.Input[dict]`) - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active` (`pulumi.Input[list]`) - A list of pointers to currently running jobs. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `last_schedule_time` (`pulumi.Input[str]`) - Information when was the last time the job was successfully scheduled. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py index 957aa8e0ec..cab26d24d6 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py @@ -22,600 +22,14 @@ class CronJob(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `concurrency_policy` (`str`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one - * `failed_jobs_history_limit` (`float`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - * `job_template` (`dict`) - Specifies the job that will be created when executing a CronJob. - * `metadata` (`dict`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer - * `backoff_limit` (`float`) - Specifies the number of retries before marking this job failed. Defaults to 6 - * `completions` (`float`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ - * `manual_selector` (`bool`) - 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 - * `parallelism` (`float`) - 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/ - * `selector` (`dict`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `ttl_seconds_after_finished` (`float`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. - - * `schedule` (`str`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - * `starting_deadline_seconds` (`float`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. - * `successful_jobs_history_limit` (`float`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - * `suspend` (`bool`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. """ status: pulumi.Output[dict] """ Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active` (`list`) - A list of pointers to currently running jobs. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `last_schedule_time` (`str`) - Information when was the last time the job was successfully scheduled. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -626,541 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `concurrency_policy` (`pulumi.Input[str]`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one - * `failed_jobs_history_limit` (`pulumi.Input[float]`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - * `job_template` (`pulumi.Input[dict]`) - Specifies the job that will be created when executing a CronJob. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer - * `backoff_limit` (`pulumi.Input[float]`) - Specifies the number of retries before marking this job failed. Defaults to 6 - * `completions` (`pulumi.Input[float]`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ - * `manual_selector` (`pulumi.Input[bool]`) - 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 - * `parallelism` (`pulumi.Input[float]`) - 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/ - * `selector` (`pulumi.Input[dict]`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `ttl_seconds_after_finished` (`pulumi.Input[float]`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. - - * `schedule` (`pulumi.Input[str]`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - * `starting_deadline_seconds` (`pulumi.Input[float]`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. - * `successful_jobs_history_limit` (`pulumi.Input[float]`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - * `suspend` (`pulumi.Input[bool]`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py index 178fa7583c..b2ed8a33b2 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py @@ -18,552 +18,6 @@ class CronJobList(pulumi.CustomResource): items: pulumi.Output[list] """ items is the list of CronJobs. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `concurrency_policy` (`str`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one - * `failed_jobs_history_limit` (`float`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - * `job_template` (`dict`) - Specifies the job that will be created when executing a CronJob. - * `metadata` (`dict`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer - * `backoff_limit` (`float`) - Specifies the number of retries before marking this job failed. Defaults to 6 - * `completions` (`float`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ - * `manual_selector` (`bool`) - 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 - * `parallelism` (`float`) - 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/ - * `selector` (`dict`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `ttl_seconds_after_finished` (`float`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. - - * `schedule` (`str`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - * `starting_deadline_seconds` (`float`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. - * `successful_jobs_history_limit` (`float`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - * `suspend` (`bool`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. - - * `status` (`dict`) - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active` (`list`) - A list of pointers to currently running jobs. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `last_schedule_time` (`str`) - Information when was the last time the job was successfully scheduled. """ kind: pulumi.Output[str] """ @@ -572,12 +26,6 @@ class CronJobList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -588,564 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is the list of CronJobs. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `concurrency_policy` (`pulumi.Input[str]`) - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one - * `failed_jobs_history_limit` (`pulumi.Input[float]`) - The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - * `job_template` (`pulumi.Input[dict]`) - Specifies the job that will be created when executing a CronJob. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer - * `backoff_limit` (`pulumi.Input[float]`) - Specifies the number of retries before marking this job failed. Defaults to 6 - * `completions` (`pulumi.Input[float]`) - Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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/ - * `manual_selector` (`pulumi.Input[bool]`) - 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 - * `parallelism` (`pulumi.Input[float]`) - 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/ - * `selector` (`pulumi.Input[dict]`) - A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `ttl_seconds_after_finished` (`pulumi.Input[float]`) - ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. - - * `schedule` (`pulumi.Input[str]`) - The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - * `starting_deadline_seconds` (`pulumi.Input[float]`) - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. - * `successful_jobs_history_limit` (`pulumi.Input[float]`) - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. - * `suspend` (`pulumi.Input[bool]`) - This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. - - * `status` (`pulumi.Input[dict]`) - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active` (`pulumi.Input[list]`) - A list of pointers to currently running jobs. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `last_schedule_time` (`pulumi.Input[str]`) - Information when was the last time the job was successfully scheduled. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py index 5836de64b3..36993e9fa2 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py @@ -23,30 +23,10 @@ class CertificateSigningRequest(pulumi.CustomResource): spec: pulumi.Output[dict] """ The certificate request itself and any additional information. - * `extra` (`dict`) - Extra information about the requesting user. See user.Info interface for details. - * `groups` (`list`) - Group information about the requesting user. See user.Info interface for details. - * `request` (`str`) - Base64-encoded PKCS#10 CSR data - * `signer_name` (`str`) - Requested signer for the request. It is a qualified name in the form: `scope-hostname.io/name`. If empty, it will be defaulted: - 1. If it's a kubelet client certificate, it is assigned - "kubernetes.io/kube-apiserver-client-kubelet". - 2. If it's a kubelet serving certificate, it is assigned - "kubernetes.io/kubelet-serving". - 3. Otherwise, it is assigned "kubernetes.io/legacy-unknown". - Distribution of trust for signers happens out of band. You can select on this field using `spec.signerName`. - * `uid` (`str`) - UID information about the requesting user. See user.Info interface for details. - * `usages` (`list`) - allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 - https://tools.ietf.org/html/rfc5280#section-4.2.1.12 - * `username` (`str`) - Information about the requesting user. See user.Info interface for details. """ status: pulumi.Output[dict] """ Derived information about the request. - * `certificate` (`str`) - If request was approved, the controller will place the issued certificate here. - * `conditions` (`list`) - Conditions applied to the request, such as approval or denial. - * `lastUpdateTime` (`str`) - timestamp for the last update to this condition - * `message` (`str`) - human readable message with details about the request state - * `reason` (`str`) - brief reason for the request state - * `type` (`str`) - request approval state, currently Approved or Denied. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -56,72 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: The certificate request itself and any additional information. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `extra` (`pulumi.Input[dict]`) - Extra information about the requesting user. See user.Info interface for details. - * `groups` (`pulumi.Input[list]`) - Group information about the requesting user. See user.Info interface for details. - * `request` (`pulumi.Input[str]`) - Base64-encoded PKCS#10 CSR data - * `signer_name` (`pulumi.Input[str]`) - Requested signer for the request. It is a qualified name in the form: `scope-hostname.io/name`. If empty, it will be defaulted: - 1. If it's a kubelet client certificate, it is assigned - "kubernetes.io/kube-apiserver-client-kubelet". - 2. If it's a kubelet serving certificate, it is assigned - "kubernetes.io/kubelet-serving". - 3. Otherwise, it is assigned "kubernetes.io/legacy-unknown". - Distribution of trust for signers happens out of band. You can select on this field using `spec.signerName`. - * `uid` (`pulumi.Input[str]`) - UID information about the requesting user. See user.Info interface for details. - * `usages` (`pulumi.Input[list]`) - allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 - https://tools.ietf.org/html/rfc5280#section-4.2.1.12 - * `username` (`pulumi.Input[str]`) - Information about the requesting user. See user.Info interface for details. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py index 6d10c39f87..91af2ffa39 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py @@ -28,91 +28,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.ResourceOptions opts: Options for the resource. :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 :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 - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - The certificate request itself and any additional information. - * `extra` (`pulumi.Input[dict]`) - Extra information about the requesting user. See user.Info interface for details. - * `groups` (`pulumi.Input[list]`) - Group information about the requesting user. See user.Info interface for details. - * `request` (`pulumi.Input[str]`) - Base64-encoded PKCS#10 CSR data - * `signer_name` (`pulumi.Input[str]`) - Requested signer for the request. It is a qualified name in the form: `scope-hostname.io/name`. If empty, it will be defaulted: - 1. If it's a kubelet client certificate, it is assigned - "kubernetes.io/kube-apiserver-client-kubelet". - 2. If it's a kubelet serving certificate, it is assigned - "kubernetes.io/kubelet-serving". - 3. Otherwise, it is assigned "kubernetes.io/legacy-unknown". - Distribution of trust for signers happens out of band. You can select on this field using `spec.signerName`. - * `uid` (`pulumi.Input[str]`) - UID information about the requesting user. See user.Info interface for details. - * `usages` (`pulumi.Input[list]`) - allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 - https://tools.ietf.org/html/rfc5280#section-4.2.1.12 - * `username` (`pulumi.Input[str]`) - Information about the requesting user. See user.Info interface for details. - - * `status` (`pulumi.Input[dict]`) - Derived information about the request. - * `certificate` (`pulumi.Input[str]`) - If request was approved, the controller will place the issued certificate here. - * `conditions` (`pulumi.Input[list]`) - Conditions applied to the request, such as approval or denial. - * `lastUpdateTime` (`pulumi.Input[str]`) - timestamp for the last update to this condition - * `message` (`pulumi.Input[str]`) - human readable message with details about the request state - * `reason` (`pulumi.Input[str]`) - brief reason for the request state - * `type` (`pulumi.Input[str]`) - request approval state, currently Approved or Denied. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/lease.py b/sdk/python/pulumi_kubernetes/coordination/v1/lease.py index 2ae0e34fe7..332287d684 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/lease.py @@ -22,61 +22,10 @@ class Lease(pulumi.CustomResource): metadata: pulumi.Output[dict] """ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `acquire_time` (`str`) - acquireTime is a time when the current lease was acquired. - * `holder_identity` (`str`) - holderIdentity contains the identity of the holder of a current lease. - * `lease_duration_seconds` (`float`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. - * `lease_transitions` (`float`) - leaseTransitions is the number of transitions of a lease between holders. - * `renew_time` (`str`) - renewTime is a time when the current holder of a lease has last updated the lease. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -87,63 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `acquire_time` (`pulumi.Input[str]`) - acquireTime is a time when the current lease was acquired. - * `holder_identity` (`pulumi.Input[str]`) - holderIdentity contains the identity of the holder of a current lease. - * `lease_duration_seconds` (`pulumi.Input[float]`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. - * `lease_transitions` (`pulumi.Input[float]`) - leaseTransitions is the number of transitions of a lease between holders. - * `renew_time` (`pulumi.Input[str]`) - renewTime is a time when the current holder of a lease has last updated the lease. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py b/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py index 46cbbd590f..ce57d066b1 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py @@ -18,62 +18,6 @@ class LeaseList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of schema objects. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `acquire_time` (`str`) - acquireTime is a time when the current lease was acquired. - * `holder_identity` (`str`) - holderIdentity contains the identity of the holder of a current lease. - * `lease_duration_seconds` (`float`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. - * `lease_transitions` (`float`) - leaseTransitions is the number of transitions of a lease between holders. - * `renew_time` (`str`) - renewTime is a time when the current holder of a lease has last updated the lease. """ kind: pulumi.Output[str] """ @@ -82,12 +26,6 @@ class LeaseList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -98,74 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of schema objects. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `acquire_time` (`pulumi.Input[str]`) - acquireTime is a time when the current lease was acquired. - * `holder_identity` (`pulumi.Input[str]`) - holderIdentity contains the identity of the holder of a current lease. - * `lease_duration_seconds` (`pulumi.Input[float]`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. - * `lease_transitions` (`pulumi.Input[float]`) - leaseTransitions is the number of transitions of a lease between holders. - * `renew_time` (`pulumi.Input[str]`) - renewTime is a time when the current holder of a lease has last updated the lease. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py index 6561cd9b12..8e952b2f47 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py @@ -22,61 +22,10 @@ class Lease(pulumi.CustomResource): metadata: pulumi.Output[dict] """ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `acquire_time` (`str`) - acquireTime is a time when the current lease was acquired. - * `holder_identity` (`str`) - holderIdentity contains the identity of the holder of a current lease. - * `lease_duration_seconds` (`float`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. - * `lease_transitions` (`float`) - leaseTransitions is the number of transitions of a lease between holders. - * `renew_time` (`str`) - renewTime is a time when the current holder of a lease has last updated the lease. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -87,63 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `acquire_time` (`pulumi.Input[str]`) - acquireTime is a time when the current lease was acquired. - * `holder_identity` (`pulumi.Input[str]`) - holderIdentity contains the identity of the holder of a current lease. - * `lease_duration_seconds` (`pulumi.Input[float]`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. - * `lease_transitions` (`pulumi.Input[float]`) - leaseTransitions is the number of transitions of a lease between holders. - * `renew_time` (`pulumi.Input[str]`) - renewTime is a time when the current holder of a lease has last updated the lease. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py index b444d62b39..54e08d927a 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py @@ -18,62 +18,6 @@ class LeaseList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of schema objects. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `acquire_time` (`str`) - acquireTime is a time when the current lease was acquired. - * `holder_identity` (`str`) - holderIdentity contains the identity of the holder of a current lease. - * `lease_duration_seconds` (`float`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. - * `lease_transitions` (`float`) - leaseTransitions is the number of transitions of a lease between holders. - * `renew_time` (`str`) - renewTime is a time when the current holder of a lease has last updated the lease. """ kind: pulumi.Output[str] """ @@ -82,12 +26,6 @@ class LeaseList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -98,74 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of schema objects. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `acquire_time` (`pulumi.Input[str]`) - acquireTime is a time when the current lease was acquired. - * `holder_identity` (`pulumi.Input[str]`) - holderIdentity contains the identity of the holder of a current lease. - * `lease_duration_seconds` (`pulumi.Input[float]`) - leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. - * `lease_transitions` (`pulumi.Input[float]`) - leaseTransitions is the number of transitions of a lease between holders. - * `renew_time` (`pulumi.Input[str]`) - renewTime is a time when the current holder of a lease has last updated the lease. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/binding.py b/sdk/python/pulumi_kubernetes/core/v1/binding.py index 49b689a20d..d7dec60e30 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/binding.py +++ b/sdk/python/pulumi_kubernetes/core/v1/binding.py @@ -22,63 +22,10 @@ class Binding(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ target: pulumi.Output[dict] """ The target object that you want to bind to the standard object. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, target=None, __props__=None, __name__=None, __opts__=None): """ @@ -89,65 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] target: The target object that you want to bind to the standard object. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **target** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/component_status.py b/sdk/python/pulumi_kubernetes/core/v1/component_status.py index 0322a94f14..cbc71b120f 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/component_status.py +++ b/sdk/python/pulumi_kubernetes/core/v1/component_status.py @@ -18,10 +18,6 @@ class ComponentStatus(pulumi.CustomResource): conditions: pulumi.Output[list] """ List of component conditions observed - * `error` (`str`) - Condition error code for a component. For example, a health check error code. - * `message` (`str`) - Message about the condition for a component. For example, information about a health check. - * `status` (`str`) - Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". - * `type` (`str`) - Type of condition for a component. Valid value: "Healthy" """ kind: pulumi.Output[str] """ @@ -30,52 +26,6 @@ class ComponentStatus(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ def __init__(__self__, resource_name, opts=None, api_version=None, conditions=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -86,62 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, conditions=No :param pulumi.Input[list] conditions: List of component conditions observed :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **conditions** object supports the following: - - * `error` (`pulumi.Input[str]`) - Condition error code for a component. For example, a health check error code. - * `message` (`pulumi.Input[str]`) - Message about the condition for a component. For example, information about a health check. - * `status` (`pulumi.Input[str]`) - Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". - * `type` (`pulumi.Input[str]`) - Type of condition for a component. Valid value: "Healthy" - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py b/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py index da6569bff1..f5cf25db17 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py @@ -18,61 +18,6 @@ class ComponentStatusList(pulumi.CustomResource): items: pulumi.Output[list] """ List of ComponentStatus objects. - * `api_version` (`str`) - 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 - * `conditions` (`list`) - List of component conditions observed - * `error` (`str`) - Condition error code for a component. For example, a health check error code. - * `message` (`str`) - Message about the condition for a component. For example, information about a health check. - * `status` (`str`) - Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". - * `type` (`str`) - Type of condition for a component. Valid value: "Healthy" - - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ kind: pulumi.Output[str] """ @@ -81,12 +26,6 @@ class ComponentStatusList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -97,73 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of ComponentStatus objects. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `conditions` (`pulumi.Input[list]`) - List of component conditions observed - * `error` (`pulumi.Input[str]`) - Condition error code for a component. For example, a health check error code. - * `message` (`pulumi.Input[str]`) - Message about the condition for a component. For example, information about a health check. - * `status` (`pulumi.Input[str]`) - Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". - * `type` (`pulumi.Input[str]`) - Type of condition for a component. Valid value: "Healthy" - - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/config_map.py b/sdk/python/pulumi_kubernetes/core/v1/config_map.py index 76ea6c83ac..fbe236ea26 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/config_map.py +++ b/sdk/python/pulumi_kubernetes/core/v1/config_map.py @@ -34,52 +34,6 @@ class ConfigMap(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ def __init__(__self__, resource_name, opts=None, api_version=None, binary_data=None, data=None, immutable=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -92,55 +46,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, binary_data=N :param pulumi.Input[bool] immutable: 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. :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py b/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py index df206e16dd..5ee2ac644b 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py @@ -18,58 +18,6 @@ class ConfigMapList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of ConfigMaps. - * `api_version` (`str`) - 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 - * `binary_data` (`dict`) - BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. - * `data` (`dict`) - Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. - * `immutable` (`bool`) - 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. - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ kind: pulumi.Output[str] """ @@ -78,12 +26,6 @@ class ConfigMapList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -94,70 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of ConfigMaps. :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 :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `binary_data` (`pulumi.Input[dict]`) - BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. - * `data` (`pulumi.Input[dict]`) - Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. - * `immutable` (`pulumi.Input[bool]`) - 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. - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/endpoints.py b/sdk/python/pulumi_kubernetes/core/v1/endpoints.py index 8b22d2bab5..d898d920ae 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/endpoints.py +++ b/sdk/python/pulumi_kubernetes/core/v1/endpoints.py @@ -22,75 +22,10 @@ class Endpoints(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ subsets: pulumi.Output[list] """ The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. - * `addresses` (`list`) - IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. - * `hostname` (`str`) - The Hostname of this endpoint - * `ip` (`str`) - The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. - * `node_name` (`str`) - Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. - * `targetRef` (`dict`) - Reference to object providing the endpoint. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `notReadyAddresses` (`list`) - IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. - * `ports` (`list`) - Port numbers available on the related IP addresses. - * `appProtocol` (`str`) - 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. - * `name` (`str`) - The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. - * `port` (`float`) - The port number of the endpoint. - * `protocol` (`str`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, subsets=None, __props__=None, __name__=None, __opts__=None): """ @@ -112,77 +47,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[list] subsets: The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **subsets** object supports the following: - - * `addresses` (`pulumi.Input[list]`) - IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. - * `hostname` (`pulumi.Input[str]`) - The Hostname of this endpoint - * `ip` (`pulumi.Input[str]`) - The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. - * `node_name` (`pulumi.Input[str]`) - Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. - * `targetRef` (`pulumi.Input[dict]`) - Reference to object providing the endpoint. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `notReadyAddresses` (`pulumi.Input[list]`) - IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. - * `ports` (`pulumi.Input[list]`) - Port numbers available on the related IP addresses. - * `appProtocol` (`pulumi.Input[str]`) - 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. - * `name` (`pulumi.Input[str]`) - The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. - * `port` (`pulumi.Input[float]`) - The port number of the endpoint. - * `protocol` (`pulumi.Input[str]`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py b/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py index 52fd463166..ac1da5ca2a 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py @@ -18,76 +18,6 @@ class EndpointsList(pulumi.CustomResource): items: pulumi.Output[list] """ List of endpoints. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `subsets` (`list`) - The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. - * `addresses` (`list`) - IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. - * `hostname` (`str`) - The Hostname of this endpoint - * `ip` (`str`) - The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. - * `node_name` (`str`) - Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. - * `targetRef` (`dict`) - Reference to object providing the endpoint. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `notReadyAddresses` (`list`) - IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. - * `ports` (`list`) - Port numbers available on the related IP addresses. - * `appProtocol` (`str`) - 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. - * `name` (`str`) - The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. - * `port` (`float`) - The port number of the endpoint. - * `protocol` (`str`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. """ kind: pulumi.Output[str] """ @@ -96,12 +26,6 @@ class EndpointsList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -112,88 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of endpoints. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `subsets` (`pulumi.Input[list]`) - The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. - * `addresses` (`pulumi.Input[list]`) - IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. - * `hostname` (`pulumi.Input[str]`) - The Hostname of this endpoint - * `ip` (`pulumi.Input[str]`) - The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. - * `node_name` (`pulumi.Input[str]`) - Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. - * `targetRef` (`pulumi.Input[dict]`) - Reference to object providing the endpoint. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `notReadyAddresses` (`pulumi.Input[list]`) - IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. - * `ports` (`pulumi.Input[list]`) - Port numbers available on the related IP addresses. - * `appProtocol` (`pulumi.Input[str]`) - 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. - * `name` (`pulumi.Input[str]`) - The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. - * `port` (`pulumi.Input[float]`) - The port number of the endpoint. - * `protocol` (`pulumi.Input[str]`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/event.py b/sdk/python/pulumi_kubernetes/core/v1/event.py index 5183215f8d..bbaaf6d59d 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/event.py +++ b/sdk/python/pulumi_kubernetes/core/v1/event.py @@ -34,13 +34,6 @@ class Event(pulumi.CustomResource): involved_object: pulumi.Output[dict] """ The object that this event is about. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids """ kind: pulumi.Output[str] """ @@ -57,52 +50,6 @@ class Event(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ reason: pulumi.Output[str] """ @@ -111,13 +58,6 @@ class Event(pulumi.CustomResource): related: pulumi.Output[dict] """ Optional secondary object for more complex actions. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids """ reporting_component: pulumi.Output[str] """ @@ -130,15 +70,10 @@ class Event(pulumi.CustomResource): series: pulumi.Output[dict] """ Data about the Event series this event represents or nil if it's a singleton Event. - * `count` (`float`) - Number of occurrences in this series up to the last heartbeat time - * `last_observed_time` (`str`) - Time of the last occurrence observed - * `state` (`str`) - State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18 """ source: pulumi.Output[dict] """ The component reporting this event. Should be a short machine understandable string. - * `component` (`str`) - Component from which the event is generated. - * `host` (`str`) - Node name on which the event is generated. """ type: pulumi.Output[str] """ @@ -166,76 +101,6 @@ def __init__(__self__, resource_name, opts=None, action=None, api_version=None, :param pulumi.Input[dict] series: Data about the Event series this event represents or nil if it's a singleton Event. :param pulumi.Input[dict] source: The component reporting this event. Should be a short machine understandable string. :param pulumi.Input[str] type: Type of this event (Normal, Warning), new types could be added in the future - - The **involved_object** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **series** object supports the following: - - * `count` (`pulumi.Input[float]`) - Number of occurrences in this series up to the last heartbeat time - * `last_observed_time` (`pulumi.Input[str]`) - Time of the last occurrence observed - * `state` (`pulumi.Input[str]`) - State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18 - - The **source** object supports the following: - - * `component` (`pulumi.Input[str]`) - Component from which the event is generated. - * `host` (`pulumi.Input[str]`) - Node name on which the event is generated. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/event_list.py b/sdk/python/pulumi_kubernetes/core/v1/event_list.py index fc390c2bbb..9010d40166 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/event_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/event_list.py @@ -18,85 +18,6 @@ class EventList(pulumi.CustomResource): items: pulumi.Output[list] """ List of events - * `action` (`str`) - What action was taken/failed regarding to the Regarding object. - * `api_version` (`str`) - 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 - * `count` (`float`) - The number of times this event has occurred. - * `event_time` (`str`) - Time when this Event was first observed. - * `first_timestamp` (`str`) - The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) - * `involved_object` (`dict`) - The object that this event is about. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `kind` (`str`) - 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 - * `last_timestamp` (`str`) - The time at which the most recent occurrence of this event was recorded. - * `message` (`str`) - A human-readable description of the status of this operation. - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `reason` (`str`) - This should be a short, machine understandable string that gives the reason for the transition into the object's current status. - * `related` (`dict`) - Optional secondary object for more complex actions. - * `reporting_component` (`str`) - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - * `reporting_instance` (`str`) - ID of the controller instance, e.g. `kubelet-xyzf`. - * `series` (`dict`) - Data about the Event series this event represents or nil if it's a singleton Event. - * `count` (`float`) - Number of occurrences in this series up to the last heartbeat time - * `last_observed_time` (`str`) - Time of the last occurrence observed - * `state` (`str`) - State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18 - - * `source` (`dict`) - The component reporting this event. Should be a short machine understandable string. - * `component` (`str`) - Component from which the event is generated. - * `host` (`str`) - Node name on which the event is generated. - - * `type` (`str`) - Type of this event (Normal, Warning), new types could be added in the future """ kind: pulumi.Output[str] """ @@ -105,12 +26,6 @@ class EventList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -121,97 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of events :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `action` (`pulumi.Input[str]`) - What action was taken/failed regarding to the Regarding object. - * `api_version` (`pulumi.Input[str]`) - 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 - * `count` (`pulumi.Input[float]`) - The number of times this event has occurred. - * `event_time` (`pulumi.Input[str]`) - Time when this Event was first observed. - * `first_timestamp` (`pulumi.Input[str]`) - The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) - * `involved_object` (`pulumi.Input[dict]`) - The object that this event is about. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `kind` (`pulumi.Input[str]`) - 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 - * `last_timestamp` (`pulumi.Input[str]`) - The time at which the most recent occurrence of this event was recorded. - * `message` (`pulumi.Input[str]`) - A human-readable description of the status of this operation. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `reason` (`pulumi.Input[str]`) - This should be a short, machine understandable string that gives the reason for the transition into the object's current status. - * `related` (`pulumi.Input[dict]`) - Optional secondary object for more complex actions. - * `reporting_component` (`pulumi.Input[str]`) - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - * `reporting_instance` (`pulumi.Input[str]`) - ID of the controller instance, e.g. `kubelet-xyzf`. - * `series` (`pulumi.Input[dict]`) - Data about the Event series this event represents or nil if it's a singleton Event. - * `count` (`pulumi.Input[float]`) - Number of occurrences in this series up to the last heartbeat time - * `last_observed_time` (`pulumi.Input[str]`) - Time of the last occurrence observed - * `state` (`pulumi.Input[str]`) - State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18 - - * `source` (`pulumi.Input[dict]`) - The component reporting this event. Should be a short machine understandable string. - * `component` (`pulumi.Input[str]`) - Component from which the event is generated. - * `host` (`pulumi.Input[str]`) - Node name on which the event is generated. - - * `type` (`pulumi.Input[str]`) - Type of this event (Normal, Warning), new types could be added in the future - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/limit_range.py b/sdk/python/pulumi_kubernetes/core/v1/limit_range.py index f0df90bae5..278de918bc 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/limit_range.py +++ b/sdk/python/pulumi_kubernetes/core/v1/limit_range.py @@ -22,63 +22,10 @@ class LimitRange(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `limits` (`list`) - Limits is the list of LimitRangeItem objects that are enforced. - * `default` (`dict`) - Default resource requirement limit value by resource name if resource limit is omitted. - * `defaultRequest` (`dict`) - DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. - * `max` (`dict`) - Max usage constraints on this kind by resource name. - * `maxLimitRequestRatio` (`dict`) - MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. - * `min` (`dict`) - Min usage constraints on this kind by resource name. - * `type` (`str`) - Type of resource that this limit applies to. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -89,65 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `limits` (`pulumi.Input[list]`) - Limits is the list of LimitRangeItem objects that are enforced. - * `default` (`pulumi.Input[dict]`) - Default resource requirement limit value by resource name if resource limit is omitted. - * `defaultRequest` (`pulumi.Input[dict]`) - DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. - * `max` (`pulumi.Input[dict]`) - Max usage constraints on this kind by resource name. - * `maxLimitRequestRatio` (`pulumi.Input[dict]`) - MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. - * `min` (`pulumi.Input[dict]`) - Min usage constraints on this kind by resource name. - * `type` (`pulumi.Input[str]`) - Type of resource that this limit applies to. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py b/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py index d671903839..cfa51becc3 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py @@ -18,64 +18,6 @@ class LimitRangeList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `limits` (`list`) - Limits is the list of LimitRangeItem objects that are enforced. - * `default` (`dict`) - Default resource requirement limit value by resource name if resource limit is omitted. - * `defaultRequest` (`dict`) - DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. - * `max` (`dict`) - Max usage constraints on this kind by resource name. - * `maxLimitRequestRatio` (`dict`) - MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. - * `min` (`dict`) - Min usage constraints on this kind by resource name. - * `type` (`str`) - Type of resource that this limit applies to. """ kind: pulumi.Output[str] """ @@ -84,12 +26,6 @@ class LimitRangeList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -100,76 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `limits` (`pulumi.Input[list]`) - Limits is the list of LimitRangeItem objects that are enforced. - * `default` (`pulumi.Input[dict]`) - Default resource requirement limit value by resource name if resource limit is omitted. - * `defaultRequest` (`pulumi.Input[dict]`) - DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. - * `max` (`pulumi.Input[dict]`) - Max usage constraints on this kind by resource name. - * `maxLimitRequestRatio` (`pulumi.Input[dict]`) - MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. - * `min` (`pulumi.Input[dict]`) - Min usage constraints on this kind by resource name. - * `type` (`pulumi.Input[str]`) - Type of resource that this limit applies to. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/namespace.py b/sdk/python/pulumi_kubernetes/core/v1/namespace.py index d7b1d73b2a..a0291dd60d 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/namespace.py +++ b/sdk/python/pulumi_kubernetes/core/v1/namespace.py @@ -22,69 +22,14 @@ class Namespace(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `finalizers` (`list`) - Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ """ status: pulumi.Output[dict] """ Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `conditions` (`list`) - Represents the latest available observations of a namespace's current state. - * `lastTransitionTime` (`str`) - * `message` (`str`) - * `reason` (`str`) - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of namespace controller condition. - - * `phase` (`str`) - Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -95,59 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `finalizers` (`pulumi.Input[list]`) - Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py b/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py index 110ead8bea..4f30201c99 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py @@ -18,68 +18,6 @@ class NamespaceList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `finalizers` (`list`) - Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - - * `status` (`dict`) - Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `conditions` (`list`) - Represents the latest available observations of a namespace's current state. - * `lastTransitionTime` (`str`) - * `message` (`str`) - * `reason` (`str`) - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of namespace controller condition. - - * `phase` (`str`) - Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ """ kind: pulumi.Output[str] """ @@ -88,12 +26,6 @@ class NamespaceList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -104,80 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `finalizers` (`pulumi.Input[list]`) - Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - - * `status` (`pulumi.Input[dict]`) - Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a namespace's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - * `message` (`pulumi.Input[str]`) - * `reason` (`pulumi.Input[str]`) - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of namespace controller condition. - - * `phase` (`pulumi.Input[str]`) - Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/node.py b/sdk/python/pulumi_kubernetes/core/v1/node.py index 1c1b669426..9691da8acf 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/node.py +++ b/sdk/python/pulumi_kubernetes/core/v1/node.py @@ -22,132 +22,14 @@ class Node(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `config_source` (`dict`) - If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field - * `config_map` (`dict`) - ConfigMap is a reference to a Node's ConfigMap - * `kubelet_config_key` (`str`) - KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. - * `name` (`str`) - Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. - * `namespace` (`str`) - Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. - * `resource_version` (`str`) - ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - * `uid` (`str`) - UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - - * `external_id` (`str`) - Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 - * `pod_cidr` (`str`) - PodCIDR represents the pod IP range assigned to the node. - * `pod_cid_rs` (`list`) - podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. - * `provider_id` (`str`) - ID of the node assigned by the cloud provider in the format: :// - * `taints` (`list`) - If specified, the node's taints. - * `effect` (`str`) - Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Required. The taint key to be applied to a node. - * `timeAdded` (`str`) - TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. - * `value` (`str`) - The taint value corresponding to the taint key. - - * `unschedulable` (`bool`) - Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration """ status: pulumi.Output[dict] """ Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `addresses` (`list`) - List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example. - * `address` (`str`) - The node address. - * `type` (`str`) - Node address type, one of Hostname, ExternalIP or InternalIP. - - * `allocatable` (`dict`) - Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. - * `capacity` (`dict`) - Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `conditions` (`list`) - Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition - * `lastHeartbeatTime` (`str`) - Last time we got an update on a given condition. - * `lastTransitionTime` (`str`) - Last time the condition transit from one status to another. - * `message` (`str`) - Human readable message indicating details about last transition. - * `reason` (`str`) - (brief) reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of node condition. - - * `config` (`dict`) - Status of the config assigned to the node via the dynamic Kubelet config feature. - * `active` (`dict`) - Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error. - * `config_map` (`dict`) - ConfigMap is a reference to a Node's ConfigMap - * `kubelet_config_key` (`str`) - KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. - * `name` (`str`) - Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. - * `namespace` (`str`) - Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. - * `resource_version` (`str`) - ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - * `uid` (`str`) - UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - - * `assigned` (`dict`) - Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned. - * `error` (`str`) - Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. - * `last_known_good` (`dict`) - LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future. - - * `daemon_endpoints` (`dict`) - Endpoints of daemons running on the Node. - * `kubelet_endpoint` (`dict`) - Endpoint on which Kubelet is listening. - * `port` (`float`) - Port number of the given endpoint. - - * `images` (`list`) - List of container images on this node - * `names` (`list`) - Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"] - * `sizeBytes` (`float`) - The size of the image in bytes. - - * `node_info` (`dict`) - Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info - * `architecture` (`str`) - The Architecture reported by the node - * `boot_id` (`str`) - Boot ID reported by the node. - * `container_runtime_version` (`str`) - ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). - * `kernel_version` (`str`) - Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). - * `kube_proxy_version` (`str`) - KubeProxy Version reported by the node. - * `kubelet_version` (`str`) - Kubelet Version reported by the node. - * `machine_id` (`str`) - MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html - * `operating_system` (`str`) - The Operating System reported by the node - * `os_image` (`str`) - OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). - * `system_uuid` (`str`) - 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 - - * `phase` (`str`) - NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. - * `volumes_attached` (`list`) - List of volumes that are attached to the node. - * `devicePath` (`str`) - DevicePath represents the device path where the volume should be available - * `name` (`str`) - Name of the attached volume - - * `volumes_in_use` (`list`) - List of attachable volumes in use (mounted) by the node. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -158,77 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `config_source` (`pulumi.Input[dict]`) - If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field - * `config_map` (`pulumi.Input[dict]`) - ConfigMap is a reference to a Node's ConfigMap - * `kubelet_config_key` (`pulumi.Input[str]`) - KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. - * `name` (`pulumi.Input[str]`) - Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. - * `namespace` (`pulumi.Input[str]`) - Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. - * `resource_version` (`pulumi.Input[str]`) - ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - * `uid` (`pulumi.Input[str]`) - UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - - * `external_id` (`pulumi.Input[str]`) - Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 - * `pod_cidr` (`pulumi.Input[str]`) - PodCIDR represents the pod IP range assigned to the node. - * `pod_cid_rs` (`pulumi.Input[list]`) - podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. - * `provider_id` (`pulumi.Input[str]`) - ID of the node assigned by the cloud provider in the format: :// - * `taints` (`pulumi.Input[list]`) - If specified, the node's taints. - * `effect` (`pulumi.Input[str]`) - Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Required. The taint key to be applied to a node. - * `timeAdded` (`pulumi.Input[str]`) - TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. - * `value` (`pulumi.Input[str]`) - The taint value corresponding to the taint key. - - * `unschedulable` (`pulumi.Input[bool]`) - Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/node_list.py b/sdk/python/pulumi_kubernetes/core/v1/node_list.py index f585810b99..78eb0632fe 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/node_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/node_list.py @@ -18,124 +18,6 @@ class NodeList(pulumi.CustomResource): items: pulumi.Output[list] """ List of nodes - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `config_source` (`dict`) - If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field - * `config_map` (`dict`) - ConfigMap is a reference to a Node's ConfigMap - * `kubelet_config_key` (`str`) - KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. - * `name` (`str`) - Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. - * `namespace` (`str`) - Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. - * `resource_version` (`str`) - ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - * `uid` (`str`) - UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - - * `external_id` (`str`) - Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 - * `pod_cidr` (`str`) - PodCIDR represents the pod IP range assigned to the node. - * `pod_cid_rs` (`list`) - podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. - * `provider_id` (`str`) - ID of the node assigned by the cloud provider in the format: :// - * `taints` (`list`) - If specified, the node's taints. - * `effect` (`str`) - Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Required. The taint key to be applied to a node. - * `timeAdded` (`str`) - TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. - * `value` (`str`) - The taint value corresponding to the taint key. - - * `unschedulable` (`bool`) - Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration - - * `status` (`dict`) - Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `addresses` (`list`) - List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example. - * `address` (`str`) - The node address. - * `type` (`str`) - Node address type, one of Hostname, ExternalIP or InternalIP. - - * `allocatable` (`dict`) - Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. - * `capacity` (`dict`) - Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `conditions` (`list`) - Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition - * `lastHeartbeatTime` (`str`) - Last time we got an update on a given condition. - * `lastTransitionTime` (`str`) - Last time the condition transit from one status to another. - * `message` (`str`) - Human readable message indicating details about last transition. - * `reason` (`str`) - (brief) reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of node condition. - - * `config` (`dict`) - Status of the config assigned to the node via the dynamic Kubelet config feature. - * `active` (`dict`) - Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error. - * `assigned` (`dict`) - Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned. - * `error` (`str`) - Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. - * `last_known_good` (`dict`) - LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future. - - * `daemon_endpoints` (`dict`) - Endpoints of daemons running on the Node. - * `kubelet_endpoint` (`dict`) - Endpoint on which Kubelet is listening. - * `port` (`float`) - Port number of the given endpoint. - - * `images` (`list`) - List of container images on this node - * `names` (`list`) - Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"] - * `sizeBytes` (`float`) - The size of the image in bytes. - - * `node_info` (`dict`) - Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info - * `architecture` (`str`) - The Architecture reported by the node - * `boot_id` (`str`) - Boot ID reported by the node. - * `container_runtime_version` (`str`) - ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). - * `kernel_version` (`str`) - Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). - * `kube_proxy_version` (`str`) - KubeProxy Version reported by the node. - * `kubelet_version` (`str`) - Kubelet Version reported by the node. - * `machine_id` (`str`) - MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html - * `operating_system` (`str`) - The Operating System reported by the node - * `os_image` (`str`) - OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). - * `system_uuid` (`str`) - 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 - - * `phase` (`str`) - NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. - * `volumes_attached` (`list`) - List of volumes that are attached to the node. - * `devicePath` (`str`) - DevicePath represents the device path where the volume should be available - * `name` (`str`) - Name of the attached volume - - * `volumes_in_use` (`list`) - List of attachable volumes in use (mounted) by the node. """ kind: pulumi.Output[str] """ @@ -144,12 +26,6 @@ class NodeList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -160,136 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of nodes :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `config_source` (`pulumi.Input[dict]`) - If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field - * `config_map` (`pulumi.Input[dict]`) - ConfigMap is a reference to a Node's ConfigMap - * `kubelet_config_key` (`pulumi.Input[str]`) - KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. - * `name` (`pulumi.Input[str]`) - Name is the metadata.name of the referenced ConfigMap. This field is required in all cases. - * `namespace` (`pulumi.Input[str]`) - Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases. - * `resource_version` (`pulumi.Input[str]`) - ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - * `uid` (`pulumi.Input[str]`) - UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. - - * `external_id` (`pulumi.Input[str]`) - Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 - * `pod_cidr` (`pulumi.Input[str]`) - PodCIDR represents the pod IP range assigned to the node. - * `pod_cid_rs` (`pulumi.Input[list]`) - podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. - * `provider_id` (`pulumi.Input[str]`) - ID of the node assigned by the cloud provider in the format: :// - * `taints` (`pulumi.Input[list]`) - If specified, the node's taints. - * `effect` (`pulumi.Input[str]`) - Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Required. The taint key to be applied to a node. - * `timeAdded` (`pulumi.Input[str]`) - TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. - * `value` (`pulumi.Input[str]`) - The taint value corresponding to the taint key. - - * `unschedulable` (`pulumi.Input[bool]`) - Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration - - * `status` (`pulumi.Input[dict]`) - Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `addresses` (`pulumi.Input[list]`) - List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example. - * `address` (`pulumi.Input[str]`) - The node address. - * `type` (`pulumi.Input[str]`) - Node address type, one of Hostname, ExternalIP or InternalIP. - - * `allocatable` (`pulumi.Input[dict]`) - Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. - * `capacity` (`pulumi.Input[dict]`) - Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `conditions` (`pulumi.Input[list]`) - Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition - * `lastHeartbeatTime` (`pulumi.Input[str]`) - Last time we got an update on a given condition. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transit from one status to another. - * `message` (`pulumi.Input[str]`) - Human readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - (brief) reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of node condition. - - * `config` (`pulumi.Input[dict]`) - Status of the config assigned to the node via the dynamic Kubelet config feature. - * `active` (`pulumi.Input[dict]`) - Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error. - * `assigned` (`pulumi.Input[dict]`) - Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned. - * `error` (`pulumi.Input[str]`) - Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. - * `last_known_good` (`pulumi.Input[dict]`) - LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future. - - * `daemon_endpoints` (`pulumi.Input[dict]`) - Endpoints of daemons running on the Node. - * `kubelet_endpoint` (`pulumi.Input[dict]`) - Endpoint on which Kubelet is listening. - * `port` (`pulumi.Input[float]`) - Port number of the given endpoint. - - * `images` (`pulumi.Input[list]`) - List of container images on this node - * `names` (`pulumi.Input[list]`) - Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"] - * `sizeBytes` (`pulumi.Input[float]`) - The size of the image in bytes. - - * `node_info` (`pulumi.Input[dict]`) - Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info - * `architecture` (`pulumi.Input[str]`) - The Architecture reported by the node - * `boot_id` (`pulumi.Input[str]`) - Boot ID reported by the node. - * `container_runtime_version` (`pulumi.Input[str]`) - ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). - * `kernel_version` (`pulumi.Input[str]`) - Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). - * `kube_proxy_version` (`pulumi.Input[str]`) - KubeProxy Version reported by the node. - * `kubelet_version` (`pulumi.Input[str]`) - Kubelet Version reported by the node. - * `machine_id` (`pulumi.Input[str]`) - MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html - * `operating_system` (`pulumi.Input[str]`) - The Operating System reported by the node - * `os_image` (`pulumi.Input[str]`) - OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). - * `system_uuid` (`pulumi.Input[str]`) - 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 - - * `phase` (`pulumi.Input[str]`) - NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. - * `volumes_attached` (`pulumi.Input[list]`) - List of volumes that are attached to the node. - * `devicePath` (`pulumi.Input[str]`) - DevicePath represents the device path where the volume should be available - * `name` (`pulumi.Input[str]`) - Name of the attached volume - - * `volumes_in_use` (`pulumi.Input[list]`) - List of attachable volumes in use (mounted) by the node. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py index f9b74eb337..722ef3fd66 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py @@ -22,243 +22,14 @@ class PersistentVolume(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`str`) - Share Name - - * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`str`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`dict`) - Attributes of the volume to publish. - * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`dict`) - Local represents directly-attached storage with node affinity - * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`dict`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk """ status: pulumi.Output[dict] """ Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - * `message` (`str`) - A human-readable message indicating details about why the volume is in this state. - * `phase` (`str`) - Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase - * `reason` (`str`) - Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -269,238 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. - * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py index fce4aef9a0..0f1566f353 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py @@ -22,92 +22,14 @@ class PersistentVolumeClaim(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`list`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `data_source` (`dict`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `resources` (`dict`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `selector` (`dict`) - A label query over volumes to consider for binding. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `storage_class_name` (`str`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * `volume_mode` (`str`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * `volume_name` (`str`) - VolumeName is the binding reference to the PersistentVolume backing this claim. """ status: pulumi.Output[dict] """ Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`list`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `capacity` (`dict`) - Represents the actual resources of the underlying volume. - * `conditions` (`list`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - * `lastProbeTime` (`str`) - Last time we probed the condition. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - Human-readable message indicating details about last transition. - * `reason` (`str`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. - * `status` (`str`) - * `type` (`str`) - - * `phase` (`str`) - Phase represents the current phase of PersistentVolumeClaim. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -118,79 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py index 00840617a5..a24ece1edd 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py @@ -18,91 +18,6 @@ class PersistentVolumeClaimList(pulumi.CustomResource): items: pulumi.Output[list] """ A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`list`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `data_source` (`dict`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `resources` (`dict`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `selector` (`dict`) - A label query over volumes to consider for binding. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `storage_class_name` (`str`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * `volume_mode` (`str`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * `volume_name` (`str`) - VolumeName is the binding reference to the PersistentVolume backing this claim. - - * `status` (`dict`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`list`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `capacity` (`dict`) - Represents the actual resources of the underlying volume. - * `conditions` (`list`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - * `lastProbeTime` (`str`) - Last time we probed the condition. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - Human-readable message indicating details about last transition. - * `reason` (`str`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. - * `status` (`str`) - * `type` (`str`) - - * `phase` (`str`) - Phase represents the current phase of PersistentVolumeClaim. """ kind: pulumi.Output[str] """ @@ -111,12 +26,6 @@ class PersistentVolumeClaimList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -127,103 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `data_source` (`pulumi.Input[dict]`) - This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot - Beta) * An existing PVC (PersistentVolumeClaim) * An existing custom resource/object that implements data population (Alpha) In order to use VolumeSnapshot object types, the appropriate feature gate must be enabled (VolumeSnapshotDataSource or AnyVolumeDataSource) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the specified data source is not supported, the volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `resources` (`pulumi.Input[dict]`) - Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `selector` (`pulumi.Input[dict]`) - A label query over volumes to consider for binding. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `storage_class_name` (`pulumi.Input[str]`) - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the binding reference to the PersistentVolume backing this claim. - - * `status` (`pulumi.Input[dict]`) - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - * `capacity` (`pulumi.Input[dict]`) - Represents the actual resources of the underlying volume. - * `conditions` (`pulumi.Input[list]`) - Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. - * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized. - * `status` (`pulumi.Input[str]`) - * `type` (`pulumi.Input[str]`) - - * `phase` (`pulumi.Input[str]`) - Phase represents the current phase of PersistentVolumeClaim. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py index 066a5495d3..3c6a3ee94c 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py @@ -18,242 +18,6 @@ class PersistentVolumeList(pulumi.CustomResource): items: pulumi.Output[list] """ List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`str`) - Share Name - - * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`str`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`dict`) - Attributes of the volume to publish. - * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`dict`) - Local represents directly-attached storage with node affinity - * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`dict`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `status` (`dict`) - Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - * `message` (`str`) - A human-readable message indicating details about why the volume is in this state. - * `phase` (`str`) - Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase - * `reason` (`str`) - Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. """ kind: pulumi.Output[str] """ @@ -262,12 +26,6 @@ class PersistentVolumeList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -278,254 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. - * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `status` (`pulumi.Input[dict]`) - Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - * `message` (`pulumi.Input[str]`) - A human-readable message indicating details about why the volume is in this state. - * `phase` (`pulumi.Input[str]`) - Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase - * `reason` (`pulumi.Input[str]`) - Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod.py b/sdk/python/pulumi_kubernetes/core/v1/pod.py index 5c17c257ba..349554789f 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/pod.py +++ b/sdk/python/pulumi_kubernetes/core/v1/pod.py @@ -22,574 +22,14 @@ class Pod(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk """ status: pulumi.Output[dict] """ Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `conditions` (`list`) - Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - * `lastProbeTime` (`str`) - Last time we probed the condition. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - Human-readable message indicating details about last transition. - * `reason` (`str`) - Unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`str`) - Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - * `type` (`str`) - Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - - * `container_statuses` (`list`) - The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - * `containerID` (`str`) - Container's ID in the format 'docker://'. - * `image` (`str`) - The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images - * `imageID` (`str`) - ImageID of the container's image. - * `lastState` (`dict`) - Details about the container's last termination condition. - * `running` (`dict`) - Details about a running container - * `startedAt` (`str`) - Time at which the container was last (re-)started - - * `terminated` (`dict`) - Details about a terminated container - * `containerID` (`str`) - Container's ID in the format 'docker://' - * `exitCode` (`float`) - Exit status from the last termination of the container - * `finishedAt` (`str`) - Time at which the container last terminated - * `message` (`str`) - Message regarding the last termination of the container - * `reason` (`str`) - (brief) reason from the last termination of the container - * `signal` (`float`) - Signal from the last termination of the container - * `startedAt` (`str`) - Time at which previous execution of the container started - - * `waiting` (`dict`) - Details about a waiting container - * `message` (`str`) - Message regarding why the container is not yet running. - * `reason` (`str`) - (brief) reason the container is not yet running. - - * `name` (`str`) - This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. - * `ready` (`bool`) - Specifies whether the container has passed its readiness probe. - * `restartCount` (`float`) - The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. - * `started` (`bool`) - Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined. - * `state` (`dict`) - Details about the container's current condition. - - * `ephemeral_container_statuses` (`list`) - Status for any ephemeral containers that have run in this pod. This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature. - * `host_ip` (`str`) - IP address of the host to which the pod is assigned. Empty if not yet scheduled. - * `init_container_statuses` (`list`) - The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - * `message` (`str`) - A human readable message indicating details about why the pod is in this condition. - * `nominated_node_name` (`str`) - nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. - * `phase` (`str`) - The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: - - Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. - - More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase - * `pod_ip` (`str`) - IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. - * `pod_i_ps` (`list`) - podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. - * `ip` (`str`) - ip is an IP address (IPv4 or IPv6) assigned to the pod - - * `qos_class` (`str`) - The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md - * `reason` (`str`) - A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' - * `start_time` (`str`) - RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -615,520 +55,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_list.py b/sdk/python/pulumi_kubernetes/core/v1/pod_list.py index 0855b3f0b0..38165d22f3 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/pod_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/pod_list.py @@ -18,573 +18,6 @@ class PodList(pulumi.CustomResource): items: pulumi.Output[list] """ List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `status` (`dict`) - Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `conditions` (`list`) - Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - * `lastProbeTime` (`str`) - Last time we probed the condition. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - Human-readable message indicating details about last transition. - * `reason` (`str`) - Unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`str`) - Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - * `type` (`str`) - Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - - * `container_statuses` (`list`) - The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - * `containerID` (`str`) - Container's ID in the format 'docker://'. - * `image` (`str`) - The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images - * `imageID` (`str`) - ImageID of the container's image. - * `lastState` (`dict`) - Details about the container's last termination condition. - * `running` (`dict`) - Details about a running container - * `startedAt` (`str`) - Time at which the container was last (re-)started - - * `terminated` (`dict`) - Details about a terminated container - * `containerID` (`str`) - Container's ID in the format 'docker://' - * `exitCode` (`float`) - Exit status from the last termination of the container - * `finishedAt` (`str`) - Time at which the container last terminated - * `message` (`str`) - Message regarding the last termination of the container - * `reason` (`str`) - (brief) reason from the last termination of the container - * `signal` (`float`) - Signal from the last termination of the container - * `startedAt` (`str`) - Time at which previous execution of the container started - - * `waiting` (`dict`) - Details about a waiting container - * `message` (`str`) - Message regarding why the container is not yet running. - * `reason` (`str`) - (brief) reason the container is not yet running. - - * `name` (`str`) - This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. - * `ready` (`bool`) - Specifies whether the container has passed its readiness probe. - * `restartCount` (`float`) - The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. - * `started` (`bool`) - Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined. - * `state` (`dict`) - Details about the container's current condition. - - * `ephemeral_container_statuses` (`list`) - Status for any ephemeral containers that have run in this pod. This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature. - * `host_ip` (`str`) - IP address of the host to which the pod is assigned. Empty if not yet scheduled. - * `init_container_statuses` (`list`) - The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - * `message` (`str`) - A human readable message indicating details about why the pod is in this condition. - * `nominated_node_name` (`str`) - nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. - * `phase` (`str`) - The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: - - Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. - - More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase - * `pod_ip` (`str`) - IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. - * `pod_i_ps` (`list`) - podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. - * `ip` (`str`) - ip is an IP address (IPv4 or IPv6) assigned to the pod - - * `qos_class` (`str`) - The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md - * `reason` (`str`) - A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' - * `start_time` (`str`) - RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. """ kind: pulumi.Output[str] """ @@ -593,12 +26,6 @@ class PodList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -609,585 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `status` (`pulumi.Input[dict]`) - Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `conditions` (`pulumi.Input[list]`) - Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - * `lastProbeTime` (`pulumi.Input[str]`) - Last time we probed the condition. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - Human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - Unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - * `type` (`pulumi.Input[str]`) - Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions - - * `container_statuses` (`pulumi.Input[list]`) - The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - * `containerID` (`pulumi.Input[str]`) - Container's ID in the format 'docker://'. - * `image` (`pulumi.Input[str]`) - The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images - * `imageID` (`pulumi.Input[str]`) - ImageID of the container's image. - * `lastState` (`pulumi.Input[dict]`) - Details about the container's last termination condition. - * `running` (`pulumi.Input[dict]`) - Details about a running container - * `startedAt` (`pulumi.Input[str]`) - Time at which the container was last (re-)started - - * `terminated` (`pulumi.Input[dict]`) - Details about a terminated container - * `containerID` (`pulumi.Input[str]`) - Container's ID in the format 'docker://' - * `exitCode` (`pulumi.Input[float]`) - Exit status from the last termination of the container - * `finishedAt` (`pulumi.Input[str]`) - Time at which the container last terminated - * `message` (`pulumi.Input[str]`) - Message regarding the last termination of the container - * `reason` (`pulumi.Input[str]`) - (brief) reason from the last termination of the container - * `signal` (`pulumi.Input[float]`) - Signal from the last termination of the container - * `startedAt` (`pulumi.Input[str]`) - Time at which previous execution of the container started - - * `waiting` (`pulumi.Input[dict]`) - Details about a waiting container - * `message` (`pulumi.Input[str]`) - Message regarding why the container is not yet running. - * `reason` (`pulumi.Input[str]`) - (brief) reason the container is not yet running. - - * `name` (`pulumi.Input[str]`) - This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. - * `ready` (`pulumi.Input[bool]`) - Specifies whether the container has passed its readiness probe. - * `restartCount` (`pulumi.Input[float]`) - The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. - * `started` (`pulumi.Input[bool]`) - Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined. - * `state` (`pulumi.Input[dict]`) - Details about the container's current condition. - - * `ephemeral_container_statuses` (`pulumi.Input[list]`) - Status for any ephemeral containers that have run in this pod. This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature. - * `host_ip` (`pulumi.Input[str]`) - IP address of the host to which the pod is assigned. Empty if not yet scheduled. - * `init_container_statuses` (`pulumi.Input[list]`) - The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about why the pod is in this condition. - * `nominated_node_name` (`pulumi.Input[str]`) - nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. - * `phase` (`pulumi.Input[str]`) - The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: - - Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. - - More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase - * `pod_ip` (`pulumi.Input[str]`) - IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. - * `pod_i_ps` (`pulumi.Input[list]`) - podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. - * `ip` (`pulumi.Input[str]`) - ip is an IP address (IPv4 or IPv6) assigned to the pod - - * `qos_class` (`pulumi.Input[str]`) - The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md - * `reason` (`pulumi.Input[str]`) - A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' - * `start_time` (`pulumi.Input[str]`) - RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_template.py b/sdk/python/pulumi_kubernetes/core/v1/pod_template.py index dec118c440..f95f012e7e 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/pod_template.py +++ b/sdk/python/pulumi_kubernetes/core/v1/pod_template.py @@ -22,567 +22,10 @@ class PodTemplate(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ template: pulumi.Output[dict] """ Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, template=None, __props__=None, __name__=None, __opts__=None): """ @@ -593,522 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] template: Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **template** object supports the following: - - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py b/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py index e5e5588386..31ac192cc9 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py @@ -18,521 +18,6 @@ class PodTemplateList(pulumi.CustomResource): items: pulumi.Output[list] """ List of pod templates - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `template` (`dict`) - Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk """ kind: pulumi.Output[str] """ @@ -541,12 +26,6 @@ class PodTemplateList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -557,533 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of pod templates :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `template` (`pulumi.Input[dict]`) - Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py b/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py index 3aa993bbc3..631ad74eae 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py +++ b/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py @@ -22,587 +22,14 @@ class ReplicationController(pulumi.CustomResource): metadata: pulumi.Output[dict] """ If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - * `selector` (`dict`) - Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk """ status: pulumi.Output[dict] """ Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replication controller. - * `conditions` (`list`) - Represents the latest available observations of a replication controller's current state. - * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of replication controller condition. - - * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replication controller. - * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed replication controller. - * `ready_replicas` (`float`) - The number of ready replicas for this replication controller. - * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -613,526 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py b/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py index 5b21445096..dd0a6af5ca 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py @@ -18,539 +18,6 @@ class ReplicationControllerList(pulumi.CustomResource): items: pulumi.Output[list] """ List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - * `selector` (`dict`) - Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `status` (`dict`) - Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replication controller. - * `conditions` (`list`) - Represents the latest available observations of a replication controller's current state. - * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of replication controller condition. - - * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replication controller. - * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed replication controller. - * `ready_replicas` (`float`) - The number of ready replicas for this replication controller. - * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller """ kind: pulumi.Output[str] """ @@ -559,12 +26,6 @@ class ReplicationControllerList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -575,551 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `status` (`pulumi.Input[dict]`) - Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `available_replicas` (`pulumi.Input[float]`) - The number of available replicas (ready for at least minReadySeconds) for this replication controller. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a replication controller's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - The last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of replication controller condition. - - * `fully_labeled_replicas` (`pulumi.Input[float]`) - The number of pods that have labels matching the labels of the pod template of the replication controller. - * `observed_generation` (`pulumi.Input[float]`) - ObservedGeneration reflects the generation of the most recently observed replication controller. - * `ready_replicas` (`pulumi.Input[float]`) - The number of ready replicas for this replication controller. - * `replicas` (`pulumi.Input[float]`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py b/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py index 440894bd64..073dcac761 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py +++ b/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py @@ -22,70 +22,14 @@ class ResourceQuota(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `hard` (`dict`) - hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - * `scope_selector` (`dict`) - scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. - * `match_expressions` (`list`) - A list of scope selector requirements by scope of the resources. - * `operator` (`str`) - Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. - * `scopeName` (`str`) - The name of the scope that the selector applies to. - * `values` (`list`) - 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. This array is replaced during a strategic merge patch. - - * `scopes` (`list`) - A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. """ status: pulumi.Output[dict] """ Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `hard` (`dict`) - Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - * `used` (`dict`) - Used is the current observed total usage of the resource in the namespace. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -96,66 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `hard` (`pulumi.Input[dict]`) - hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - * `scope_selector` (`pulumi.Input[dict]`) - scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. - * `match_expressions` (`pulumi.Input[list]`) - A list of scope selector requirements by scope of the resources. - * `operator` (`pulumi.Input[str]`) - Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. - * `scopeName` (`pulumi.Input[str]`) - The name of the scope that the selector applies to. - * `values` (`pulumi.Input[list]`) - 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. This array is replaced during a strategic merge patch. - - * `scopes` (`pulumi.Input[list]`) - A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py b/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py index 451f45d860..e07c206d64 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py @@ -18,69 +18,6 @@ class ResourceQuotaList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `hard` (`dict`) - hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - * `scope_selector` (`dict`) - scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. - * `match_expressions` (`list`) - A list of scope selector requirements by scope of the resources. - * `operator` (`str`) - Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. - * `scopeName` (`str`) - The name of the scope that the selector applies to. - * `values` (`list`) - 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. This array is replaced during a strategic merge patch. - - * `scopes` (`list`) - A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. - - * `status` (`dict`) - Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `hard` (`dict`) - Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - * `used` (`dict`) - Used is the current observed total usage of the resource in the namespace. """ kind: pulumi.Output[str] """ @@ -89,12 +26,6 @@ class ResourceQuotaList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -105,81 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `hard` (`pulumi.Input[dict]`) - hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - * `scope_selector` (`pulumi.Input[dict]`) - scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. - * `match_expressions` (`pulumi.Input[list]`) - A list of scope selector requirements by scope of the resources. - * `operator` (`pulumi.Input[str]`) - Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. - * `scopeName` (`pulumi.Input[str]`) - The name of the scope that the selector applies to. - * `values` (`pulumi.Input[list]`) - 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. This array is replaced during a strategic merge patch. - - * `scopes` (`pulumi.Input[list]`) - A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. - - * `status` (`pulumi.Input[dict]`) - Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `hard` (`pulumi.Input[dict]`) - Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - * `used` (`pulumi.Input[dict]`) - Used is the current observed total usage of the resource in the namespace. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/secret.py b/sdk/python/pulumi_kubernetes/core/v1/secret.py index 087ead9284..ac5a04fe33 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/secret.py +++ b/sdk/python/pulumi_kubernetes/core/v1/secret.py @@ -30,52 +30,6 @@ class Secret(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ string_data: pulumi.Output[dict] """ @@ -107,55 +61,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, data=None, im :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] string_data: stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. :param pulumi.Input[str] type: Used to facilitate programmatic handling of secret data. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/secret_list.py b/sdk/python/pulumi_kubernetes/core/v1/secret_list.py index eaf3bb73e1..81c6006753 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/secret_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/secret_list.py @@ -18,60 +18,6 @@ class SecretList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret - * `api_version` (`str`) - 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 - * `data` (`dict`) - Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 - * `immutable` (`bool`) - Immutable, if set to true, ensures that data stored in the Secret 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. - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `string_data` (`dict`) - stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. - * `type` (`str`) - Used to facilitate programmatic handling of secret data. """ kind: pulumi.Output[str] """ @@ -80,12 +26,6 @@ class SecretList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -96,72 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `data` (`pulumi.Input[dict]`) - Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 - * `immutable` (`pulumi.Input[bool]`) - Immutable, if set to true, ensures that data stored in the Secret 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. - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `string_data` (`pulumi.Input[dict]`) - stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. - * `type` (`pulumi.Input[str]`) - Used to facilitate programmatic handling of secret data. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/service.py b/sdk/python/pulumi_kubernetes/core/v1/service.py index 59cfe9862e..d0fdfcafd4 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/service.py +++ b/sdk/python/pulumi_kubernetes/core/v1/service.py @@ -22,89 +22,14 @@ class Service(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `cluster_ip` (`str`) - clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are "None", empty string (""), or a valid IP address. "None" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * `external_i_ps` (`list`) - externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. - * `external_name` (`str`) - externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. - * `external_traffic_policy` (`str`) - externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. - * `health_check_node_port` (`float`) - healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. - * `ip_family` (`str`) - ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. IPv6). If a specific IP family is requested, the clusterIP field will be allocated from that family, if it is available in the cluster. If no IP family is requested, the cluster's primary IP family will be used. Other IP fields (loadBalancerIP, loadBalancerSourceRanges, externalIPs) and controllers which allocate external load-balancers should use the same IP family. Endpoints for this Service will be of this family. This field is immutable after creation. Assigning a ServiceIPFamily not available in the cluster (e.g. IPv6 in IPv4 only cluster) is an error condition and will fail during clusterIP assignment. - * `load_balancer_ip` (`str`) - Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. - * `load_balancer_source_ranges` (`list`) - If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ - * `ports` (`list`) - The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * `appProtocol` (`str`) - 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. - * `name` (`str`) - The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. - * `nodePort` (`float`) - The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport - * `port` (`float`) - The port that will be exposed by this service. - * `protocol` (`str`) - The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. - * `targetPort` (`dict`) - Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service - - * `publish_not_ready_addresses` (`bool`) - publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. - * `selector` (`dict`) - Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ - * `session_affinity` (`str`) - Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * `session_affinity_config` (`dict`) - sessionAffinityConfig contains the configurations of session affinity. - * `client_ip` (`dict`) - clientIP contains the configurations of Client IP based session affinity. - * `timeout_seconds` (`float`) - timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). - - * `topology_keys` (`list`) - topologyKeys is a preference-order list of topology keys which implementations of services should use to preferentially sort endpoints when accessing this Service, it can not be used at the same time as externalTrafficPolicy=Local. Topology keys must be valid label keys and at most 16 keys may be specified. Endpoints are chosen based on the first topology key with available backends. If this field is specified and all entries have no backends that match the topology of the client, the service has no backends for that client and connections should fail. The special value "*" may be used to mean "any topology". This catch-all value, if used, only makes sense as the last value in the list. If this is not specified or empty, no topology constraints will be applied. - * `type` (`str`) - type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ExternalName" maps to the specified externalName. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types """ status: pulumi.Output[dict] """ Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `load_balancer` (`dict`) - LoadBalancer contains the current status of the load-balancer, if one is present. - * `ingress` (`list`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. - * `hostname` (`str`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) - * `ip` (`str`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -140,83 +65,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `cluster_ip` (`pulumi.Input[str]`) - clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are "None", empty string (""), or a valid IP address. "None" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * `external_i_ps` (`pulumi.Input[list]`) - externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. - * `external_name` (`pulumi.Input[str]`) - externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. - * `external_traffic_policy` (`pulumi.Input[str]`) - externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. - * `health_check_node_port` (`pulumi.Input[float]`) - healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. - * `ip_family` (`pulumi.Input[str]`) - ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. IPv6). If a specific IP family is requested, the clusterIP field will be allocated from that family, if it is available in the cluster. If no IP family is requested, the cluster's primary IP family will be used. Other IP fields (loadBalancerIP, loadBalancerSourceRanges, externalIPs) and controllers which allocate external load-balancers should use the same IP family. Endpoints for this Service will be of this family. This field is immutable after creation. Assigning a ServiceIPFamily not available in the cluster (e.g. IPv6 in IPv4 only cluster) is an error condition and will fail during clusterIP assignment. - * `load_balancer_ip` (`pulumi.Input[str]`) - Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. - * `load_balancer_source_ranges` (`pulumi.Input[list]`) - If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ - * `ports` (`pulumi.Input[list]`) - The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * `appProtocol` (`pulumi.Input[str]`) - 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. - * `name` (`pulumi.Input[str]`) - The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. - * `nodePort` (`pulumi.Input[float]`) - The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport - * `port` (`pulumi.Input[float]`) - The port that will be exposed by this service. - * `protocol` (`pulumi.Input[str]`) - The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. - * `targetPort` (`pulumi.Input[dict]`) - Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service - - * `publish_not_ready_addresses` (`pulumi.Input[bool]`) - publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. - * `selector` (`pulumi.Input[dict]`) - Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ - * `session_affinity` (`pulumi.Input[str]`) - Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * `session_affinity_config` (`pulumi.Input[dict]`) - sessionAffinityConfig contains the configurations of session affinity. - * `client_ip` (`pulumi.Input[dict]`) - clientIP contains the configurations of Client IP based session affinity. - * `timeout_seconds` (`pulumi.Input[float]`) - timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). - - * `topology_keys` (`pulumi.Input[list]`) - topologyKeys is a preference-order list of topology keys which implementations of services should use to preferentially sort endpoints when accessing this Service, it can not be used at the same time as externalTrafficPolicy=Local. Topology keys must be valid label keys and at most 16 keys may be specified. Endpoints are chosen based on the first topology key with available backends. If this field is specified and all entries have no backends that match the topology of the client, the service has no backends for that client and connections should fail. The special value "*" may be used to mean "any topology". This catch-all value, if used, only makes sense as the last value in the list. If this is not specified or empty, no topology constraints will be applied. - * `type` (`pulumi.Input[str]`) - type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ExternalName" maps to the specified externalName. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_account.py b/sdk/python/pulumi_kubernetes/core/v1/service_account.py index 76b4d5c15e..c4a38ba913 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/service_account.py +++ b/sdk/python/pulumi_kubernetes/core/v1/service_account.py @@ -22,7 +22,6 @@ class ServiceAccount(pulumi.CustomResource): image_pull_secrets: pulumi.Output[list] """ ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names """ kind: pulumi.Output[str] """ @@ -31,63 +30,10 @@ class ServiceAccount(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ secrets: pulumi.Output[list] """ Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids """ def __init__(__self__, resource_name, opts=None, api_version=None, automount_service_account_token=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None, __props__=None, __name__=None, __opts__=None): """ @@ -100,69 +46,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, automount_ser :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[list] secrets: Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret - - The **image_pull_secrets** object supports the following: - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **secrets** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py b/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py index a1a511c66d..9daf9e8252 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py @@ -18,68 +18,6 @@ class ServiceAccountList(pulumi.CustomResource): items: pulumi.Output[list] """ List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `api_version` (`str`) - 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 - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. - * `image_pull_secrets` (`list`) - ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `secrets` (`list`) - Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids """ kind: pulumi.Output[str] """ @@ -88,12 +26,6 @@ class ServiceAccountList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -104,80 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `secrets` (`pulumi.Input[list]`) - Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_list.py b/sdk/python/pulumi_kubernetes/core/v1/service_list.py index badb8ddcbd..7d48f20b23 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/service_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/service_list.py @@ -18,88 +18,6 @@ class ServiceList(pulumi.CustomResource): items: pulumi.Output[list] """ List of services - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `cluster_ip` (`str`) - clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are "None", empty string (""), or a valid IP address. "None" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * `external_i_ps` (`list`) - externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. - * `external_name` (`str`) - externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. - * `external_traffic_policy` (`str`) - externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. - * `health_check_node_port` (`float`) - healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. - * `ip_family` (`str`) - ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. IPv6). If a specific IP family is requested, the clusterIP field will be allocated from that family, if it is available in the cluster. If no IP family is requested, the cluster's primary IP family will be used. Other IP fields (loadBalancerIP, loadBalancerSourceRanges, externalIPs) and controllers which allocate external load-balancers should use the same IP family. Endpoints for this Service will be of this family. This field is immutable after creation. Assigning a ServiceIPFamily not available in the cluster (e.g. IPv6 in IPv4 only cluster) is an error condition and will fail during clusterIP assignment. - * `load_balancer_ip` (`str`) - Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. - * `load_balancer_source_ranges` (`list`) - If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ - * `ports` (`list`) - The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * `appProtocol` (`str`) - 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. - * `name` (`str`) - The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. - * `nodePort` (`float`) - The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport - * `port` (`float`) - The port that will be exposed by this service. - * `protocol` (`str`) - The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. - * `targetPort` (`dict`) - Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service - - * `publish_not_ready_addresses` (`bool`) - publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. - * `selector` (`dict`) - Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ - * `session_affinity` (`str`) - Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * `session_affinity_config` (`dict`) - sessionAffinityConfig contains the configurations of session affinity. - * `client_ip` (`dict`) - clientIP contains the configurations of Client IP based session affinity. - * `timeout_seconds` (`float`) - timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). - - * `topology_keys` (`list`) - topologyKeys is a preference-order list of topology keys which implementations of services should use to preferentially sort endpoints when accessing this Service, it can not be used at the same time as externalTrafficPolicy=Local. Topology keys must be valid label keys and at most 16 keys may be specified. Endpoints are chosen based on the first topology key with available backends. If this field is specified and all entries have no backends that match the topology of the client, the service has no backends for that client and connections should fail. The special value "*" may be used to mean "any topology". This catch-all value, if used, only makes sense as the last value in the list. If this is not specified or empty, no topology constraints will be applied. - * `type` (`str`) - type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ExternalName" maps to the specified externalName. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types - - * `status` (`dict`) - Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `load_balancer` (`dict`) - LoadBalancer contains the current status of the load-balancer, if one is present. - * `ingress` (`list`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. - * `hostname` (`str`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) - * `ip` (`str`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) """ kind: pulumi.Output[str] """ @@ -108,12 +26,6 @@ class ServiceList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -124,100 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of services :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `cluster_ip` (`pulumi.Input[str]`) - clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are "None", empty string (""), or a valid IP address. "None" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * `external_i_ps` (`pulumi.Input[list]`) - externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. - * `external_name` (`pulumi.Input[str]`) - externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. - * `external_traffic_policy` (`pulumi.Input[str]`) - externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. - * `health_check_node_port` (`pulumi.Input[float]`) - healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. - * `ip_family` (`pulumi.Input[str]`) - ipFamily specifies whether this Service has a preference for a particular IP family (e.g. IPv4 vs. IPv6). If a specific IP family is requested, the clusterIP field will be allocated from that family, if it is available in the cluster. If no IP family is requested, the cluster's primary IP family will be used. Other IP fields (loadBalancerIP, loadBalancerSourceRanges, externalIPs) and controllers which allocate external load-balancers should use the same IP family. Endpoints for this Service will be of this family. This field is immutable after creation. Assigning a ServiceIPFamily not available in the cluster (e.g. IPv6 in IPv4 only cluster) is an error condition and will fail during clusterIP assignment. - * `load_balancer_ip` (`pulumi.Input[str]`) - Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. - * `load_balancer_source_ranges` (`pulumi.Input[list]`) - If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ - * `ports` (`pulumi.Input[list]`) - The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * `appProtocol` (`pulumi.Input[str]`) - 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. - * `name` (`pulumi.Input[str]`) - The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. - * `nodePort` (`pulumi.Input[float]`) - The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport - * `port` (`pulumi.Input[float]`) - The port that will be exposed by this service. - * `protocol` (`pulumi.Input[str]`) - The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. - * `targetPort` (`pulumi.Input[dict]`) - Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service - - * `publish_not_ready_addresses` (`pulumi.Input[bool]`) - publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. - * `selector` (`pulumi.Input[dict]`) - Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ - * `session_affinity` (`pulumi.Input[str]`) - Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - * `session_affinity_config` (`pulumi.Input[dict]`) - sessionAffinityConfig contains the configurations of session affinity. - * `client_ip` (`pulumi.Input[dict]`) - clientIP contains the configurations of Client IP based session affinity. - * `timeout_seconds` (`pulumi.Input[float]`) - timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". Default value is 10800(for 3 hours). - - * `topology_keys` (`pulumi.Input[list]`) - topologyKeys is a preference-order list of topology keys which implementations of services should use to preferentially sort endpoints when accessing this Service, it can not be used at the same time as externalTrafficPolicy=Local. Topology keys must be valid label keys and at most 16 keys may be specified. Endpoints are chosen based on the first topology key with available backends. If this field is specified and all entries have no backends that match the topology of the client, the service has no backends for that client and connections should fail. The special value "*" may be used to mean "any topology". This catch-all value, if used, only makes sense as the last value in the list. If this is not specified or empty, no topology constraints will be applied. - * `type` (`pulumi.Input[str]`) - type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ExternalName" maps to the specified externalName. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types - - * `status` (`pulumi.Input[dict]`) - Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `load_balancer` (`pulumi.Input[dict]`) - LoadBalancer contains the current status of the load-balancer, if one is present. - * `ingress` (`pulumi.Input[list]`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. - * `hostname` (`pulumi.Input[str]`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) - * `ip` (`pulumi.Input[str]`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py index a3f783a5b9..c743256430 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py @@ -22,27 +22,6 @@ class EndpointSlice(pulumi.CustomResource): endpoints: pulumi.Output[list] """ endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. - * `addresses` (`list`) - addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. - * `conditions` (`dict`) - conditions contains information about the current status of the endpoint. - * `ready` (`bool`) - ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. - - * `hostname` (`str`) - hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation. - * `targetRef` (`dict`) - targetRef is a reference to a Kubernetes object that represents this endpoint. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `topology` (`dict`) - topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node - where the endpoint is located. This should match the corresponding - node label. - * topology.kubernetes.io/zone: the value indicates the zone where the - endpoint is located. This should match the corresponding node label. - * topology.kubernetes.io/region: the value indicates the region where the - endpoint is located. This should match the corresponding node label. """ kind: pulumi.Output[str] """ @@ -51,60 +30,10 @@ class EndpointSlice(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ ports: pulumi.Output[list] """ ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. - * `appProtocol` (`str`) - 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. - * `name` (`str`) - The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. - * `port` (`float`) - The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. - * `protocol` (`str`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. """ def __init__(__self__, resource_name, opts=None, address_type=None, api_version=None, endpoints=None, kind=None, metadata=None, ports=None, __props__=None, __name__=None, __opts__=None): """ @@ -117,86 +46,6 @@ def __init__(__self__, resource_name, opts=None, address_type=None, api_version= :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 :param pulumi.Input[dict] metadata: Standard object's metadata. :param pulumi.Input[list] ports: ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. - - The **endpoints** object supports the following: - - * `addresses` (`pulumi.Input[list]`) - addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. - * `conditions` (`pulumi.Input[dict]`) - conditions contains information about the current status of the endpoint. - * `ready` (`pulumi.Input[bool]`) - ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. - - * `hostname` (`pulumi.Input[str]`) - hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation. - * `targetRef` (`pulumi.Input[dict]`) - targetRef is a reference to a Kubernetes object that represents this endpoint. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `topology` (`pulumi.Input[dict]`) - topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node - where the endpoint is located. This should match the corresponding - node label. - * topology.kubernetes.io/zone: the value indicates the zone where the - endpoint is located. This should match the corresponding node label. - * topology.kubernetes.io/region: the value indicates the region where the - endpoint is located. This should match the corresponding node label. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **ports** object supports the following: - - * `appProtocol` (`pulumi.Input[str]`) - 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. - * `name` (`pulumi.Input[str]`) - The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. - * `port` (`pulumi.Input[float]`) - The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. - * `protocol` (`pulumi.Input[str]`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py index e299caea0d..79ccd73470 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py @@ -18,85 +18,6 @@ class EndpointSliceList(pulumi.CustomResource): items: pulumi.Output[list] """ List of endpoint slices - * `address_type` (`str`) - addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. - * `api_version` (`str`) - 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 - * `endpoints` (`list`) - endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. - * `addresses` (`list`) - addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. - * `conditions` (`dict`) - conditions contains information about the current status of the endpoint. - * `ready` (`bool`) - ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. - - * `hostname` (`str`) - hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation. - * `targetRef` (`dict`) - targetRef is a reference to a Kubernetes object that represents this endpoint. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `topology` (`dict`) - topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node - where the endpoint is located. This should match the corresponding - node label. - * topology.kubernetes.io/zone: the value indicates the zone where the - endpoint is located. This should match the corresponding node label. - * topology.kubernetes.io/region: the value indicates the region where the - endpoint is located. This should match the corresponding node label. - - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `ports` (`list`) - ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. - * `appProtocol` (`str`) - 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. - * `name` (`str`) - The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. - * `port` (`float`) - The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. - * `protocol` (`str`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. """ kind: pulumi.Output[str] """ @@ -105,12 +26,6 @@ class EndpointSliceList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -121,97 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of endpoint slices :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 :param pulumi.Input[dict] metadata: Standard list metadata. - - The **items** object supports the following: - - * `address_type` (`pulumi.Input[str]`) - addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. - * `api_version` (`pulumi.Input[str]`) - 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 - * `endpoints` (`pulumi.Input[list]`) - endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. - * `addresses` (`pulumi.Input[list]`) - addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. - * `conditions` (`pulumi.Input[dict]`) - conditions contains information about the current status of the endpoint. - * `ready` (`pulumi.Input[bool]`) - ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. - - * `hostname` (`pulumi.Input[str]`) - hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation. - * `targetRef` (`pulumi.Input[dict]`) - targetRef is a reference to a Kubernetes object that represents this endpoint. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `topology` (`pulumi.Input[dict]`) - topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node - where the endpoint is located. This should match the corresponding - node label. - * topology.kubernetes.io/zone: the value indicates the zone where the - endpoint is located. This should match the corresponding node label. - * topology.kubernetes.io/region: the value indicates the region where the - endpoint is located. This should match the corresponding node label. - - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `ports` (`pulumi.Input[list]`) - ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. - * `appProtocol` (`pulumi.Input[str]`) - 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. - * `name` (`pulumi.Input[str]`) - The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. - * `port` (`pulumi.Input[float]`) - The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. - * `protocol` (`pulumi.Input[str]`) - The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/event.py b/sdk/python/pulumi_kubernetes/events/v1beta1/event.py index 2a2d2ad3be..4b1ec3905c 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/event.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/event.py @@ -34,8 +34,6 @@ class Event(pulumi.CustomResource): deprecated_source: pulumi.Output[dict] """ Deprecated field assuring backward compatibility with core.v1 Event type - * `component` (`str`) - Component from which the event is generated. - * `host` (`str`) - Node name on which the event is generated. """ event_time: pulumi.Output[str] """ @@ -57,24 +55,10 @@ class Event(pulumi.CustomResource): regarding: pulumi.Output[dict] """ The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids """ related: pulumi.Output[dict] """ Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids """ reporting_controller: pulumi.Output[str] """ @@ -87,9 +71,6 @@ class Event(pulumi.CustomResource): series: pulumi.Output[dict] """ Data about the Event series this event represents or nil if it's a singleton Event. - * `count` (`float`) - Number of occurrences in this series up to the last heartbeat time - * `last_observed_time` (`str`) - Time when last Event from the series was seen before last heartbeat. - * `state` (`str`) - Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18 """ type: pulumi.Output[str] """ @@ -116,76 +97,6 @@ def __init__(__self__, resource_name, opts=None, action=None, api_version=None, :param pulumi.Input[str] reporting_instance: ID of the controller instance, e.g. `kubelet-xyzf`. :param pulumi.Input[dict] series: Data about the Event series this event represents or nil if it's a singleton Event. :param pulumi.Input[str] type: Type of this event (Normal, Warning), new types could be added in the future. - - The **deprecated_source** object supports the following: - - * `component` (`pulumi.Input[str]`) - Component from which the event is generated. - * `host` (`pulumi.Input[str]`) - Node name on which the event is generated. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **regarding** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - The **series** object supports the following: - - * `count` (`pulumi.Input[float]`) - Number of occurrences in this series up to the last heartbeat time - * `last_observed_time` (`pulumi.Input[str]`) - Time when last Event from the series was seen before last heartbeat. - * `state` (`pulumi.Input[str]`) - Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18 """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py b/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py index 3913a5d513..cb5934838f 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py @@ -18,85 +18,6 @@ class EventList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of schema objects. - * `action` (`str`) - What action was taken/failed regarding to the regarding object. - * `api_version` (`str`) - 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 - * `deprecated_count` (`float`) - Deprecated field assuring backward compatibility with core.v1 Event type - * `deprecated_first_timestamp` (`str`) - Deprecated field assuring backward compatibility with core.v1 Event type - * `deprecated_last_timestamp` (`str`) - Deprecated field assuring backward compatibility with core.v1 Event type - * `deprecated_source` (`dict`) - Deprecated field assuring backward compatibility with core.v1 Event type - * `component` (`str`) - Component from which the event is generated. - * `host` (`str`) - Node name on which the event is generated. - - * `event_time` (`str`) - Required. Time when this Event was first observed. - * `kind` (`str`) - 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 - * `metadata` (`dict`) - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `note` (`str`) - Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. - * `reason` (`str`) - Why the action was taken. - * `regarding` (`dict`) - The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `related` (`dict`) - Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. - * `reporting_controller` (`str`) - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - * `reporting_instance` (`str`) - ID of the controller instance, e.g. `kubelet-xyzf`. - * `series` (`dict`) - Data about the Event series this event represents or nil if it's a singleton Event. - * `count` (`float`) - Number of occurrences in this series up to the last heartbeat time - * `last_observed_time` (`str`) - Time when last Event from the series was seen before last heartbeat. - * `state` (`str`) - Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18 - - * `type` (`str`) - Type of this event (Normal, Warning), new types could be added in the future. """ kind: pulumi.Output[str] """ @@ -105,12 +26,6 @@ class EventList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -121,97 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of schema objects. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `action` (`pulumi.Input[str]`) - What action was taken/failed regarding to the regarding object. - * `api_version` (`pulumi.Input[str]`) - 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 - * `deprecated_count` (`pulumi.Input[float]`) - Deprecated field assuring backward compatibility with core.v1 Event type - * `deprecated_first_timestamp` (`pulumi.Input[str]`) - Deprecated field assuring backward compatibility with core.v1 Event type - * `deprecated_last_timestamp` (`pulumi.Input[str]`) - Deprecated field assuring backward compatibility with core.v1 Event type - * `deprecated_source` (`pulumi.Input[dict]`) - Deprecated field assuring backward compatibility with core.v1 Event type - * `component` (`pulumi.Input[str]`) - Component from which the event is generated. - * `host` (`pulumi.Input[str]`) - Node name on which the event is generated. - - * `event_time` (`pulumi.Input[str]`) - Required. Time when this Event was first observed. - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `note` (`pulumi.Input[str]`) - Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. - * `reason` (`pulumi.Input[str]`) - Why the action was taken. - * `regarding` (`pulumi.Input[dict]`) - The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `related` (`pulumi.Input[dict]`) - Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. - * `reporting_controller` (`pulumi.Input[str]`) - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - * `reporting_instance` (`pulumi.Input[str]`) - ID of the controller instance, e.g. `kubelet-xyzf`. - * `series` (`pulumi.Input[dict]`) - Data about the Event series this event represents or nil if it's a singleton Event. - * `count` (`pulumi.Input[float]`) - Number of occurrences in this series up to the last heartbeat time - * `last_observed_time` (`pulumi.Input[str]`) - Time when last Event from the series was seen before last heartbeat. - * `state` (`pulumi.Input[str]`) - Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18 - - * `type` (`pulumi.Input[str]`) - Type of this event (Normal, Warning), new types could be added in the future. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py index 6a7e04567a..efe665fc1c 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py @@ -23,598 +23,14 @@ class DaemonSet(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * `revision_history_limit` (`float`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`dict`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `template_generation` (`float`) - DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. - * `update_strategy` (`dict`) - An update strategy to replace existing DaemonSet pods with new pods. - * `rolling_update` (`dict`) - Rolling update config params. Present only if type = "RollingUpdate". - * `max_unavailable` (`dict`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - * `type` (`str`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is OnDelete. """ status: pulumi.Output[dict] """ The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `collision_count` (`float`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`list`) - Represents the latest available observations of a DaemonSet's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of DaemonSet condition. - - * `current_number_scheduled` (`float`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `desired_number_scheduled` (`float`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_available` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `number_misscheduled` (`float`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_ready` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. - * `number_unavailable` (`float`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `observed_generation` (`float`) - The most recent generation observed by the daemon set controller. - * `updated_number_scheduled` (`float`) - The total number of nodes that are running updated daemon pod """ warnings.warn("extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): @@ -626,533 +42,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `min_ready_seconds` (`pulumi.Input[float]`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`pulumi.Input[dict]`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `template_generation` (`pulumi.Input[float]`) - DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. - * `update_strategy` (`pulumi.Input[dict]`) - An update strategy to replace existing DaemonSet pods with new pods. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if type = "RollingUpdate". - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - * `type` (`pulumi.Input[str]`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is OnDelete. """ pulumi.log.warn("DaemonSet is deprecated: extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.") if __name__ is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py index 3b6aca02ca..487c0c3e09 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py @@ -18,550 +18,6 @@ class DaemonSetList(pulumi.CustomResource): items: pulumi.Output[list] """ A list of daemon sets. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * `revision_history_limit` (`float`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`dict`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `template_generation` (`float`) - DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. - * `update_strategy` (`dict`) - An update strategy to replace existing DaemonSet pods with new pods. - * `rolling_update` (`dict`) - Rolling update config params. Present only if type = "RollingUpdate". - * `max_unavailable` (`dict`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - * `type` (`str`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is OnDelete. - - * `status` (`dict`) - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `collision_count` (`float`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`list`) - Represents the latest available observations of a DaemonSet's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of DaemonSet condition. - - * `current_number_scheduled` (`float`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `desired_number_scheduled` (`float`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_available` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `number_misscheduled` (`float`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_ready` (`float`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. - * `number_unavailable` (`float`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `observed_generation` (`float`) - The most recent generation observed by the daemon set controller. - * `updated_number_scheduled` (`float`) - The total number of nodes that are running updated daemon pod """ kind: pulumi.Output[str] """ @@ -570,12 +26,6 @@ class DaemonSetList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -586,562 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: A list of daemon sets. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`pulumi.Input[float]`) - The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. - * `selector` (`pulumi.Input[dict]`) - A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `template_generation` (`pulumi.Input[float]`) - DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. - * `update_strategy` (`pulumi.Input[dict]`) - An update strategy to replace existing DaemonSet pods with new pods. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if type = "RollingUpdate". - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. - - * `type` (`pulumi.Input[str]`) - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is OnDelete. - - * `status` (`pulumi.Input[dict]`) - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a DaemonSet's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of DaemonSet condition. - - * `current_number_scheduled` (`pulumi.Input[float]`) - The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `desired_number_scheduled` (`pulumi.Input[float]`) - The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_available` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `number_misscheduled` (`pulumi.Input[float]`) - The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ - * `number_ready` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. - * `number_unavailable` (`pulumi.Input[float]`) - The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) - * `observed_generation` (`pulumi.Input[float]`) - The most recent generation observed by the daemon set controller. - * `updated_number_scheduled` (`pulumi.Input[float]`) - The total number of nodes that are running updated daemon pod - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py index 2dbe0d9c76..6321ab0a99 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py @@ -23,603 +23,14 @@ class Deployment(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the desired behavior of the Deployment. - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`bool`) - Indicates that the deployment is paused and will not be processed by the deployment controller. - * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means "no deadline". - * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means "retaining all old RelicaSets". - * `rollback_to` (`dict`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. - * `revision` (`float`) - The revision to rollback to. If set to 0, rollback to the last revision. - - * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`dict`) - Template describes the pods that will be created. - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk """ status: pulumi.Output[dict] """ Most recently observed status of the Deployment. - * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. - * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `lastUpdateTime` (`str`) - The last time this condition was updated. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of deployment condition. - - * `observed_generation` (`float`) - The generation observed by the deployment controller. - * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. - * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. - * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. """ warnings.warn("extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): @@ -653,539 +64,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata. :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused and will not be processed by the deployment controller. - * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means "no deadline". - * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means "retaining all old RelicaSets". - * `rollback_to` (`pulumi.Input[dict]`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. - * `revision` (`pulumi.Input[float]`) - The revision to rollback to. If set to 0, rollback to the last revision. - - * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk """ pulumi.log.warn("Deployment is deprecated: extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.") if __name__ is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py index 3afc51b90a..a5e352ffb8 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py @@ -18,555 +18,6 @@ class DeploymentList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of Deployments. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the Deployment. - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`bool`) - Indicates that the deployment is paused and will not be processed by the deployment controller. - * `progress_deadline_seconds` (`float`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means "no deadline". - * `replicas` (`float`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`float`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means "retaining all old RelicaSets". - * `rollback_to` (`dict`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. - * `revision` (`float`) - The revision to rollback to. If set to 0, rollback to the last revision. - - * `selector` (`dict`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`dict`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`dict`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`dict`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`dict`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`str`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`dict`) - Template describes the pods that will be created. - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `status` (`dict`) - Most recently observed status of the Deployment. - * `available_replicas` (`float`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * `collision_count` (`float`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. - * `conditions` (`list`) - Represents the latest available observations of a deployment's current state. - * `lastTransitionTime` (`str`) - Last time the condition transitioned from one status to another. - * `lastUpdateTime` (`str`) - The last time this condition was updated. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of deployment condition. - - * `observed_generation` (`float`) - The generation observed by the deployment controller. - * `ready_replicas` (`float`) - Total number of ready pods targeted by this deployment. - * `replicas` (`float`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * `unavailable_replicas` (`float`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. - * `updated_replicas` (`float`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. """ kind: pulumi.Output[str] """ @@ -575,12 +26,6 @@ class DeploymentList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -591,567 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of Deployments. :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 :param pulumi.Input[dict] metadata: Standard list metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the Deployment. - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `paused` (`pulumi.Input[bool]`) - Indicates that the deployment is paused and will not be processed by the deployment controller. - * `progress_deadline_seconds` (`pulumi.Input[float]`) - The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means "no deadline". - * `replicas` (`pulumi.Input[float]`) - Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - * `revision_history_limit` (`pulumi.Input[float]`) - The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means "retaining all old RelicaSets". - * `rollback_to` (`pulumi.Input[dict]`) - DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. - * `revision` (`pulumi.Input[float]`) - The revision to rollback to. If set to 0, rollback to the last revision. - - * `selector` (`pulumi.Input[dict]`) - Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `strategy` (`pulumi.Input[dict]`) - The deployment strategy to use to replace existing pods with new ones. - * `rolling_update` (`pulumi.Input[dict]`) - Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. - * `max_surge` (`pulumi.Input[dict]`) - The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. - * `max_unavailable` (`pulumi.Input[dict]`) - The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. - - * `type` (`pulumi.Input[str]`) - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - * `template` (`pulumi.Input[dict]`) - Template describes the pods that will be created. - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `status` (`pulumi.Input[dict]`) - Most recently observed status of the Deployment. - * `available_replicas` (`pulumi.Input[float]`) - Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. - * `collision_count` (`pulumi.Input[float]`) - Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a deployment's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - Last time the condition transitioned from one status to another. - * `lastUpdateTime` (`pulumi.Input[str]`) - The last time this condition was updated. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of deployment condition. - - * `observed_generation` (`pulumi.Input[float]`) - The generation observed by the deployment controller. - * `ready_replicas` (`pulumi.Input[float]`) - Total number of ready pods targeted by this deployment. - * `replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment (their labels match the selector). - * `unavailable_replicas` (`pulumi.Input[float]`) - Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. - * `updated_replicas` (`pulumi.Input[float]`) - Total number of non-terminated pods targeted by this deployment that have the desired template spec. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py index b1eaf9042e..7bfe4efba2 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py @@ -23,102 +23,14 @@ class Ingress(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `backend` (`dict`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. - * `resource` (`dict`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `service_name` (`str`) - Specifies the name of the referenced service. - * `service_port` (`dict`) - Specifies the port of the referenced service. - - * `ingress_class_name` (`str`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. - * `rules` (`list`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. - * `host` (`str`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to - the IP in the Spec of the parent Ingress. - 2. The `:` delimiter is not respected because ports are not allowed. - Currently the port of an Ingress is implicitly :80 for http and - :443 for https. - Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. - - Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. - * `http` (`dict`) - * `paths` (`list`) - A collection of paths that map requests to backends. - * `backend` (`dict`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. - * `path` (`str`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. - * `pathType` (`str`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is - done on a path element by element basis. A path element refers is the - list of labels in the path split by the '/' separator. A request is a - match for path p if every p is an element-wise prefix of p of the - request path. Note that if the last element of the path is a substring - of the last element in request path, it is not a match (e.g. /foo/bar - matches /foo/bar/baz, but does not match /foo/barbaz). - * ImplementationSpecific: Interpretation of the Path matching is up to - the IngressClass. Implementations can treat this as a separate PathType - or treat it identically to Prefix or Exact path types. - Implementations are required to support all path types. Defaults to ImplementationSpecific. - - * `tls` (`list`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. - * `hosts` (`list`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. - * `secret_name` (`str`) - SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. """ status: pulumi.Output[dict] """ Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `load_balancer` (`dict`) - LoadBalancer contains the current status of the load-balancer. - * `ingress` (`list`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. - * `hostname` (`str`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) - * `ip` (`str`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) """ warnings.warn("extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.", DeprecationWarning) def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): @@ -144,96 +56,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `backend` (`pulumi.Input[dict]`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. - * `resource` (`pulumi.Input[dict]`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `service_name` (`pulumi.Input[str]`) - Specifies the name of the referenced service. - * `service_port` (`pulumi.Input[dict]`) - Specifies the port of the referenced service. - - * `ingress_class_name` (`pulumi.Input[str]`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. - * `rules` (`pulumi.Input[list]`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. - * `host` (`pulumi.Input[str]`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to - the IP in the Spec of the parent Ingress. - 2. The `:` delimiter is not respected because ports are not allowed. - Currently the port of an Ingress is implicitly :80 for http and - :443 for https. - Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. - - Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. - * `http` (`pulumi.Input[dict]`) - * `paths` (`pulumi.Input[list]`) - A collection of paths that map requests to backends. - * `backend` (`pulumi.Input[dict]`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. - * `path` (`pulumi.Input[str]`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. - * `pathType` (`pulumi.Input[str]`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is - done on a path element by element basis. A path element refers is the - list of labels in the path split by the '/' separator. A request is a - match for path p if every p is an element-wise prefix of p of the - request path. Note that if the last element of the path is a substring - of the last element in request path, it is not a match (e.g. /foo/bar - matches /foo/bar/baz, but does not match /foo/barbaz). - * ImplementationSpecific: Interpretation of the Path matching is up to - the IngressClass. Implementations can treat this as a separate PathType - or treat it identically to Prefix or Exact path types. - Implementations are required to support all path types. Defaults to ImplementationSpecific. - - * `tls` (`pulumi.Input[list]`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. - * `hosts` (`pulumi.Input[list]`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. - * `secret_name` (`pulumi.Input[str]`) - SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. """ pulumi.log.warn("Ingress is deprecated: extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.") if __name__ is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py index 573c0e922e..b503a963c7 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py @@ -18,101 +18,6 @@ class IngressList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of Ingress. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `backend` (`dict`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. - * `resource` (`dict`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `service_name` (`str`) - Specifies the name of the referenced service. - * `service_port` (`dict`) - Specifies the port of the referenced service. - - * `ingress_class_name` (`str`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. - * `rules` (`list`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. - * `host` (`str`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to - the IP in the Spec of the parent Ingress. - 2. The `:` delimiter is not respected because ports are not allowed. - Currently the port of an Ingress is implicitly :80 for http and - :443 for https. - Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. - - Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. - * `http` (`dict`) - * `paths` (`list`) - A collection of paths that map requests to backends. - * `backend` (`dict`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. - * `path` (`str`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. - * `pathType` (`str`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is - done on a path element by element basis. A path element refers is the - list of labels in the path split by the '/' separator. A request is a - match for path p if every p is an element-wise prefix of p of the - request path. Note that if the last element of the path is a substring - of the last element in request path, it is not a match (e.g. /foo/bar - matches /foo/bar/baz, but does not match /foo/barbaz). - * ImplementationSpecific: Interpretation of the Path matching is up to - the IngressClass. Implementations can treat this as a separate PathType - or treat it identically to Prefix or Exact path types. - Implementations are required to support all path types. Defaults to ImplementationSpecific. - - * `tls` (`list`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. - * `hosts` (`list`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. - * `secret_name` (`str`) - SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. - - * `status` (`dict`) - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `load_balancer` (`dict`) - LoadBalancer contains the current status of the load-balancer. - * `ingress` (`list`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. - * `hostname` (`str`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) - * `ip` (`str`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) """ kind: pulumi.Output[str] """ @@ -121,12 +26,6 @@ class IngressList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -137,113 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of Ingress. :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `backend` (`pulumi.Input[dict]`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. - * `resource` (`pulumi.Input[dict]`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `service_name` (`pulumi.Input[str]`) - Specifies the name of the referenced service. - * `service_port` (`pulumi.Input[dict]`) - Specifies the port of the referenced service. - - * `ingress_class_name` (`pulumi.Input[str]`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. - * `rules` (`pulumi.Input[list]`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. - * `host` (`pulumi.Input[str]`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to - the IP in the Spec of the parent Ingress. - 2. The `:` delimiter is not respected because ports are not allowed. - Currently the port of an Ingress is implicitly :80 for http and - :443 for https. - Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. - - Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. - * `http` (`pulumi.Input[dict]`) - * `paths` (`pulumi.Input[list]`) - A collection of paths that map requests to backends. - * `backend` (`pulumi.Input[dict]`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. - * `path` (`pulumi.Input[str]`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. - * `pathType` (`pulumi.Input[str]`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is - done on a path element by element basis. A path element refers is the - list of labels in the path split by the '/' separator. A request is a - match for path p if every p is an element-wise prefix of p of the - request path. Note that if the last element of the path is a substring - of the last element in request path, it is not a match (e.g. /foo/bar - matches /foo/bar/baz, but does not match /foo/barbaz). - * ImplementationSpecific: Interpretation of the Path matching is up to - the IngressClass. Implementations can treat this as a separate PathType - or treat it identically to Prefix or Exact path types. - Implementations are required to support all path types. Defaults to ImplementationSpecific. - - * `tls` (`pulumi.Input[list]`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. - * `hosts` (`pulumi.Input[list]`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. - * `secret_name` (`pulumi.Input[str]`) - SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. - - * `status` (`pulumi.Input[dict]`) - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `load_balancer` (`pulumi.Input[dict]`) - LoadBalancer contains the current status of the load-balancer. - * `ingress` (`pulumi.Input[list]`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. - * `hostname` (`pulumi.Input[str]`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) - * `ip` (`pulumi.Input[str]`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py index 25272769bd..ae773664a2 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py @@ -22,86 +22,10 @@ class NetworkPolicy(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the desired behavior for this NetworkPolicy. - * `egress` (`list`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 - * `ports` (`list`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - * `port` (`dict`) - If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. - * `protocol` (`str`) - Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. - - * `to` (`list`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. - * `ipBlock` (`dict`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. - * `cidr` (`str`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" - * `except` (`list`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range - - * `namespaceSelector` (`dict`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. - - If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `pod_selector` (`dict`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. - - If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - - * `ingress` (`list`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). - * `from` (`list`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. - * `ports` (`list`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - - * `pod_selector` (`dict`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. - * `policy_types` (`list`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -112,88 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the desired behavior for this NetworkPolicy. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `egress` (`pulumi.Input[list]`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 - * `ports` (`pulumi.Input[list]`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - * `port` (`pulumi.Input[dict]`) - If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. - * `protocol` (`pulumi.Input[str]`) - Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. - - * `to` (`pulumi.Input[list]`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. - * `ipBlock` (`pulumi.Input[dict]`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. - * `cidr` (`pulumi.Input[str]`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" - * `except` (`pulumi.Input[list]`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range - - * `namespaceSelector` (`pulumi.Input[dict]`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. - - If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `pod_selector` (`pulumi.Input[dict]`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. - - If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - - * `ingress` (`pulumi.Input[list]`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). - * `from` (`pulumi.Input[list]`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. - * `ports` (`pulumi.Input[list]`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - - * `pod_selector` (`pulumi.Input[dict]`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. - * `policy_types` (`pulumi.Input[list]`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py index 8d5e6f11cb..18f2c21b95 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py @@ -18,87 +18,6 @@ class NetworkPolicyList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of schema objects. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior for this NetworkPolicy. - * `egress` (`list`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 - * `ports` (`list`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - * `port` (`dict`) - If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. - * `protocol` (`str`) - Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. - - * `to` (`list`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. - * `ipBlock` (`dict`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. - * `cidr` (`str`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" - * `except` (`list`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range - - * `namespaceSelector` (`dict`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. - - If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `pod_selector` (`dict`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. - - If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - - * `ingress` (`list`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). - * `from` (`list`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. - * `ports` (`list`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - - * `pod_selector` (`dict`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. - * `policy_types` (`list`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 """ kind: pulumi.Output[str] """ @@ -107,12 +26,6 @@ class NetworkPolicyList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -123,99 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of schema objects. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior for this NetworkPolicy. - * `egress` (`pulumi.Input[list]`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 - * `ports` (`pulumi.Input[list]`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - * `port` (`pulumi.Input[dict]`) - If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. - * `protocol` (`pulumi.Input[str]`) - Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. - - * `to` (`pulumi.Input[list]`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. - * `ipBlock` (`pulumi.Input[dict]`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. - * `cidr` (`pulumi.Input[str]`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" - * `except` (`pulumi.Input[list]`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range - - * `namespaceSelector` (`pulumi.Input[dict]`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. - - If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `pod_selector` (`pulumi.Input[dict]`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. - - If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - - * `ingress` (`pulumi.Input[list]`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). - * `from` (`pulumi.Input[list]`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. - * `ports` (`pulumi.Input[list]`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - - * `pod_selector` (`pulumi.Input[dict]`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. - * `policy_types` (`pulumi.Input[list]`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py index b692677dd8..39ad77bb43 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py @@ -22,121 +22,10 @@ class PodSecurityPolicy(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ spec defines the policy enforced. - * `allow_privilege_escalation` (`bool`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. - * `allowed_csi_drivers` (`list`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. - * `name` (`str`) - Name is the registered name of the CSI driver - - * `allowed_capabilities` (`list`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - * `allowed_flex_volumes` (`list`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. - * `driver` (`str`) - driver is the name of the Flexvolume driver. - - * `allowed_host_paths` (`list`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. - * `pathPrefix` (`str`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. - - Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` - * `read_only` (`bool`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - - * `allowed_proc_mount_types` (`list`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. - * `allowed_unsafe_sysctls` (`list`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. - - Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - * `default_add_capabilities` (`list`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. - * `default_allow_privilege_escalation` (`bool`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. - * `forbidden_sysctls` (`list`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - - Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - * `fs_group` (`dict`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - * `ranges` (`list`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. - * `max` (`float`) - max is the end of the range, inclusive. - * `min` (`float`) - min is the start of the range, inclusive. - - * `rule` (`str`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - - * `host_ipc` (`bool`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. - * `host_network` (`bool`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - * `host_pid` (`bool`) - hostPID determines if the policy allows the use of HostPID in the pod spec. - * `host_ports` (`list`) - hostPorts determines which host port ranges are allowed to be exposed. - * `max` (`float`) - max is the end of the range, inclusive. - * `min` (`float`) - min is the start of the range, inclusive. - - * `privileged` (`bool`) - privileged determines if a pod can request to be run as privileged. - * `read_only_root_filesystem` (`bool`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. - * `required_drop_capabilities` (`list`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. - * `run_as_group` (`dict`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. - * `ranges` (`list`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - - * `run_as_user` (`dict`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - * `ranges` (`list`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. - - * `runtime_class` (`dict`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. - * `allowed_runtime_class_names` (`list`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. - * `default_runtime_class_name` (`str`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. - - * `se_linux` (`dict`) - seLinux is the strategy that will dictate the allowable labels that may be set. - * `rule` (`str`) - rule is the strategy that will dictate the allowable labels that may be set. - * `se_linux_options` (`dict`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `supplemental_groups` (`dict`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - * `ranges` (`list`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`str`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - - * `volumes` (`list`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -147,123 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: spec defines the policy enforced. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. - * `allowed_csi_drivers` (`pulumi.Input[list]`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. - * `name` (`pulumi.Input[str]`) - Name is the registered name of the CSI driver - - * `allowed_capabilities` (`pulumi.Input[list]`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - * `allowed_flex_volumes` (`pulumi.Input[list]`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. - * `driver` (`pulumi.Input[str]`) - driver is the name of the Flexvolume driver. - - * `allowed_host_paths` (`pulumi.Input[list]`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. - * `pathPrefix` (`pulumi.Input[str]`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. - - Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` - * `read_only` (`pulumi.Input[bool]`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - - * `allowed_proc_mount_types` (`pulumi.Input[list]`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. - * `allowed_unsafe_sysctls` (`pulumi.Input[list]`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. - - Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - * `default_add_capabilities` (`pulumi.Input[list]`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. - * `default_allow_privilege_escalation` (`pulumi.Input[bool]`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. - * `forbidden_sysctls` (`pulumi.Input[list]`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - - Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - * `fs_group` (`pulumi.Input[dict]`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. - * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. - * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. - - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - - * `host_ipc` (`pulumi.Input[bool]`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. - * `host_network` (`pulumi.Input[bool]`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - * `host_pid` (`pulumi.Input[bool]`) - hostPID determines if the policy allows the use of HostPID in the pod spec. - * `host_ports` (`pulumi.Input[list]`) - hostPorts determines which host port ranges are allowed to be exposed. - * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. - * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. - - * `privileged` (`pulumi.Input[bool]`) - privileged determines if a pod can request to be run as privileged. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. - * `required_drop_capabilities` (`pulumi.Input[list]`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. - * `run_as_group` (`pulumi.Input[dict]`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - - * `run_as_user` (`pulumi.Input[dict]`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. - - * `runtime_class` (`pulumi.Input[dict]`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. - * `allowed_runtime_class_names` (`pulumi.Input[list]`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. - * `default_runtime_class_name` (`pulumi.Input[str]`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. - - * `se_linux` (`pulumi.Input[dict]`) - seLinux is the strategy that will dictate the allowable labels that may be set. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable labels that may be set. - * `se_linux_options` (`pulumi.Input[dict]`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `supplemental_groups` (`pulumi.Input[dict]`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - - * `volumes` (`pulumi.Input[list]`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py index 82a1d99650..0b1359a0dc 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py @@ -18,122 +18,6 @@ class PodSecurityPolicyList(pulumi.CustomResource): items: pulumi.Output[list] """ items is a list of schema objects. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - spec defines the policy enforced. - * `allow_privilege_escalation` (`bool`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. - * `allowed_csi_drivers` (`list`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. - * `name` (`str`) - Name is the registered name of the CSI driver - - * `allowed_capabilities` (`list`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - * `allowed_flex_volumes` (`list`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. - * `driver` (`str`) - driver is the name of the Flexvolume driver. - - * `allowed_host_paths` (`list`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. - * `pathPrefix` (`str`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. - - Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` - * `read_only` (`bool`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - - * `allowed_proc_mount_types` (`list`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. - * `allowed_unsafe_sysctls` (`list`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. - - Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - * `default_add_capabilities` (`list`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. - * `default_allow_privilege_escalation` (`bool`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. - * `forbidden_sysctls` (`list`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - - Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - * `fs_group` (`dict`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - * `ranges` (`list`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. - * `max` (`float`) - max is the end of the range, inclusive. - * `min` (`float`) - min is the start of the range, inclusive. - - * `rule` (`str`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - - * `host_ipc` (`bool`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. - * `host_network` (`bool`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - * `host_pid` (`bool`) - hostPID determines if the policy allows the use of HostPID in the pod spec. - * `host_ports` (`list`) - hostPorts determines which host port ranges are allowed to be exposed. - * `max` (`float`) - max is the end of the range, inclusive. - * `min` (`float`) - min is the start of the range, inclusive. - - * `privileged` (`bool`) - privileged determines if a pod can request to be run as privileged. - * `read_only_root_filesystem` (`bool`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. - * `required_drop_capabilities` (`list`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. - * `run_as_group` (`dict`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. - * `ranges` (`list`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - - * `run_as_user` (`dict`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - * `ranges` (`list`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. - - * `runtime_class` (`dict`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. - * `allowed_runtime_class_names` (`list`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. - * `default_runtime_class_name` (`str`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. - - * `se_linux` (`dict`) - seLinux is the strategy that will dictate the allowable labels that may be set. - * `rule` (`str`) - rule is the strategy that will dictate the allowable labels that may be set. - * `se_linux_options` (`dict`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `supplemental_groups` (`dict`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - * `ranges` (`list`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`str`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - - * `volumes` (`list`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. """ kind: pulumi.Output[str] """ @@ -142,12 +26,6 @@ class PodSecurityPolicyList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -158,134 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is a list of schema objects. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - spec defines the policy enforced. - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. - * `allowed_csi_drivers` (`pulumi.Input[list]`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. - * `name` (`pulumi.Input[str]`) - Name is the registered name of the CSI driver - - * `allowed_capabilities` (`pulumi.Input[list]`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - * `allowed_flex_volumes` (`pulumi.Input[list]`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. - * `driver` (`pulumi.Input[str]`) - driver is the name of the Flexvolume driver. - - * `allowed_host_paths` (`pulumi.Input[list]`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. - * `pathPrefix` (`pulumi.Input[str]`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. - - Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` - * `read_only` (`pulumi.Input[bool]`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - - * `allowed_proc_mount_types` (`pulumi.Input[list]`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. - * `allowed_unsafe_sysctls` (`pulumi.Input[list]`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. - - Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - * `default_add_capabilities` (`pulumi.Input[list]`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. - * `default_allow_privilege_escalation` (`pulumi.Input[bool]`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. - * `forbidden_sysctls` (`pulumi.Input[list]`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - - Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - * `fs_group` (`pulumi.Input[dict]`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. - * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. - * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. - - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - - * `host_ipc` (`pulumi.Input[bool]`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. - * `host_network` (`pulumi.Input[bool]`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - * `host_pid` (`pulumi.Input[bool]`) - hostPID determines if the policy allows the use of HostPID in the pod spec. - * `host_ports` (`pulumi.Input[list]`) - hostPorts determines which host port ranges are allowed to be exposed. - * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. - * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. - - * `privileged` (`pulumi.Input[bool]`) - privileged determines if a pod can request to be run as privileged. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. - * `required_drop_capabilities` (`pulumi.Input[list]`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. - * `run_as_group` (`pulumi.Input[dict]`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - - * `run_as_user` (`pulumi.Input[dict]`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. - - * `runtime_class` (`pulumi.Input[dict]`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. - * `allowed_runtime_class_names` (`pulumi.Input[list]`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. - * `default_runtime_class_name` (`pulumi.Input[str]`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. - - * `se_linux` (`pulumi.Input[dict]`) - seLinux is the strategy that will dictate the allowable labels that may be set. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable labels that may be set. - * `se_linux_options` (`pulumi.Input[dict]`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `supplemental_groups` (`pulumi.Input[dict]`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - - * `volumes` (`pulumi.Input[list]`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py index 7fde34226a..a31f9b8bea 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py @@ -23,587 +23,14 @@ class ReplicaSet(pulumi.CustomResource): metadata: pulumi.Output[dict] """ If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * `selector` (`dict`) - Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk """ status: pulumi.Output[dict] """ Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. - * `conditions` (`list`) - Represents the latest available observations of a replica set's current state. - * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of replica set condition. - - * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replicaset. - * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - * `ready_replicas` (`float`) - The number of ready replicas for this replica set. - * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller """ warnings.warn("extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): @@ -615,526 +42,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk """ pulumi.log.warn("ReplicaSet is deprecated: extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.") if __name__ is not None: diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py index 3468521e21..9d60791e0d 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py @@ -18,539 +18,6 @@ class ReplicaSetList(pulumi.CustomResource): items: pulumi.Output[list] """ List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`float`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`float`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * `selector` (`dict`) - Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`dict`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`dict`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`float`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`dict`) - If specified, the pod's scheduling constraints - * `node_affinity` (`dict`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`dict`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `weight` (`float`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`dict`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`dict`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`dict`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`dict`) - A label query over a set of resources, in this case pods. - * `namespaces` (`list`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`str`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`float`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`list`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`dict`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`list`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`list`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`bool`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`list`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`dict`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`list`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `host` (`str`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`list`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`str`) - The header field name - * `value` (`str`) - The header field value - - * `path` (`str`) - Path to access on the HTTP server. - * `port` (`dict`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`str`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`str`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`dict`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`dict`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`dict`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`dict`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`float`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`dict`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`float`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`float`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`float`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`dict`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`float`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`str`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`list`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`float`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`str`) - What host IP to bind the external port to. - * `hostPort` (`float`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`str`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`str`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`dict`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`dict`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`dict`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`dict`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`dict`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`bool`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`dict`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`list`) - Added capabilities - * `drop` (`list`) - Removed capabilities - - * `privileged` (`bool`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`str`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`bool`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`dict`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`str`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`str`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`str`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`dict`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`str`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`str`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`dict`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`list`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`list`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`str`) - Required. - * `value` (`str`) - - * `searches` (`list`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`str`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`bool`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`list`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`list`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`list`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`list`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`list`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`str`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`str`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`dict`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `name` (`str`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`list`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `resources` (`dict`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`dict`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`dict`) - Probes are not allowed for ephemeral containers. - * `stdin` (`bool`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`bool`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`str`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`str`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`str`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`bool`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`list`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`list`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`str`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`list`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`list`) - Hostnames for the above IP address. - * `ip` (`str`) - IP address of the host file entry. - - * `host_ipc` (`bool`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`bool`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`bool`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`str`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`list`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`list`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`str`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`dict`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`float`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`str`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`list`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`str`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`str`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`str`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`str`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`dict`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`float`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`str`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`float`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`bool`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`float`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`dict`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`list`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`list`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`str`) - Name of a property to set - * `value` (`str`) - Value of a property to set - - * `windows_options` (`dict`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`str`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`str`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`bool`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`str`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`float`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`list`) - If specified, the pod's tolerations. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`list`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`dict`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`float`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`str`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`str`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`list`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `status` (`dict`) - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `available_replicas` (`float`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. - * `conditions` (`list`) - Represents the latest available observations of a replica set's current state. - * `lastTransitionTime` (`str`) - The last time the condition transitioned from one status to another. - * `message` (`str`) - A human readable message indicating details about the transition. - * `reason` (`str`) - The reason for the condition's last transition. - * `status` (`str`) - Status of the condition, one of True, False, Unknown. - * `type` (`str`) - Type of replica set condition. - - * `fully_labeled_replicas` (`float`) - The number of pods that have labels matching the labels of the pod template of the replicaset. - * `observed_generation` (`float`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - * `ready_replicas` (`float`) - The number of ready replicas for this replica set. - * `replicas` (`float`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller """ kind: pulumi.Output[str] """ @@ -559,12 +26,6 @@ class ReplicaSetList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -575,551 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `min_ready_seconds` (`pulumi.Input[float]`) - Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) - * `replicas` (`pulumi.Input[float]`) - Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - * `selector` (`pulumi.Input[dict]`) - Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `template` (`pulumi.Input[dict]`) - Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `active_deadline_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. - * `affinity` (`pulumi.Input[dict]`) - If specified, the pod's scheduling constraints - * `node_affinity` (`pulumi.Input[dict]`) - Describes node affinity scheduling rules for the pod. - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - * `preference` (`pulumi.Input[dict]`) - A node selector term, associated with the corresponding weight. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `weight` (`pulumi.Input[float]`) - Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[dict]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - - * `pod_affinity` (`pulumi.Input[dict]`) - Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `podAffinityTerm` (`pulumi.Input[dict]`) - Required. A pod affinity term, associated with the corresponding weight. - * `labelSelector` (`pulumi.Input[dict]`) - A label query over a set of resources, in this case pods. - * `namespaces` (`pulumi.Input[list]`) - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace" - * `topologyKey` (`pulumi.Input[str]`) - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. - - * `weight` (`pulumi.Input[float]`) - weight associated with matching the corresponding podAffinityTerm, in the range 1-100. - - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `pod_anti_affinity` (`pulumi.Input[dict]`) - Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). - * `preferred_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - * `required_during_scheduling_ignored_during_execution` (`pulumi.Input[list]`) - If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - - * `automount_service_account_token` (`pulumi.Input[bool]`) - AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. - * `containers` (`pulumi.Input[list]`) - List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Actions that the management system should take in response to container lifecycle events. Cannot be updated. - * `postStart` (`pulumi.Input[dict]`) - PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `command` (`pulumi.Input[list]`) - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `host` (`pulumi.Input[str]`) - Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - * `httpHeaders` (`pulumi.Input[list]`) - Custom headers to set in the request. HTTP allows repeated headers. - * `name` (`pulumi.Input[str]`) - The header field name - * `value` (`pulumi.Input[str]`) - The header field value - - * `path` (`pulumi.Input[str]`) - Path to access on the HTTP server. - * `port` (`pulumi.Input[dict]`) - Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - * `scheme` (`pulumi.Input[str]`) - Scheme to use for connecting to the host. Defaults to HTTP. - - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `host` (`pulumi.Input[str]`) - Optional: Host name to connect to, defaults to the pod IP. - * `port` (`pulumi.Input[dict]`) - Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. - - * `preStop` (`pulumi.Input[dict]`) - PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - - * `livenessProbe` (`pulumi.Input[dict]`) - Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `exec` (`pulumi.Input[dict]`) - One and only one of the following should be specified. Exec specifies the action to take. - * `failureThreshold` (`pulumi.Input[float]`) - Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - * `httpGet` (`pulumi.Input[dict]`) - HTTPGet specifies the http request to perform. - * `initialDelaySeconds` (`pulumi.Input[float]`) - Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `periodSeconds` (`pulumi.Input[float]`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - * `successThreshold` (`pulumi.Input[float]`) - Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - * `tcpSocket` (`pulumi.Input[dict]`) - TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported - * `timeout_seconds` (`pulumi.Input[float]`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - - * `name` (`pulumi.Input[str]`) - Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. - * `ports` (`pulumi.Input[list]`) - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. - * `containerPort` (`pulumi.Input[float]`) - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - * `host_ip` (`pulumi.Input[str]`) - What host IP to bind the external port to. - * `hostPort` (`pulumi.Input[float]`) - Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - * `name` (`pulumi.Input[str]`) - If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - * `protocol` (`pulumi.Input[str]`) - Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - - * `readinessProbe` (`pulumi.Input[dict]`) - Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `resources` (`pulumi.Input[dict]`) - Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `limits` (`pulumi.Input[dict]`) - Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - * `requests` (`pulumi.Input[dict]`) - Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - - * `security_context` (`pulumi.Input[dict]`) - Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN - * `capabilities` (`pulumi.Input[dict]`) - The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. - * `add` (`pulumi.Input[list]`) - Added capabilities - * `drop` (`pulumi.Input[list]`) - Removed capabilities - - * `privileged` (`pulumi.Input[bool]`) - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. - * `procMount` (`pulumi.Input[str]`) - procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - Whether this container has a read-only root filesystem. Default is false. - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `gmsa_credential_spec` (`pulumi.Input[str]`) - GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - * `gmsa_credential_spec_name` (`pulumi.Input[str]`) - GMSACredentialSpecName is the name of the GMSA credential spec to use. - * `run_as_user_name` (`pulumi.Input[str]`) - The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `startupProbe` (`pulumi.Input[dict]`) - StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `devicePath` (`pulumi.Input[str]`) - devicePath is the path inside of the container that the device will be mapped to. - * `name` (`pulumi.Input[str]`) - name must match the name of a persistentVolumeClaim in the pod - - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `dns_config` (`pulumi.Input[dict]`) - Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. - * `nameservers` (`pulumi.Input[list]`) - A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. - * `options` (`pulumi.Input[list]`) - A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. - * `name` (`pulumi.Input[str]`) - Required. - * `value` (`pulumi.Input[str]`) - - * `searches` (`pulumi.Input[list]`) - A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. - - * `dns_policy` (`pulumi.Input[str]`) - Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - * `enable_service_links` (`pulumi.Input[bool]`) - EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. - * `ephemeral_containers` (`pulumi.Input[list]`) - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. - * `args` (`pulumi.Input[list]`) - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `command` (`pulumi.Input[list]`) - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell - * `env` (`pulumi.Input[list]`) - List of environment variables to set in the container. Cannot be updated. - * `env_from` (`pulumi.Input[list]`) - List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. - * `image` (`pulumi.Input[str]`) - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images - * `imagePullPolicy` (`pulumi.Input[str]`) - Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - * `lifecycle` (`pulumi.Input[dict]`) - Lifecycle is not allowed for ephemeral containers. - * `livenessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `name` (`pulumi.Input[str]`) - Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. - * `ports` (`pulumi.Input[list]`) - Ports are not allowed for ephemeral containers. - * `readinessProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `resources` (`pulumi.Input[dict]`) - Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext is not allowed for ephemeral containers. - * `startupProbe` (`pulumi.Input[dict]`) - Probes are not allowed for ephemeral containers. - * `stdin` (`pulumi.Input[bool]`) - Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. - * `stdinOnce` (`pulumi.Input[bool]`) - Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false - * `targetContainerName` (`pulumi.Input[str]`) - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. - * `terminationMessagePath` (`pulumi.Input[str]`) - Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - * `terminationMessagePolicy` (`pulumi.Input[str]`) - Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - * `tty` (`pulumi.Input[bool]`) - Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - * `volumeDevices` (`pulumi.Input[list]`) - volumeDevices is the list of block devices to be used by the container. - * `volume_mounts` (`pulumi.Input[list]`) - Pod volumes to mount into the container's filesystem. Cannot be updated. - * `workingDir` (`pulumi.Input[str]`) - Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - - * `host_aliases` (`pulumi.Input[list]`) - HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. - * `hostnames` (`pulumi.Input[list]`) - Hostnames for the above IP address. - * `ip` (`pulumi.Input[str]`) - IP address of the host file entry. - - * `host_ipc` (`pulumi.Input[bool]`) - Use the host's ipc namespace. Optional: Default to false. - * `host_network` (`pulumi.Input[bool]`) - Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. - * `host_pid` (`pulumi.Input[bool]`) - Use the host's pid namespace. Optional: Default to false. - * `hostname` (`pulumi.Input[str]`) - Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. - * `image_pull_secrets` (`pulumi.Input[list]`) - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `init_containers` (`pulumi.Input[list]`) - List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - * `node_name` (`pulumi.Input[str]`) - NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. - * `node_selector` (`pulumi.Input[dict]`) - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature. - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `priority` (`pulumi.Input[float]`) - The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. - * `priority_class_name` (`pulumi.Input[str]`) - If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. - * `readiness_gates` (`pulumi.Input[list]`) - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md - * `conditionType` (`pulumi.Input[str]`) - ConditionType refers to a condition in the pod's condition list with matching type. - - * `restart_policy` (`pulumi.Input[str]`) - Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy - * `runtime_class_name` (`pulumi.Input[str]`) - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. - * `scheduler_name` (`pulumi.Input[str]`) - If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. - * `security_context` (`pulumi.Input[dict]`) - SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. - * `fs_group` (`pulumi.Input[float]`) - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: - - 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- - - If unset, the Kubelet will not modify the ownership and permissions of any volume. - * `fs_group_change_policy` (`pulumi.Input[str]`) - fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are "OnRootMismatch" and "Always". If not specified defaults to "Always". - * `run_as_group` (`pulumi.Input[float]`) - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `run_as_non_root` (`pulumi.Input[bool]`) - Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - * `run_as_user` (`pulumi.Input[float]`) - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `se_linux_options` (`pulumi.Input[dict]`) - The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. - * `supplemental_groups` (`pulumi.Input[list]`) - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. - * `sysctls` (`pulumi.Input[list]`) - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. - * `name` (`pulumi.Input[str]`) - Name of a property to set - * `value` (`pulumi.Input[str]`) - Value of a property to set - - * `windows_options` (`pulumi.Input[dict]`) - The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - - * `service_account` (`pulumi.Input[str]`) - DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. - * `service_account_name` (`pulumi.Input[str]`) - ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - * `share_process_namespace` (`pulumi.Input[bool]`) - Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. - * `subdomain` (`pulumi.Input[str]`) - If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all. - * `termination_grace_period_seconds` (`pulumi.Input[float]`) - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. - * `tolerations` (`pulumi.Input[list]`) - If specified, the pod's tolerations. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - * `topology_spread_constraints` (`pulumi.Input[list]`) - TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed. - * `labelSelector` (`pulumi.Input[dict]`) - LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. - * `maxSkew` (`pulumi.Input[float]`) - MaxSkew describes the degree to which pods may be unevenly distributed. It's the maximum permitted difference between the number of matching pods in any two topology domains of a given topology type. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: | zone1 | zone2 | zone3 | | P | P | | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. It's a required field. Default value is 1 and 0 is not allowed. - * `topologyKey` (`pulumi.Input[str]`) - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. It's a required field. - * `whenUnsatisfiable` (`pulumi.Input[str]`) - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it - ScheduleAnyway tells the scheduler to still schedule it It's considered as "Unsatisfiable" if and only if placing incoming pod on any topology violates "MaxSkew". For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - - * `volumes` (`pulumi.Input[list]`) - List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `status` (`pulumi.Input[dict]`) - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `available_replicas` (`pulumi.Input[float]`) - The number of available replicas (ready for at least minReadySeconds) for this replica set. - * `conditions` (`pulumi.Input[list]`) - Represents the latest available observations of a replica set's current state. - * `lastTransitionTime` (`pulumi.Input[str]`) - The last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - A human readable message indicating details about the transition. - * `reason` (`pulumi.Input[str]`) - The reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - Status of the condition, one of True, False, Unknown. - * `type` (`pulumi.Input[str]`) - Type of replica set condition. - - * `fully_labeled_replicas` (`pulumi.Input[float]`) - The number of pods that have labels matching the labels of the pod template of the replicaset. - * `observed_generation` (`pulumi.Input[float]`) - ObservedGeneration reflects the generation of the most recently observed ReplicaSet. - * `ready_replicas` (`pulumi.Input[float]`) - The number of ready replicas for this replica set. - * `replicas` (`pulumi.Input[float]`) - Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py index 79a416443c..a99c92dafb 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py @@ -22,102 +22,14 @@ class FlowSchema(pulumi.CustomResource): metadata: pulumi.Output[dict] """ `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `distinguisher_method` (`dict`) - `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. - * `type` (`str`) - `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. - - * `matching_precedence` (`float`) - `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. - * `priority_level_configuration` (`dict`) - `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. - * `name` (`str`) - `name` is the name of the priority level configuration being referenced Required. - - * `rules` (`list`) - `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. - * `non_resource_rules` (`list`) - `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. - * `nonResourceURLs` (`list`) - `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - - "/healthz" is legal - - "/hea*" is illegal - - "/hea" is legal but matches nothing - - "/hea/*" also matches nothing - - "/healthz/*" matches all per-component health checks. - "*" matches all non-resource urls. if it is present, it must be the only entry. Required. - * `verbs` (`list`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. - - * `resource_rules` (`list`) - `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. - * `apiGroups` (`list`) - `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. - * `clusterScope` (`bool`) - `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. - * `namespaces` (`list`) - `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. - * `resources` (`list`) - `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. - * `verbs` (`list`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. - - * `subjects` (`list`) - subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. - * `group` (`dict`) - * `name` (`str`) - name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. - - * `kind` (`str`) - Required - * `service_account` (`dict`) - * `name` (`str`) - `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. - * `namespace` (`str`) - `namespace` is the namespace of matching ServiceAccount objects. Required. - - * `user` (`dict`) - * `name` (`str`) - `name` is the username that matches, or "*" to match all usernames. Required. """ status: pulumi.Output[dict] """ `status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `conditions` (`list`) - `conditions` is a list of the current states of FlowSchema. - * `lastTransitionTime` (`str`) - `lastTransitionTime` is the last time the condition transitioned from one status to another. - * `message` (`str`) - `message` is a human-readable message indicating details about last transition. - * `reason` (`str`) - `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`str`) - `status` is the status of the condition. Can be True, False, Unknown. Required. - * `type` (`str`) - `type` is the type of the condition. Required. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -128,94 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `distinguisher_method` (`pulumi.Input[dict]`) - `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. - * `type` (`pulumi.Input[str]`) - `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. - - * `matching_precedence` (`pulumi.Input[float]`) - `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. - * `priority_level_configuration` (`pulumi.Input[dict]`) - `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. - * `name` (`pulumi.Input[str]`) - `name` is the name of the priority level configuration being referenced Required. - - * `rules` (`pulumi.Input[list]`) - `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. - * `non_resource_rules` (`pulumi.Input[list]`) - `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. - * `nonResourceURLs` (`pulumi.Input[list]`) - `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - - "/healthz" is legal - - "/hea*" is illegal - - "/hea" is legal but matches nothing - - "/hea/*" also matches nothing - - "/healthz/*" matches all per-component health checks. - "*" matches all non-resource urls. if it is present, it must be the only entry. Required. - * `verbs` (`pulumi.Input[list]`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. - - * `resource_rules` (`pulumi.Input[list]`) - `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. - * `apiGroups` (`pulumi.Input[list]`) - `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. - * `clusterScope` (`pulumi.Input[bool]`) - `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. - * `namespaces` (`pulumi.Input[list]`) - `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. - * `resources` (`pulumi.Input[list]`) - `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. - * `verbs` (`pulumi.Input[list]`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. - - * `subjects` (`pulumi.Input[list]`) - subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. - * `group` (`pulumi.Input[dict]`) - * `name` (`pulumi.Input[str]`) - name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. - - * `kind` (`pulumi.Input[str]`) - Required - * `service_account` (`pulumi.Input[dict]`) - * `name` (`pulumi.Input[str]`) - `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. - * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of matching ServiceAccount objects. Required. - - * `user` (`pulumi.Input[dict]`) - * `name` (`pulumi.Input[str]`) - `name` is the username that matches, or "*" to match all usernames. Required. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py index b078e5905d..6c1992fdf4 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py @@ -18,101 +18,6 @@ class FlowSchemaList(pulumi.CustomResource): items: pulumi.Output[list] """ `items` is a list of FlowSchemas. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `distinguisher_method` (`dict`) - `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. - * `type` (`str`) - `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. - - * `matching_precedence` (`float`) - `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. - * `priority_level_configuration` (`dict`) - `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. - * `name` (`str`) - `name` is the name of the priority level configuration being referenced Required. - - * `rules` (`list`) - `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. - * `non_resource_rules` (`list`) - `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. - * `nonResourceURLs` (`list`) - `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - - "/healthz" is legal - - "/hea*" is illegal - - "/hea" is legal but matches nothing - - "/hea/*" also matches nothing - - "/healthz/*" matches all per-component health checks. - "*" matches all non-resource urls. if it is present, it must be the only entry. Required. - * `verbs` (`list`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. - - * `resource_rules` (`list`) - `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. - * `apiGroups` (`list`) - `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. - * `clusterScope` (`bool`) - `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. - * `namespaces` (`list`) - `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. - * `resources` (`list`) - `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. - * `verbs` (`list`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. - - * `subjects` (`list`) - subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. - * `group` (`dict`) - * `name` (`str`) - name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. - - * `kind` (`str`) - Required - * `service_account` (`dict`) - * `name` (`str`) - `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. - * `namespace` (`str`) - `namespace` is the namespace of matching ServiceAccount objects. Required. - - * `user` (`dict`) - * `name` (`str`) - `name` is the username that matches, or "*" to match all usernames. Required. - - * `status` (`dict`) - `status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `conditions` (`list`) - `conditions` is a list of the current states of FlowSchema. - * `lastTransitionTime` (`str`) - `lastTransitionTime` is the last time the condition transitioned from one status to another. - * `message` (`str`) - `message` is a human-readable message indicating details about last transition. - * `reason` (`str`) - `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`str`) - `status` is the status of the condition. Can be True, False, Unknown. Required. - * `type` (`str`) - `type` is the type of the condition. Required. """ kind: pulumi.Output[str] """ @@ -121,12 +26,6 @@ class FlowSchemaList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -137,113 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: `items` is a list of FlowSchemas. :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 :param pulumi.Input[dict] metadata: `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `distinguisher_method` (`pulumi.Input[dict]`) - `distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string. - * `type` (`pulumi.Input[str]`) - `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. - - * `matching_precedence` (`pulumi.Input[float]`) - `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. - * `priority_level_configuration` (`pulumi.Input[dict]`) - `priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required. - * `name` (`pulumi.Input[str]`) - `name` is the name of the priority level configuration being referenced Required. - - * `rules` (`pulumi.Input[list]`) - `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. - * `non_resource_rules` (`pulumi.Input[list]`) - `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. - * `nonResourceURLs` (`pulumi.Input[list]`) - `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - - "/healthz" is legal - - "/hea*" is illegal - - "/hea" is legal but matches nothing - - "/hea/*" also matches nothing - - "/healthz/*" matches all per-component health checks. - "*" matches all non-resource urls. if it is present, it must be the only entry. Required. - * `verbs` (`pulumi.Input[list]`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required. - - * `resource_rules` (`pulumi.Input[list]`) - `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. - * `apiGroups` (`pulumi.Input[list]`) - `apiGroups` is a list of matching API groups and may not be empty. "*" matches all API groups and, if present, must be the only entry. Required. - * `clusterScope` (`pulumi.Input[bool]`) - `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. - * `namespaces` (`pulumi.Input[list]`) - `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains "*". Note that "*" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. - * `resources` (`pulumi.Input[list]`) - `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ "services", "nodes/status" ]. This list may not be empty. "*" matches all resources and, if present, must be the only entry. Required. - * `verbs` (`pulumi.Input[list]`) - `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs and, if present, must be the only entry. Required. - - * `subjects` (`pulumi.Input[list]`) - subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. - * `group` (`pulumi.Input[dict]`) - * `name` (`pulumi.Input[str]`) - name is the user group that matches, or "*" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. - - * `kind` (`pulumi.Input[str]`) - Required - * `service_account` (`pulumi.Input[dict]`) - * `name` (`pulumi.Input[str]`) - `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required. - * `namespace` (`pulumi.Input[str]`) - `namespace` is the namespace of matching ServiceAccount objects. Required. - - * `user` (`pulumi.Input[dict]`) - * `name` (`pulumi.Input[str]`) - `name` is the username that matches, or "*" to match all usernames. Required. - - * `status` (`pulumi.Input[dict]`) - `status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `conditions` (`pulumi.Input[list]`) - `conditions` is a list of the current states of FlowSchema. - * `lastTransitionTime` (`pulumi.Input[str]`) - `lastTransitionTime` is the last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - `message` is a human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - `status` is the status of the condition. Can be True, False, Unknown. Required. - * `type` (`pulumi.Input[str]`) - `type` is the type of the condition. Required. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py index 6aa290ae0b..59f3ee5692 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py @@ -22,81 +22,14 @@ class PriorityLevelConfiguration(pulumi.CustomResource): metadata: pulumi.Output[dict] """ `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `limited` (`dict`) - `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. - * `assured_concurrency_shares` (`float`) - `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: - - ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) - - bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. - * `limit_response` (`dict`) - `limitResponse` indicates what to do with requests that can not be executed right now - * `queuing` (`dict`) - `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. - * `hand_size` (`float`) - `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. - * `queue_length_limit` (`float`) - `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. - * `queues` (`float`) - `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. - - * `type` (`str`) - `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. - - * `type` (`str`) - `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. """ status: pulumi.Output[dict] """ `status` is the current status of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `conditions` (`list`) - `conditions` is the current state of "request-priority". - * `lastTransitionTime` (`str`) - `lastTransitionTime` is the last time the condition transitioned from one status to another. - * `message` (`str`) - `message` is a human-readable message indicating details about last transition. - * `reason` (`str`) - `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`str`) - `status` is the status of the condition. Can be True, False, Unknown. Required. - * `type` (`str`) - `type` is the type of the condition. Required. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -107,73 +40,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `limited` (`pulumi.Input[dict]`) - `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. - * `assured_concurrency_shares` (`pulumi.Input[float]`) - `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: - - ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) - - bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. - * `limit_response` (`pulumi.Input[dict]`) - `limitResponse` indicates what to do with requests that can not be executed right now - * `queuing` (`pulumi.Input[dict]`) - `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. - * `hand_size` (`pulumi.Input[float]`) - `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. - * `queue_length_limit` (`pulumi.Input[float]`) - `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. - * `queues` (`pulumi.Input[float]`) - `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. - - * `type` (`pulumi.Input[str]`) - `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. - - * `type` (`pulumi.Input[str]`) - `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py index 29632f3cce..6c9b4f06cf 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py @@ -18,80 +18,6 @@ class PriorityLevelConfigurationList(pulumi.CustomResource): items: pulumi.Output[list] """ `items` is a list of request-priorities. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `limited` (`dict`) - `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. - * `assured_concurrency_shares` (`float`) - `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: - - ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) - - bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. - * `limit_response` (`dict`) - `limitResponse` indicates what to do with requests that can not be executed right now - * `queuing` (`dict`) - `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. - * `hand_size` (`float`) - `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. - * `queue_length_limit` (`float`) - `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. - * `queues` (`float`) - `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. - - * `type` (`str`) - `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. - - * `type` (`str`) - `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. - - * `status` (`dict`) - `status` is the current status of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `conditions` (`list`) - `conditions` is the current state of "request-priority". - * `lastTransitionTime` (`str`) - `lastTransitionTime` is the last time the condition transitioned from one status to another. - * `message` (`str`) - `message` is a human-readable message indicating details about last transition. - * `reason` (`str`) - `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`str`) - `status` is the status of the condition. Can be True, False, Unknown. Required. - * `type` (`str`) - `type` is the type of the condition. Required. """ kind: pulumi.Output[str] """ @@ -100,12 +26,6 @@ class PriorityLevelConfigurationList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -116,92 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: `items` is a list of request-priorities. :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 :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `limited` (`pulumi.Input[dict]`) - `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`. - * `assured_concurrency_shares` (`pulumi.Input[float]`) - `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: - - ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) - - bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. - * `limit_response` (`pulumi.Input[dict]`) - `limitResponse` indicates what to do with requests that can not be executed right now - * `queuing` (`pulumi.Input[dict]`) - `queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `"Queue"`. - * `hand_size` (`pulumi.Input[float]`) - `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. - * `queue_length_limit` (`pulumi.Input[float]`) - `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. - * `queues` (`pulumi.Input[float]`) - `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. - - * `type` (`pulumi.Input[str]`) - `type` is "Queue" or "Reject". "Queue" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. "Reject" means that requests that can not be executed upon arrival are rejected. Required. - - * `type` (`pulumi.Input[str]`) - `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. - - * `status` (`pulumi.Input[dict]`) - `status` is the current status of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `conditions` (`pulumi.Input[list]`) - `conditions` is the current state of "request-priority". - * `lastTransitionTime` (`pulumi.Input[str]`) - `lastTransitionTime` is the last time the condition transitioned from one status to another. - * `message` (`pulumi.Input[str]`) - `message` is a human-readable message indicating details about last transition. - * `reason` (`pulumi.Input[str]`) - `reason` is a unique, one-word, CamelCase reason for the condition's last transition. - * `status` (`pulumi.Input[str]`) - `status` is the status of the condition. Can be True, False, Unknown. Required. - * `type` (`pulumi.Input[str]`) - `type` is the type of the condition. Required. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/meta/v1/status.py b/sdk/python/pulumi_kubernetes/meta/v1/status.py index a7fea89793..0caa224bc4 100644 --- a/sdk/python/pulumi_kubernetes/meta/v1/status.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/status.py @@ -22,20 +22,6 @@ class Status(pulumi.CustomResource): details: pulumi.Output[dict] """ Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. - * `causes` (`list`) - The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. - * `field` (`str`) - The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. - - Examples: - "name" - the field "name" on the current resource - "items[0].name" - the field "name" on the first array entry in "items" - * `message` (`str`) - A human-readable description of the cause of the error. This field may be presented as-is to a reader. - * `reason` (`str`) - A machine-readable description of the cause of the error. If this value is empty there is no information available. - - * `group` (`str`) - The group attribute of the resource associated with the status StatusReason. - * `kind` (`str`) - The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). - * `retry_after_seconds` (`float`) - If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. - * `uid` (`str`) - UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ kind: pulumi.Output[str] """ @@ -48,12 +34,6 @@ class Status(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ reason: pulumi.Output[str] """ @@ -75,32 +55,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, code=None, de :param pulumi.Input[str] message: A human-readable description of the status of this operation. :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds :param pulumi.Input[str] reason: A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. - - The **details** object supports the following: - - * `causes` (`pulumi.Input[list]`) - The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. - * `field` (`pulumi.Input[str]`) - The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. - - Examples: - "name" - the field "name" on the current resource - "items[0].name" - the field "name" on the first array entry in "items" - * `message` (`pulumi.Input[str]`) - A human-readable description of the cause of the error. This field may be presented as-is to a reader. - * `reason` (`pulumi.Input[str]`) - A machine-readable description of the cause of the error. If this value is empty there is no information available. - - * `group` (`pulumi.Input[str]`) - The group attribute of the resource associated with the status StatusReason. - * `kind` (`pulumi.Input[str]`) - The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). - * `retry_after_seconds` (`pulumi.Input[float]`) - If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. - * `uid` (`pulumi.Input[str]`) - UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py b/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py index fa49245ab7..31fd03a25b 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py @@ -22,86 +22,10 @@ class NetworkPolicy(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the desired behavior for this NetworkPolicy. - * `egress` (`list`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 - * `ports` (`list`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - * `port` (`dict`) - The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. - * `protocol` (`str`) - The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. - - * `to` (`list`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. - * `ipBlock` (`dict`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. - * `cidr` (`str`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" - * `except` (`list`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range - - * `namespaceSelector` (`dict`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. - - If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `pod_selector` (`dict`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. - - If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - - * `ingress` (`list`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) - * `from` (`list`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. - * `ports` (`list`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - - * `pod_selector` (`dict`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. - * `policy_types` (`list`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -112,88 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the desired behavior for this NetworkPolicy. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `egress` (`pulumi.Input[list]`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 - * `ports` (`pulumi.Input[list]`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - * `port` (`pulumi.Input[dict]`) - The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. - * `protocol` (`pulumi.Input[str]`) - The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. - - * `to` (`pulumi.Input[list]`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. - * `ipBlock` (`pulumi.Input[dict]`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. - * `cidr` (`pulumi.Input[str]`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" - * `except` (`pulumi.Input[list]`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range - - * `namespaceSelector` (`pulumi.Input[dict]`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. - - If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `pod_selector` (`pulumi.Input[dict]`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. - - If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - - * `ingress` (`pulumi.Input[list]`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) - * `from` (`pulumi.Input[list]`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. - * `ports` (`pulumi.Input[list]`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - - * `pod_selector` (`pulumi.Input[dict]`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. - * `policy_types` (`pulumi.Input[list]`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py b/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py index 5b5120ec47..97405806e6 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py @@ -18,87 +18,6 @@ class NetworkPolicyList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of schema objects. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired behavior for this NetworkPolicy. - * `egress` (`list`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 - * `ports` (`list`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - * `port` (`dict`) - The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. - * `protocol` (`str`) - The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. - - * `to` (`list`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. - * `ipBlock` (`dict`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. - * `cidr` (`str`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" - * `except` (`list`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range - - * `namespaceSelector` (`dict`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. - - If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `pod_selector` (`dict`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. - - If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - - * `ingress` (`list`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) - * `from` (`list`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. - * `ports` (`list`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - - * `pod_selector` (`dict`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. - * `policy_types` (`list`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 """ kind: pulumi.Output[str] """ @@ -107,12 +26,6 @@ class NetworkPolicyList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -123,99 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of schema objects. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior for this NetworkPolicy. - * `egress` (`pulumi.Input[list]`) - List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 - * `ports` (`pulumi.Input[list]`) - List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - * `port` (`pulumi.Input[dict]`) - The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. - * `protocol` (`pulumi.Input[str]`) - The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. - - * `to` (`pulumi.Input[list]`) - List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. - * `ipBlock` (`pulumi.Input[dict]`) - IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. - * `cidr` (`pulumi.Input[str]`) - CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" - * `except` (`pulumi.Input[list]`) - Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range - - * `namespaceSelector` (`pulumi.Input[dict]`) - Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. - - If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `pod_selector` (`pulumi.Input[dict]`) - This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. - - If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. - - * `ingress` (`pulumi.Input[list]`) - List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) - * `from` (`pulumi.Input[list]`) - List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. - * `ports` (`pulumi.Input[list]`) - List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. - - * `pod_selector` (`pulumi.Input[dict]`) - Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. - * `policy_types` (`pulumi.Input[list]`) - List of rule types that the NetworkPolicy relates to. Valid options are "Ingress", "Egress", or "Ingress,Egress". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py index 4d57457791..44c109563f 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py @@ -22,102 +22,14 @@ class Ingress(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `backend` (`dict`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. - * `resource` (`dict`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `service_name` (`str`) - Specifies the name of the referenced service. - * `service_port` (`dict`) - Specifies the port of the referenced service. - - * `ingress_class_name` (`str`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. - * `rules` (`list`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. - * `host` (`str`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to - the IP in the Spec of the parent Ingress. - 2. The `:` delimiter is not respected because ports are not allowed. - Currently the port of an Ingress is implicitly :80 for http and - :443 for https. - Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. - - Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. - * `http` (`dict`) - * `paths` (`list`) - A collection of paths that map requests to backends. - * `backend` (`dict`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. - * `path` (`str`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. - * `pathType` (`str`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is - done on a path element by element basis. A path element refers is the - list of labels in the path split by the '/' separator. A request is a - match for path p if every p is an element-wise prefix of p of the - request path. Note that if the last element of the path is a substring - of the last element in request path, it is not a match (e.g. /foo/bar - matches /foo/bar/baz, but does not match /foo/barbaz). - * ImplementationSpecific: Interpretation of the Path matching is up to - the IngressClass. Implementations can treat this as a separate PathType - or treat it identically to Prefix or Exact path types. - Implementations are required to support all path types. Defaults to ImplementationSpecific. - - * `tls` (`list`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. - * `hosts` (`list`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. - * `secret_name` (`str`) - SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. """ status: pulumi.Output[dict] """ Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `load_balancer` (`dict`) - LoadBalancer contains the current status of the load-balancer. - * `ingress` (`list`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. - * `hostname` (`str`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) - * `ip` (`str`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -142,96 +54,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `backend` (`pulumi.Input[dict]`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. - * `resource` (`pulumi.Input[dict]`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `service_name` (`pulumi.Input[str]`) - Specifies the name of the referenced service. - * `service_port` (`pulumi.Input[dict]`) - Specifies the port of the referenced service. - - * `ingress_class_name` (`pulumi.Input[str]`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. - * `rules` (`pulumi.Input[list]`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. - * `host` (`pulumi.Input[str]`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to - the IP in the Spec of the parent Ingress. - 2. The `:` delimiter is not respected because ports are not allowed. - Currently the port of an Ingress is implicitly :80 for http and - :443 for https. - Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. - - Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. - * `http` (`pulumi.Input[dict]`) - * `paths` (`pulumi.Input[list]`) - A collection of paths that map requests to backends. - * `backend` (`pulumi.Input[dict]`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. - * `path` (`pulumi.Input[str]`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. - * `pathType` (`pulumi.Input[str]`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is - done on a path element by element basis. A path element refers is the - list of labels in the path split by the '/' separator. A request is a - match for path p if every p is an element-wise prefix of p of the - request path. Note that if the last element of the path is a substring - of the last element in request path, it is not a match (e.g. /foo/bar - matches /foo/bar/baz, but does not match /foo/barbaz). - * ImplementationSpecific: Interpretation of the Path matching is up to - the IngressClass. Implementations can treat this as a separate PathType - or treat it identically to Prefix or Exact path types. - Implementations are required to support all path types. Defaults to ImplementationSpecific. - - * `tls` (`pulumi.Input[list]`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. - * `hosts` (`pulumi.Input[list]`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. - * `secret_name` (`pulumi.Input[str]`) - SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py index 8e7d77a335..88d300cc61 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py @@ -22,61 +22,10 @@ class IngressClass(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `controller` (`str`) - Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. - * `parameters` (`dict`) - Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -87,63 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `controller` (`pulumi.Input[str]`) - Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. - * `parameters` (`pulumi.Input[dict]`) - Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py index 638bd41b2b..45c278a6b6 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py @@ -18,62 +18,6 @@ class IngressClassList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of IngressClasses. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `controller` (`str`) - Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. - * `parameters` (`dict`) - Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced """ kind: pulumi.Output[str] """ @@ -82,12 +26,6 @@ class IngressClassList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -98,74 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of IngressClasses. :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 :param pulumi.Input[dict] metadata: Standard list metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `controller` (`pulumi.Input[str]`) - Controller refers to the name of the controller that should handle this class. This allows for different "flavors" that are controlled by the same controller. For example, you may have different Parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. "acme.io/ingress-controller". This field is immutable. - * `parameters` (`pulumi.Input[dict]`) - Parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py index 95499322ab..2a08d7ef98 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py @@ -18,101 +18,6 @@ class IngressList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of Ingress. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `backend` (`dict`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. - * `resource` (`dict`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `service_name` (`str`) - Specifies the name of the referenced service. - * `service_port` (`dict`) - Specifies the port of the referenced service. - - * `ingress_class_name` (`str`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. - * `rules` (`list`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. - * `host` (`str`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to - the IP in the Spec of the parent Ingress. - 2. The `:` delimiter is not respected because ports are not allowed. - Currently the port of an Ingress is implicitly :80 for http and - :443 for https. - Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. - - Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. - * `http` (`dict`) - * `paths` (`list`) - A collection of paths that map requests to backends. - * `backend` (`dict`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. - * `path` (`str`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. - * `pathType` (`str`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is - done on a path element by element basis. A path element refers is the - list of labels in the path split by the '/' separator. A request is a - match for path p if every p is an element-wise prefix of p of the - request path. Note that if the last element of the path is a substring - of the last element in request path, it is not a match (e.g. /foo/bar - matches /foo/bar/baz, but does not match /foo/barbaz). - * ImplementationSpecific: Interpretation of the Path matching is up to - the IngressClass. Implementations can treat this as a separate PathType - or treat it identically to Prefix or Exact path types. - Implementations are required to support all path types. Defaults to ImplementationSpecific. - - * `tls` (`list`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. - * `hosts` (`list`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. - * `secret_name` (`str`) - SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. - - * `status` (`dict`) - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `load_balancer` (`dict`) - LoadBalancer contains the current status of the load-balancer. - * `ingress` (`list`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. - * `hostname` (`str`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) - * `ip` (`str`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) """ kind: pulumi.Output[str] """ @@ -121,12 +26,6 @@ class IngressList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -137,113 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of Ingress. :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `backend` (`pulumi.Input[dict]`) - A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. - * `resource` (`pulumi.Input[dict]`) - Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `service_name` (`pulumi.Input[str]`) - Specifies the name of the referenced service. - * `service_port` (`pulumi.Input[dict]`) - Specifies the port of the referenced service. - - * `ingress_class_name` (`pulumi.Input[str]`) - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. - * `rules` (`pulumi.Input[list]`) - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. - * `host` (`pulumi.Input[str]`) - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to - the IP in the Spec of the parent Ingress. - 2. The `:` delimiter is not respected because ports are not allowed. - Currently the port of an Ingress is implicitly :80 for http and - :443 for https. - Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. - - Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule. - * `http` (`pulumi.Input[dict]`) - * `paths` (`pulumi.Input[list]`) - A collection of paths that map requests to backends. - * `backend` (`pulumi.Input[dict]`) - Backend defines the referenced service endpoint to which the traffic will be forwarded to. - * `path` (`pulumi.Input[str]`) - Path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'. When unspecified, all paths from incoming requests are matched. - * `pathType` (`pulumi.Input[str]`) - PathType determines the interpretation of the Path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is - done on a path element by element basis. A path element refers is the - list of labels in the path split by the '/' separator. A request is a - match for path p if every p is an element-wise prefix of p of the - request path. Note that if the last element of the path is a substring - of the last element in request path, it is not a match (e.g. /foo/bar - matches /foo/bar/baz, but does not match /foo/barbaz). - * ImplementationSpecific: Interpretation of the Path matching is up to - the IngressClass. Implementations can treat this as a separate PathType - or treat it identically to Prefix or Exact path types. - Implementations are required to support all path types. Defaults to ImplementationSpecific. - - * `tls` (`pulumi.Input[list]`) - TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. - * `hosts` (`pulumi.Input[list]`) - Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. - * `secret_name` (`pulumi.Input[str]`) - SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. - - * `status` (`pulumi.Input[dict]`) - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `load_balancer` (`pulumi.Input[dict]`) - LoadBalancer contains the current status of the load-balancer. - * `ingress` (`pulumi.Input[list]`) - Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. - * `hostname` (`pulumi.Input[str]`) - Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) - * `ip` (`pulumi.Input[str]`) - IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py index 51af95d110..f0bde5d692 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py @@ -22,68 +22,10 @@ class RuntimeClass(pulumi.CustomResource): metadata: pulumi.Output[dict] """ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - * `pod_fixed` (`dict`) - PodFixed represents the fixed resource overhead associated with running a pod. - - * `runtime_handler` (`str`) - RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable. - * `scheduling` (`dict`) - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - * `node_selector` (`dict`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - * `tolerations` (`list`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -94,70 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - * `pod_fixed` (`pulumi.Input[dict]`) - PodFixed represents the fixed resource overhead associated with running a pod. - - * `runtime_handler` (`pulumi.Input[str]`) - RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable. - * `scheduling` (`pulumi.Input[dict]`) - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - * `node_selector` (`pulumi.Input[dict]`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - * `tolerations` (`pulumi.Input[list]`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py index 8673a32e08..50c7c8e4bf 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py @@ -18,69 +18,6 @@ class RuntimeClassList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of schema objects. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - * `pod_fixed` (`dict`) - PodFixed represents the fixed resource overhead associated with running a pod. - - * `runtime_handler` (`str`) - RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable. - * `scheduling` (`dict`) - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - * `node_selector` (`dict`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - * `tolerations` (`list`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. """ kind: pulumi.Output[str] """ @@ -89,12 +26,6 @@ class RuntimeClassList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -105,81 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of schema objects. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - * `pod_fixed` (`pulumi.Input[dict]`) - PodFixed represents the fixed resource overhead associated with running a pod. - - * `runtime_handler` (`pulumi.Input[str]`) - RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable. - * `scheduling` (`pulumi.Input[dict]`) - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - * `node_selector` (`pulumi.Input[dict]`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - * `tolerations` (`pulumi.Input[list]`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py index 53bca560b5..e5ef58ec1d 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py @@ -26,68 +26,14 @@ class RuntimeClass(pulumi.CustomResource): metadata: pulumi.Output[dict] """ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ overhead: pulumi.Output[dict] """ Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - * `pod_fixed` (`dict`) - PodFixed represents the fixed resource overhead associated with running a pod. """ scheduling: pulumi.Output[dict] """ Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - * `node_selector` (`dict`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - * `tolerations` (`list`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. """ def __init__(__self__, resource_name, opts=None, api_version=None, handler=None, kind=None, metadata=None, overhead=None, scheduling=None, __props__=None, __name__=None, __opts__=None): """ @@ -100,69 +46,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, handler=None, :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] overhead: Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. :param pulumi.Input[dict] scheduling: Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **overhead** object supports the following: - - * `pod_fixed` (`pulumi.Input[dict]`) - PodFixed represents the fixed resource overhead associated with running a pod. - - The **scheduling** object supports the following: - - * `node_selector` (`pulumi.Input[dict]`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - * `tolerations` (`pulumi.Input[list]`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py index 7cc913fdfa..72244df490 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py @@ -18,68 +18,6 @@ class RuntimeClassList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of schema objects. - * `api_version` (`str`) - 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 - * `handler` (`str`) - Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. - * `kind` (`str`) - 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 - * `metadata` (`dict`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `overhead` (`dict`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - * `pod_fixed` (`dict`) - PodFixed represents the fixed resource overhead associated with running a pod. - - * `scheduling` (`dict`) - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - * `node_selector` (`dict`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - * `tolerations` (`list`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. - * `effect` (`str`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`str`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`str`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`float`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`str`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. """ kind: pulumi.Output[str] """ @@ -88,12 +26,6 @@ class RuntimeClassList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -104,80 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of schema objects. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `handler` (`pulumi.Input[str]`) - Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `overhead` (`pulumi.Input[dict]`) - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - * `pod_fixed` (`pulumi.Input[dict]`) - PodFixed represents the fixed resource overhead associated with running a pod. - - * `scheduling` (`pulumi.Input[dict]`) - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - * `node_selector` (`pulumi.Input[dict]`) - nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. - * `tolerations` (`pulumi.Input[list]`) - tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. - * `effect` (`pulumi.Input[str]`) - Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - * `key` (`pulumi.Input[str]`) - Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - * `operator` (`pulumi.Input[str]`) - Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - * `tolerationSeconds` (`pulumi.Input[float]`) - TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - * `value` (`pulumi.Input[str]`) - Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py index da9cf8bb90..f971a7a522 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py @@ -23,25 +23,10 @@ class PodDisruptionBudget(pulumi.CustomResource): spec: pulumi.Output[dict] """ Specification of the desired behavior of the PodDisruptionBudget. - * `max_unavailable` (`dict`) - An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". - * `min_available` (`dict`) - An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". - * `selector` (`dict`) - Label query over pods whose evictions are managed by the disruption budget. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. """ status: pulumi.Output[dict] """ Most recently observed status of the PodDisruptionBudget. - * `current_healthy` (`float`) - current number of healthy pods - * `desired_healthy` (`float`) - minimum desired number of healthy pods - * `disrupted_pods` (`dict`) - DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. - * `disruptions_allowed` (`float`) - Number of pod disruptions that are currently allowed. - * `expected_pods` (`float`) - total number of pods counted by this disruption budget - * `observed_generation` (`float`) - Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -51,67 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :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 :param pulumi.Input[dict] spec: Specification of the desired behavior of the PodDisruptionBudget. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `max_unavailable` (`pulumi.Input[dict]`) - An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". - * `min_available` (`pulumi.Input[dict]`) - An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". - * `selector` (`pulumi.Input[dict]`) - Label query over pods whose evictions are managed by the disruption budget. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py index 8f670568a5..739c6930d3 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py @@ -28,86 +28,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.ResourceOptions opts: Options for the resource. :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 :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 - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired behavior of the PodDisruptionBudget. - * `max_unavailable` (`pulumi.Input[dict]`) - An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". - * `min_available` (`pulumi.Input[dict]`) - An eviction is allowed if at least "minAvailable" pods selected by "selector" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying "100%". - * `selector` (`pulumi.Input[dict]`) - Label query over pods whose evictions are managed by the disruption budget. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `status` (`pulumi.Input[dict]`) - Most recently observed status of the PodDisruptionBudget. - * `current_healthy` (`pulumi.Input[float]`) - current number of healthy pods - * `desired_healthy` (`pulumi.Input[float]`) - minimum desired number of healthy pods - * `disrupted_pods` (`pulumi.Input[dict]`) - DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. - * `disruptions_allowed` (`pulumi.Input[float]`) - Number of pod disruptions that are currently allowed. - * `expected_pods` (`pulumi.Input[float]`) - total number of pods counted by this disruption budget - * `observed_generation` (`pulumi.Input[float]`) - Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py index b15bc40df1..b284da68a7 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py @@ -22,121 +22,10 @@ class PodSecurityPolicy(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ spec defines the policy enforced. - * `allow_privilege_escalation` (`bool`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. - * `allowed_csi_drivers` (`list`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. - * `name` (`str`) - Name is the registered name of the CSI driver - - * `allowed_capabilities` (`list`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - * `allowed_flex_volumes` (`list`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. - * `driver` (`str`) - driver is the name of the Flexvolume driver. - - * `allowed_host_paths` (`list`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. - * `pathPrefix` (`str`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. - - Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` - * `read_only` (`bool`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - - * `allowed_proc_mount_types` (`list`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. - * `allowed_unsafe_sysctls` (`list`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. - - Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - * `default_add_capabilities` (`list`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. - * `default_allow_privilege_escalation` (`bool`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. - * `forbidden_sysctls` (`list`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - - Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - * `fs_group` (`dict`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - * `ranges` (`list`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. - * `max` (`float`) - max is the end of the range, inclusive. - * `min` (`float`) - min is the start of the range, inclusive. - - * `rule` (`str`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - - * `host_ipc` (`bool`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. - * `host_network` (`bool`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - * `host_pid` (`bool`) - hostPID determines if the policy allows the use of HostPID in the pod spec. - * `host_ports` (`list`) - hostPorts determines which host port ranges are allowed to be exposed. - * `max` (`float`) - max is the end of the range, inclusive. - * `min` (`float`) - min is the start of the range, inclusive. - - * `privileged` (`bool`) - privileged determines if a pod can request to be run as privileged. - * `read_only_root_filesystem` (`bool`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. - * `required_drop_capabilities` (`list`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. - * `run_as_group` (`dict`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. - * `ranges` (`list`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - - * `run_as_user` (`dict`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - * `ranges` (`list`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. - - * `runtime_class` (`dict`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. - * `allowed_runtime_class_names` (`list`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. - * `default_runtime_class_name` (`str`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. - - * `se_linux` (`dict`) - seLinux is the strategy that will dictate the allowable labels that may be set. - * `rule` (`str`) - rule is the strategy that will dictate the allowable labels that may be set. - * `se_linux_options` (`dict`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `supplemental_groups` (`dict`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - * `ranges` (`list`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`str`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - - * `volumes` (`list`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -147,123 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: spec defines the policy enforced. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. - * `allowed_csi_drivers` (`pulumi.Input[list]`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. - * `name` (`pulumi.Input[str]`) - Name is the registered name of the CSI driver - - * `allowed_capabilities` (`pulumi.Input[list]`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - * `allowed_flex_volumes` (`pulumi.Input[list]`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. - * `driver` (`pulumi.Input[str]`) - driver is the name of the Flexvolume driver. - - * `allowed_host_paths` (`pulumi.Input[list]`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. - * `pathPrefix` (`pulumi.Input[str]`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. - - Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` - * `read_only` (`pulumi.Input[bool]`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - - * `allowed_proc_mount_types` (`pulumi.Input[list]`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. - * `allowed_unsafe_sysctls` (`pulumi.Input[list]`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. - - Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - * `default_add_capabilities` (`pulumi.Input[list]`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. - * `default_allow_privilege_escalation` (`pulumi.Input[bool]`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. - * `forbidden_sysctls` (`pulumi.Input[list]`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - - Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - * `fs_group` (`pulumi.Input[dict]`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. - * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. - * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. - - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - - * `host_ipc` (`pulumi.Input[bool]`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. - * `host_network` (`pulumi.Input[bool]`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - * `host_pid` (`pulumi.Input[bool]`) - hostPID determines if the policy allows the use of HostPID in the pod spec. - * `host_ports` (`pulumi.Input[list]`) - hostPorts determines which host port ranges are allowed to be exposed. - * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. - * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. - - * `privileged` (`pulumi.Input[bool]`) - privileged determines if a pod can request to be run as privileged. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. - * `required_drop_capabilities` (`pulumi.Input[list]`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. - * `run_as_group` (`pulumi.Input[dict]`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - - * `run_as_user` (`pulumi.Input[dict]`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. - - * `runtime_class` (`pulumi.Input[dict]`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. - * `allowed_runtime_class_names` (`pulumi.Input[list]`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. - * `default_runtime_class_name` (`pulumi.Input[str]`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. - - * `se_linux` (`pulumi.Input[dict]`) - seLinux is the strategy that will dictate the allowable labels that may be set. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable labels that may be set. - * `se_linux_options` (`pulumi.Input[dict]`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `supplemental_groups` (`pulumi.Input[dict]`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - - * `volumes` (`pulumi.Input[list]`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py index e57777f01f..6381f79222 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py @@ -18,122 +18,6 @@ class PodSecurityPolicyList(pulumi.CustomResource): items: pulumi.Output[list] """ items is a list of schema objects. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - spec defines the policy enforced. - * `allow_privilege_escalation` (`bool`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. - * `allowed_csi_drivers` (`list`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. - * `name` (`str`) - Name is the registered name of the CSI driver - - * `allowed_capabilities` (`list`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - * `allowed_flex_volumes` (`list`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. - * `driver` (`str`) - driver is the name of the Flexvolume driver. - - * `allowed_host_paths` (`list`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. - * `pathPrefix` (`str`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. - - Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` - * `read_only` (`bool`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - - * `allowed_proc_mount_types` (`list`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. - * `allowed_unsafe_sysctls` (`list`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. - - Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - * `default_add_capabilities` (`list`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. - * `default_allow_privilege_escalation` (`bool`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. - * `forbidden_sysctls` (`list`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - - Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - * `fs_group` (`dict`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - * `ranges` (`list`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. - * `max` (`float`) - max is the end of the range, inclusive. - * `min` (`float`) - min is the start of the range, inclusive. - - * `rule` (`str`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - - * `host_ipc` (`bool`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. - * `host_network` (`bool`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - * `host_pid` (`bool`) - hostPID determines if the policy allows the use of HostPID in the pod spec. - * `host_ports` (`list`) - hostPorts determines which host port ranges are allowed to be exposed. - * `max` (`float`) - max is the end of the range, inclusive. - * `min` (`float`) - min is the start of the range, inclusive. - - * `privileged` (`bool`) - privileged determines if a pod can request to be run as privileged. - * `read_only_root_filesystem` (`bool`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. - * `required_drop_capabilities` (`list`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. - * `run_as_group` (`dict`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. - * `ranges` (`list`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - - * `run_as_user` (`dict`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - * `ranges` (`list`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`str`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. - - * `runtime_class` (`dict`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. - * `allowed_runtime_class_names` (`list`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. - * `default_runtime_class_name` (`str`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. - - * `se_linux` (`dict`) - seLinux is the strategy that will dictate the allowable labels that may be set. - * `rule` (`str`) - rule is the strategy that will dictate the allowable labels that may be set. - * `se_linux_options` (`dict`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `level` (`str`) - Level is SELinux level label that applies to the container. - * `role` (`str`) - Role is a SELinux role label that applies to the container. - * `type` (`str`) - Type is a SELinux type label that applies to the container. - * `user` (`str`) - User is a SELinux user label that applies to the container. - - * `supplemental_groups` (`dict`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - * `ranges` (`list`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`str`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - - * `volumes` (`list`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. """ kind: pulumi.Output[str] """ @@ -142,12 +26,6 @@ class PodSecurityPolicyList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -158,134 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is a list of schema objects. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - spec defines the policy enforced. - * `allow_privilege_escalation` (`pulumi.Input[bool]`) - allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. - * `allowed_csi_drivers` (`pulumi.Input[list]`) - AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. - * `name` (`pulumi.Input[str]`) - Name is the registered name of the CSI driver - - * `allowed_capabilities` (`pulumi.Input[list]`) - allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. - * `allowed_flex_volumes` (`pulumi.Input[list]`) - allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field. - * `driver` (`pulumi.Input[str]`) - driver is the name of the Flexvolume driver. - - * `allowed_host_paths` (`pulumi.Input[list]`) - allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. - * `pathPrefix` (`pulumi.Input[str]`) - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. - - Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` - * `read_only` (`pulumi.Input[bool]`) - when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. - - * `allowed_proc_mount_types` (`pulumi.Input[list]`) - AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. - * `allowed_unsafe_sysctls` (`pulumi.Input[list]`) - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. - - Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - * `default_add_capabilities` (`pulumi.Input[list]`) - defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. - * `default_allow_privilege_escalation` (`pulumi.Input[bool]`) - defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. - * `forbidden_sysctls` (`pulumi.Input[list]`) - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - - Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - * `fs_group` (`pulumi.Input[dict]`) - fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. - * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. - * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. - - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - - * `host_ipc` (`pulumi.Input[bool]`) - hostIPC determines if the policy allows the use of HostIPC in the pod spec. - * `host_network` (`pulumi.Input[bool]`) - hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - * `host_pid` (`pulumi.Input[bool]`) - hostPID determines if the policy allows the use of HostPID in the pod spec. - * `host_ports` (`pulumi.Input[list]`) - hostPorts determines which host port ranges are allowed to be exposed. - * `max` (`pulumi.Input[float]`) - max is the end of the range, inclusive. - * `min` (`pulumi.Input[float]`) - min is the start of the range, inclusive. - - * `privileged` (`pulumi.Input[bool]`) - privileged determines if a pod can request to be run as privileged. - * `read_only_root_filesystem` (`pulumi.Input[bool]`) - readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. - * `required_drop_capabilities` (`pulumi.Input[list]`) - requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. - * `run_as_group` (`pulumi.Input[dict]`) - RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - - * `run_as_user` (`pulumi.Input[dict]`) - runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable RunAsUser values that may be set. - - * `runtime_class` (`pulumi.Input[dict]`) - runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled. - * `allowed_runtime_class_names` (`pulumi.Input[list]`) - allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. - * `default_runtime_class_name` (`pulumi.Input[str]`) - defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. - - * `se_linux` (`pulumi.Input[dict]`) - seLinux is the strategy that will dictate the allowable labels that may be set. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate the allowable labels that may be set. - * `se_linux_options` (`pulumi.Input[dict]`) - seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - * `level` (`pulumi.Input[str]`) - Level is SELinux level label that applies to the container. - * `role` (`pulumi.Input[str]`) - Role is a SELinux role label that applies to the container. - * `type` (`pulumi.Input[str]`) - Type is a SELinux type label that applies to the container. - * `user` (`pulumi.Input[str]`) - User is a SELinux user label that applies to the container. - - * `supplemental_groups` (`pulumi.Input[dict]`) - supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. - * `ranges` (`pulumi.Input[list]`) - ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. - * `rule` (`pulumi.Input[str]`) - rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - - * `volumes` (`pulumi.Input[list]`) - volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py index c5f07eb2e5..3c3bfb67ae 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py @@ -14,13 +14,6 @@ class ClusterRole(pulumi.CustomResource): aggregation_rule: pulumi.Output[dict] """ AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - * `cluster_role_selectors` (`list`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. """ api_version: pulumi.Output[str] """ @@ -33,61 +26,10 @@ class ClusterRole(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ rules: pulumi.Output[list] """ Rules holds all the PolicyRules for this ClusterRole - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): """ @@ -99,73 +41,6 @@ def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_vers :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 :param pulumi.Input[dict] metadata: Standard object's metadata. :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole - - The **aggregation_rule** object supports the following: - - * `cluster_role_selectors` (`pulumi.Input[list]`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **rules** object supports the following: - - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py index b5afd37308..fab03957b2 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py @@ -22,67 +22,14 @@ class ClusterRoleBinding(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ role_ref: pulumi.Output[dict] """ RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced """ subjects: pulumi.Output[list] """ Subjects holds references to the objects the role applies to. - * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`str`) - Name of the object being referenced. - * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): """ @@ -94,68 +41,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :param pulumi.Input[dict] metadata: Standard object's metadata. :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **role_ref** object supports the following: - - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - The **subjects** object supports the following: - - * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`pulumi.Input[str]`) - Name of the object being referenced. - * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py index 8104071252..41070dc2c8 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py @@ -18,66 +18,6 @@ class ClusterRoleBindingList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of ClusterRoleBindings - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `role_ref` (`dict`) - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `subjects` (`list`) - Subjects holds references to the objects the role applies to. - * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`str`) - Name of the object being referenced. - * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ kind: pulumi.Output[str] """ @@ -86,12 +26,6 @@ class ClusterRoleBindingList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -102,78 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings :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 :param pulumi.Input[dict] metadata: Standard object's metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `role_ref` (`pulumi.Input[dict]`) - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `subjects` (`pulumi.Input[list]`) - Subjects holds references to the objects the role applies to. - * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`pulumi.Input[str]`) - Name of the object being referenced. - * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py index 4298473d39..153e8ad7fe 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py @@ -18,71 +18,6 @@ class ClusterRoleList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of ClusterRoles - * `aggregation_rule` (`dict`) - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - * `cluster_role_selectors` (`list`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `rules` (`list`) - Rules holds all the PolicyRules for this ClusterRole - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ kind: pulumi.Output[str] """ @@ -91,12 +26,6 @@ class ClusterRoleList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -107,83 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of ClusterRoles :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 :param pulumi.Input[dict] metadata: Standard object's metadata. - - The **items** object supports the following: - - * `aggregation_rule` (`pulumi.Input[dict]`) - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - * `cluster_role_selectors` (`pulumi.Input[list]`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `rules` (`pulumi.Input[list]`) - Rules holds all the PolicyRules for this ClusterRole - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1/role.py index 7fe2b71ff1..76ad643ba5 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role.py @@ -22,61 +22,10 @@ class Role(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ rules: pulumi.Output[list] """ Rules holds all the PolicyRules for this Role - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): """ @@ -87,63 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **rules** object supports the following: - - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py index cd7acd3c6e..3098b9ffb8 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py @@ -22,67 +22,14 @@ class RoleBinding(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ role_ref: pulumi.Output[dict] """ RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced """ subjects: pulumi.Output[list] """ Subjects holds references to the objects the role applies to. - * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`str`) - Name of the object being referenced. - * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): """ @@ -94,68 +41,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :param pulumi.Input[dict] metadata: Standard object's metadata. :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **role_ref** object supports the following: - - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - The **subjects** object supports the following: - - * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`pulumi.Input[str]`) - Name of the object being referenced. - * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py index a6eb5125b3..911a28b856 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py @@ -18,66 +18,6 @@ class RoleBindingList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of RoleBindings - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `role_ref` (`dict`) - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `subjects` (`list`) - Subjects holds references to the objects the role applies to. - * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`str`) - Name of the object being referenced. - * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ kind: pulumi.Output[str] """ @@ -86,12 +26,6 @@ class RoleBindingList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -102,78 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of RoleBindings :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 :param pulumi.Input[dict] metadata: Standard object's metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `role_ref` (`pulumi.Input[dict]`) - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `subjects` (`pulumi.Input[list]`) - Subjects holds references to the objects the role applies to. - * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`pulumi.Input[str]`) - Name of the object being referenced. - * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py index c076197170..da7bd27817 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py @@ -18,62 +18,6 @@ class RoleList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of Roles - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `rules` (`list`) - Rules holds all the PolicyRules for this Role - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ kind: pulumi.Output[str] """ @@ -82,12 +26,6 @@ class RoleList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -98,74 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of Roles :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 :param pulumi.Input[dict] metadata: Standard object's metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `rules` (`pulumi.Input[list]`) - Rules holds all the PolicyRules for this Role - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py index 60af0472e9..32ae052938 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py @@ -14,13 +14,6 @@ class ClusterRole(pulumi.CustomResource): aggregation_rule: pulumi.Output[dict] """ AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - * `cluster_role_selectors` (`list`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. """ api_version: pulumi.Output[str] """ @@ -33,61 +26,10 @@ class ClusterRole(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ rules: pulumi.Output[list] """ Rules holds all the PolicyRules for this ClusterRole - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): """ @@ -99,73 +41,6 @@ def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_vers :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 :param pulumi.Input[dict] metadata: Standard object's metadata. :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole - - The **aggregation_rule** object supports the following: - - * `cluster_role_selectors` (`pulumi.Input[list]`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **rules** object supports the following: - - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py index fb6f910dcc..870e168f67 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py @@ -22,67 +22,14 @@ class ClusterRoleBinding(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ role_ref: pulumi.Output[dict] """ RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced """ subjects: pulumi.Output[list] """ Subjects holds references to the objects the role applies to. - * `api_version` (`str`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`str`) - Name of the object being referenced. - * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): """ @@ -94,68 +41,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :param pulumi.Input[dict] metadata: Standard object's metadata. :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **role_ref** object supports the following: - - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - The **subjects** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`pulumi.Input[str]`) - Name of the object being referenced. - * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py index 8384f990f9..da7881c59d 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py @@ -18,66 +18,6 @@ class ClusterRoleBindingList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of ClusterRoleBindings - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `role_ref` (`dict`) - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `subjects` (`list`) - Subjects holds references to the objects the role applies to. - * `api_version` (`str`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`str`) - Name of the object being referenced. - * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ kind: pulumi.Output[str] """ @@ -86,12 +26,6 @@ class ClusterRoleBindingList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -102,78 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings :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 :param pulumi.Input[dict] metadata: Standard object's metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `role_ref` (`pulumi.Input[dict]`) - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `subjects` (`pulumi.Input[list]`) - Subjects holds references to the objects the role applies to. - * `api_version` (`pulumi.Input[str]`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`pulumi.Input[str]`) - Name of the object being referenced. - * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py index e4fc08ffb0..c7fa1bb018 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py @@ -18,71 +18,6 @@ class ClusterRoleList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of ClusterRoles - * `aggregation_rule` (`dict`) - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - * `cluster_role_selectors` (`list`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `rules` (`list`) - Rules holds all the PolicyRules for this ClusterRole - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ kind: pulumi.Output[str] """ @@ -91,12 +26,6 @@ class ClusterRoleList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -107,83 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of ClusterRoles :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 :param pulumi.Input[dict] metadata: Standard object's metadata. - - The **items** object supports the following: - - * `aggregation_rule` (`pulumi.Input[dict]`) - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - * `cluster_role_selectors` (`pulumi.Input[list]`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `rules` (`pulumi.Input[list]`) - Rules holds all the PolicyRules for this ClusterRole - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py index 92a56ddbfe..7df5b21453 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py @@ -22,61 +22,10 @@ class Role(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ rules: pulumi.Output[list] """ Rules holds all the PolicyRules for this Role - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): """ @@ -87,63 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **rules** object supports the following: - - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py index 7257ee3779..90d50c91da 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py @@ -22,67 +22,14 @@ class RoleBinding(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ role_ref: pulumi.Output[dict] """ RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced """ subjects: pulumi.Output[list] """ Subjects holds references to the objects the role applies to. - * `api_version` (`str`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`str`) - Name of the object being referenced. - * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): """ @@ -94,68 +41,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :param pulumi.Input[dict] metadata: Standard object's metadata. :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **role_ref** object supports the following: - - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - The **subjects** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`pulumi.Input[str]`) - Name of the object being referenced. - * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py index 3c28c1195f..25d47aecbb 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py @@ -18,66 +18,6 @@ class RoleBindingList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of RoleBindings - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `role_ref` (`dict`) - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `subjects` (`list`) - Subjects holds references to the objects the role applies to. - * `api_version` (`str`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`str`) - Name of the object being referenced. - * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ kind: pulumi.Output[str] """ @@ -86,12 +26,6 @@ class RoleBindingList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -102,78 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of RoleBindings :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 :param pulumi.Input[dict] metadata: Standard object's metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `role_ref` (`pulumi.Input[dict]`) - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `subjects` (`pulumi.Input[list]`) - Subjects holds references to the objects the role applies to. - * `api_version` (`pulumi.Input[str]`) - APIVersion holds the API group and version of the referenced subject. Defaults to "v1" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. - * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`pulumi.Input[str]`) - Name of the object being referenced. - * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py index 3c327313c6..1e6e7f3e46 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py @@ -18,62 +18,6 @@ class RoleList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of Roles - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `rules` (`list`) - Rules holds all the PolicyRules for this Role - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`list`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ kind: pulumi.Output[str] """ @@ -82,12 +26,6 @@ class RoleList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -98,74 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of Roles :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 :param pulumi.Input[dict] metadata: Standard object's metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `rules` (`pulumi.Input[list]`) - Rules holds all the PolicyRules for this Role - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. ResourceAll represents all resources. - * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py index 3f153d3bc6..ea2b65734a 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py @@ -14,13 +14,6 @@ class ClusterRole(pulumi.CustomResource): aggregation_rule: pulumi.Output[dict] """ AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - * `cluster_role_selectors` (`list`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. """ api_version: pulumi.Output[str] """ @@ -33,61 +26,10 @@ class ClusterRole(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ rules: pulumi.Output[list] """ Rules holds all the PolicyRules for this ClusterRole - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`list`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. - * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): """ @@ -99,73 +41,6 @@ def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_vers :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 :param pulumi.Input[dict] metadata: Standard object's metadata. :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole - - The **aggregation_rule** object supports the following: - - * `cluster_role_selectors` (`pulumi.Input[list]`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **rules** object supports the following: - - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. - * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py index 0db06ce688..f030731d82 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py @@ -22,67 +22,14 @@ class ClusterRoleBinding(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ role_ref: pulumi.Output[dict] """ RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced """ subjects: pulumi.Output[list] """ Subjects holds references to the objects the role applies to. - * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`str`) - Name of the object being referenced. - * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): """ @@ -94,68 +41,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :param pulumi.Input[dict] metadata: Standard object's metadata. :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **role_ref** object supports the following: - - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - The **subjects** object supports the following: - - * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`pulumi.Input[str]`) - Name of the object being referenced. - * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py index fd8073e163..2c27598f7b 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py @@ -18,66 +18,6 @@ class ClusterRoleBindingList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of ClusterRoleBindings - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `role_ref` (`dict`) - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `subjects` (`list`) - Subjects holds references to the objects the role applies to. - * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`str`) - Name of the object being referenced. - * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ kind: pulumi.Output[str] """ @@ -86,12 +26,6 @@ class ClusterRoleBindingList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -102,78 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings :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 :param pulumi.Input[dict] metadata: Standard object's metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `role_ref` (`pulumi.Input[dict]`) - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `subjects` (`pulumi.Input[list]`) - Subjects holds references to the objects the role applies to. - * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`pulumi.Input[str]`) - Name of the object being referenced. - * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py index 70c71e4875..2d71424edb 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py @@ -18,71 +18,6 @@ class ClusterRoleList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of ClusterRoles - * `aggregation_rule` (`dict`) - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - * `cluster_role_selectors` (`list`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `rules` (`list`) - Rules holds all the PolicyRules for this ClusterRole - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`list`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. - * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ kind: pulumi.Output[str] """ @@ -91,12 +26,6 @@ class ClusterRoleList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -107,83 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of ClusterRoles :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 :param pulumi.Input[dict] metadata: Standard object's metadata. - - The **items** object supports the following: - - * `aggregation_rule` (`pulumi.Input[dict]`) - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - * `cluster_role_selectors` (`pulumi.Input[list]`) - ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `rules` (`pulumi.Input[list]`) - Rules holds all the PolicyRules for this ClusterRole - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. - * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py index 338aa7c949..e61aa2e04d 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py @@ -22,61 +22,10 @@ class Role(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ rules: pulumi.Output[list] """ Rules holds all the PolicyRules for this Role - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`list`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. - * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): """ @@ -87,63 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object's metadata. :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **rules** object supports the following: - - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. - * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py index 8730dcff39..b987d36875 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py @@ -22,67 +22,14 @@ class RoleBinding(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ role_ref: pulumi.Output[dict] """ RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced """ subjects: pulumi.Output[list] """ Subjects holds references to the objects the role applies to. - * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`str`) - Name of the object being referenced. - * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): """ @@ -94,68 +41,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :param pulumi.Input[dict] metadata: Standard object's metadata. :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **role_ref** object supports the following: - - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - The **subjects** object supports the following: - - * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`pulumi.Input[str]`) - Name of the object being referenced. - * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py index b5624f8164..58ae8a68a5 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py @@ -18,66 +18,6 @@ class RoleBindingList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of RoleBindings - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `role_ref` (`dict`) - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`str`) - APIGroup is the group for the resource being referenced - * `kind` (`str`) - Kind is the type of resource being referenced - * `name` (`str`) - Name is the name of resource being referenced - - * `subjects` (`list`) - Subjects holds references to the objects the role applies to. - * `api_group` (`str`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`str`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`str`) - Name of the object being referenced. - * `namespace` (`str`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. """ kind: pulumi.Output[str] """ @@ -86,12 +26,6 @@ class RoleBindingList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -102,78 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of RoleBindings :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 :param pulumi.Input[dict] metadata: Standard object's metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `role_ref` (`pulumi.Input[dict]`) - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - * `api_group` (`pulumi.Input[str]`) - APIGroup is the group for the resource being referenced - * `kind` (`pulumi.Input[str]`) - Kind is the type of resource being referenced - * `name` (`pulumi.Input[str]`) - Name is the name of resource being referenced - - * `subjects` (`pulumi.Input[list]`) - Subjects holds references to the objects the role applies to. - * `api_group` (`pulumi.Input[str]`) - APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects. - * `kind` (`pulumi.Input[str]`) - Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error. - * `name` (`pulumi.Input[str]`) - Name of the object being referenced. - * `namespace` (`pulumi.Input[str]`) - Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py index fc6f8047d9..f486fc322a 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py @@ -18,62 +18,6 @@ class RoleList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of Roles - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `rules` (`list`) - Rules holds all the PolicyRules for this Role - * `apiGroups` (`list`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`list`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`list`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`list`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. - * `verbs` (`list`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. """ kind: pulumi.Output[str] """ @@ -82,12 +26,6 @@ class RoleList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -98,74 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of Roles :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 :param pulumi.Input[dict] metadata: Standard object's metadata. - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `rules` (`pulumi.Input[list]`) - Rules holds all the PolicyRules for this Role - * `apiGroups` (`pulumi.Input[list]`) - APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. - * `nonResourceURLs` (`pulumi.Input[list]`) - NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. - * `resourceNames` (`pulumi.Input[list]`) - ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. - * `resources` (`pulumi.Input[list]`) - Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*/foo' represents the subresource 'foo' for all resources in the specified apiGroups. - * `verbs` (`pulumi.Input[list]`) - Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py index ca3d414650..0baf797823 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py @@ -30,52 +30,6 @@ class PriorityClass(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ preemption_policy: pulumi.Output[str] """ @@ -97,55 +51,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, description=N :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. :param pulumi.Input[float] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py index 2051b7596a..4ae58ea60c 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py @@ -18,60 +18,6 @@ class PriorityClassList(pulumi.CustomResource): items: pulumi.Output[list] """ items is the list of PriorityClasses - * `api_version` (`str`) - 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 - * `description` (`str`) - description is an arbitrary string that usually provides guidelines on when this priority class should be used. - * `global_default` (`bool`) - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `value` (`float`) - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. """ kind: pulumi.Output[str] """ @@ -80,12 +26,6 @@ class PriorityClassList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -96,72 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is the list of PriorityClasses :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 :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `description` (`pulumi.Input[str]`) - description is an arbitrary string that usually provides guidelines on when this priority class should be used. - * `global_default` (`pulumi.Input[bool]`) - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `value` (`pulumi.Input[float]`) - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py index b4d2158e09..550e8a0ce1 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py @@ -30,52 +30,6 @@ class PriorityClass(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ preemption_policy: pulumi.Output[str] """ @@ -97,55 +51,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, description=N :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. :param pulumi.Input[float] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py index de26bd725f..aafadb9698 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py @@ -18,60 +18,6 @@ class PriorityClassList(pulumi.CustomResource): items: pulumi.Output[list] """ items is the list of PriorityClasses - * `api_version` (`str`) - 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 - * `description` (`str`) - description is an arbitrary string that usually provides guidelines on when this priority class should be used. - * `global_default` (`bool`) - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `value` (`float`) - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. """ kind: pulumi.Output[str] """ @@ -80,12 +26,6 @@ class PriorityClassList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -96,72 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is the list of PriorityClasses :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 :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `description` (`pulumi.Input[str]`) - description is an arbitrary string that usually provides guidelines on when this priority class should be used. - * `global_default` (`pulumi.Input[bool]`) - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `value` (`pulumi.Input[float]`) - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py index b35a7ea8fc..0ceb846f88 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py @@ -30,52 +30,6 @@ class PriorityClass(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ preemption_policy: pulumi.Output[str] """ @@ -97,55 +51,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, description=N :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. :param pulumi.Input[float] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py index 08a651e343..3ac439e0cb 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py @@ -18,60 +18,6 @@ class PriorityClassList(pulumi.CustomResource): items: pulumi.Output[list] """ items is the list of PriorityClasses - * `api_version` (`str`) - 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 - * `description` (`str`) - description is an arbitrary string that usually provides guidelines on when this priority class should be used. - * `global_default` (`bool`) - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `preemption_policy` (`str`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `value` (`float`) - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. """ kind: pulumi.Output[str] """ @@ -80,12 +26,6 @@ class PriorityClassList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -96,72 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is the list of PriorityClasses :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 :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `description` (`pulumi.Input[str]`) - description is an arbitrary string that usually provides guidelines on when this priority class should be used. - * `global_default` (`pulumi.Input[bool]`) - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `preemption_policy` (`pulumi.Input[str]`) - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - * `value` (`pulumi.Input[float]`) - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py index a486d678a4..fd386e3c5c 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py @@ -28,311 +28,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :param pulumi.ResourceOptions opts: Options for the resource. :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 :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 - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `env` (`pulumi.Input[list]`) - Env defines the collection of EnvVar to inject into containers. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - EnvFrom defines the collection of EnvFromSource to inject into containers. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `selector` (`pulumi.Input[dict]`) - Selector is a label query over a set of resources, in this case pods. Required. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `volume_mounts` (`pulumi.Input[list]`) - VolumeMounts defines the collection of VolumeMount to inject into containers. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `volumes` (`pulumi.Input[list]`) - Volumes defines the collection of Volume to inject into the pod. - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py index 7663a7d5d3..2be09e485c 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py @@ -18,310 +18,6 @@ class PodPresetList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is a list of schema objects. - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - * `env` (`list`) - Env defines the collection of EnvVar to inject into containers. - * `name` (`str`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`str`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`dict`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`dict`) - Selects a key of a ConfigMap. - * `key` (`str`) - The key to select. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`dict`) - 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. - * `api_version` (`str`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`str`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`str`) - Container name: required for volumes, optional for env vars - * `divisor` (`str`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`str`) - Required: resource to select - - * `secretKeyRef` (`dict`) - Selects a key of a secret in the pod's namespace - * `key` (`str`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `env_from` (`list`) - EnvFrom defines the collection of EnvFromSource to inject into containers. - * `configMapRef` (`dict`) - The ConfigMap to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap must be defined - - * `prefix` (`str`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`dict`) - The Secret to select from - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret must be defined - - * `selector` (`dict`) - Selector is a label query over a set of resources, in this case pods. Required. - * `match_expressions` (`list`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`str`) - key is the label key that the selector applies to. - * `operator` (`str`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`list`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`dict`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `volume_mounts` (`list`) - VolumeMounts defines the collection of VolumeMount to inject into containers. - * `mountPath` (`str`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`str`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`str`) - This must match the Name of a Volume. - * `read_only` (`bool`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`str`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`str`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `volumes` (`list`) - Volumes defines the collection of Volume to inject into the pod. - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`str`) - Share Name - - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`dict`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`str`) - The key to project. - * `mode` (`float`) - 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. - * `path` (`str`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`dict`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`str`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`str`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`bool`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`dict`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`dict`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`float`) - 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. - * `items` (`list`) - Items is a list of downward API volume file - * `fieldRef` (`dict`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`float`) - 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. - * `path` (`str`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`dict`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`dict`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`str`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`str`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`dict`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`str`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`str`) - Repository URL - * `revision` (`str`) - Commit hash for the specified revision. - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`str`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`dict`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`dict`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`str`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`bool`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`dict`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`float`) - 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. - * `sources` (`list`) - list of volume projections - * `config_map` (`dict`) - information about the configMap data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`dict`) - information about the downwardAPI data to project - * `items` (`list`) - Items is a list of DownwardAPIVolume file - - * `secret` (`dict`) - information about the secret data to project - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`bool`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`dict`) - information about the serviceAccountToken data to project - * `audience` (`str`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`float`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`str`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`dict`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`float`) - 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. - * `items` (`list`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`bool`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`str`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`dict`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk """ kind: pulumi.Output[str] """ @@ -330,12 +26,6 @@ class PodPresetList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -346,322 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is a list of schema objects. :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 :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - * `env` (`pulumi.Input[list]`) - Env defines the collection of EnvVar to inject into containers. - * `name` (`pulumi.Input[str]`) - Name of the environment variable. Must be a C_IDENTIFIER. - * `value` (`pulumi.Input[str]`) - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - * `valueFrom` (`pulumi.Input[dict]`) - Source for the environment variable's value. Cannot be used if value is not empty. - * `configMapKeyRef` (`pulumi.Input[dict]`) - Selects a key of a ConfigMap. - * `key` (`pulumi.Input[str]`) - The key to select. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its key must be defined - - * `fieldRef` (`pulumi.Input[dict]`) - 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. - * `api_version` (`pulumi.Input[str]`) - Version of the schema the FieldPath is written in terms of, defaults to "v1". - * `field_path` (`pulumi.Input[str]`) - Path of the field to select in the specified API version. - - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. - * `containerName` (`pulumi.Input[str]`) - Container name: required for volumes, optional for env vars - * `divisor` (`pulumi.Input[str]`) - Specifies the output format of the exposed resources, defaults to "1" - * `resource` (`pulumi.Input[str]`) - Required: resource to select - - * `secretKeyRef` (`pulumi.Input[dict]`) - Selects a key of a secret in the pod's namespace - * `key` (`pulumi.Input[str]`) - The key of the secret to select from. Must be a valid secret key. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `env_from` (`pulumi.Input[list]`) - EnvFrom defines the collection of EnvFromSource to inject into containers. - * `configMapRef` (`pulumi.Input[dict]`) - The ConfigMap to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap must be defined - - * `prefix` (`pulumi.Input[str]`) - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - * `secret_ref` (`pulumi.Input[dict]`) - The Secret to select from - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret must be defined - - * `selector` (`pulumi.Input[dict]`) - Selector is a label query over a set of resources, in this case pods. Required. - * `match_expressions` (`pulumi.Input[list]`) - matchExpressions is a list of label selector requirements. The requirements are ANDed. - * `key` (`pulumi.Input[str]`) - key is the label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. - * `values` (`pulumi.Input[list]`) - values is 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. This array is replaced during a strategic merge patch. - - * `match_labels` (`pulumi.Input[dict]`) - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - - * `volume_mounts` (`pulumi.Input[list]`) - VolumeMounts defines the collection of VolumeMount to inject into containers. - * `mountPath` (`pulumi.Input[str]`) - Path within the container at which the volume should be mounted. Must not contain ':'. - * `mountPropagation` (`pulumi.Input[str]`) - mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. - * `name` (`pulumi.Input[str]`) - This must match the Name of a Volume. - * `read_only` (`pulumi.Input[bool]`) - Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - * `subPath` (`pulumi.Input[str]`) - Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - * `subPathExpr` (`pulumi.Input[str]`) - Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - - * `volumes` (`pulumi.Input[list]`) - Volumes defines the collection of Volume to inject into the pod. - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `config_map` (`pulumi.Input[dict]`) - ConfigMap represents a configMap that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `key` (`pulumi.Input[str]`) - The key to project. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. - - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `csi` (`pulumi.Input[dict]`) - CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). - * `driver` (`pulumi.Input[str]`) - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. - * `read_only` (`pulumi.Input[bool]`) - Specifies a read-only configuration for the volume. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - - * `downwardAPI` (`pulumi.Input[dict]`) - DownwardAPI represents downward API about the pod that should populate this volume - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - Items is a list of downward API volume file - * `fieldRef` (`pulumi.Input[dict]`) - Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. - * `mode` (`pulumi.Input[float]`) - 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. - * `path` (`pulumi.Input[str]`) - Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' - * `resourceFieldRef` (`pulumi.Input[dict]`) - Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - - * `emptyDir` (`pulumi.Input[dict]`) - EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `medium` (`pulumi.Input[str]`) - What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - * `sizeLimit` (`pulumi.Input[str]`) - Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `gitRepo` (`pulumi.Input[dict]`) - GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. - * `directory` (`pulumi.Input[str]`) - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - * `repository` (`pulumi.Input[str]`) - Repository URL - * `revision` (`pulumi.Input[str]`) - Commit hash for the specified revision. - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `name` (`pulumi.Input[str]`) - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `persistentVolumeClaim` (`pulumi.Input[dict]`) - PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `claimName` (`pulumi.Input[str]`) - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - * `read_only` (`pulumi.Input[bool]`) - Will force the ReadOnly setting in VolumeMounts. Default false. - - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `projected` (`pulumi.Input[dict]`) - Items for all in one resources secrets, configmaps, and downward API - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `sources` (`pulumi.Input[list]`) - list of volume projections - * `config_map` (`pulumi.Input[dict]`) - information about the configMap data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the ConfigMap or its keys must be defined - - * `downwardAPI` (`pulumi.Input[dict]`) - information about the downwardAPI data to project - * `items` (`pulumi.Input[list]`) - Items is a list of DownwardAPIVolume file - - * `secret` (`pulumi.Input[dict]`) - information about the secret data to project - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its key must be defined - - * `serviceAccountToken` (`pulumi.Input[dict]`) - information about the serviceAccountToken data to project - * `audience` (`pulumi.Input[str]`) - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - * `expiration_seconds` (`pulumi.Input[float]`) - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - * `path` (`pulumi.Input[str]`) - Path is the path relative to the mount point of the file to project the token into. - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `secret` (`pulumi.Input[dict]`) - Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - * `defaultMode` (`pulumi.Input[float]`) - 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. - * `items` (`pulumi.Input[list]`) - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - * `optional` (`pulumi.Input[bool]`) - Specify whether the Secret or its keys must be defined - * `secret_name` (`pulumi.Input[str]`) - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py index bd73818819..fbc7796239 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py @@ -22,62 +22,10 @@ class CSIDriver(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the CSI Driver. - * `attach_required` (`bool`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. - * `pod_info_on_mount` (`bool`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume - defined by a CSIVolumeSource, otherwise "false" - - "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. - * `volume_lifecycle_modes` (`list`) - volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -88,64 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the CSI Driver. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `attach_required` (`pulumi.Input[bool]`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. - * `pod_info_on_mount` (`pulumi.Input[bool]`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume - defined by a CSIVolumeSource, otherwise "false" - - "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. - * `volume_lifecycle_modes` (`pulumi.Input[list]`) - volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py index 0e93784254..7acdd11da4 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py @@ -18,63 +18,6 @@ class CSIDriverList(pulumi.CustomResource): items: pulumi.Output[list] """ items is the list of CSIDriver - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the CSI Driver. - * `attach_required` (`bool`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. - * `pod_info_on_mount` (`bool`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume - defined by a CSIVolumeSource, otherwise "false" - - "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. - * `volume_lifecycle_modes` (`list`) - volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. """ kind: pulumi.Output[str] """ @@ -83,12 +26,6 @@ class CSIDriverList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -99,75 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is the list of CSIDriver :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 :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the CSI Driver. - * `attach_required` (`pulumi.Input[bool]`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. - * `pod_info_on_mount` (`pulumi.Input[bool]`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume - defined by a CSIVolumeSource, otherwise "false" - - "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. - * `volume_lifecycle_modes` (`pulumi.Input[list]`) - volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py index 1626363685..8cad79c826 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py @@ -22,63 +22,10 @@ class CSINode(pulumi.CustomResource): metadata: pulumi.Output[dict] """ metadata.name must be the Kubernetes node name. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ spec is the specification of CSINode - * `drivers` (`list`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. - * `allocatable` (`dict`) - allocatable represents the volume resources of a node that are available for scheduling. This field is beta. - * `count` (`float`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. - - * `name` (`str`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. - * `nodeID` (`str`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. - * `topology_keys` (`list`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -89,65 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: metadata.name must be the Kubernetes node name. :param pulumi.Input[dict] spec: spec is the specification of CSINode - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `drivers` (`pulumi.Input[list]`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. - * `allocatable` (`pulumi.Input[dict]`) - allocatable represents the volume resources of a node that are available for scheduling. This field is beta. - * `count` (`pulumi.Input[float]`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. - - * `name` (`pulumi.Input[str]`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. - * `nodeID` (`pulumi.Input[str]`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. - * `topology_keys` (`pulumi.Input[list]`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py index 9e945efe26..e2b17b1ace 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py @@ -18,64 +18,6 @@ class CSINodeList(pulumi.CustomResource): items: pulumi.Output[list] """ items is the list of CSINode - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - metadata.name must be the Kubernetes node name. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - spec is the specification of CSINode - * `drivers` (`list`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. - * `allocatable` (`dict`) - allocatable represents the volume resources of a node that are available for scheduling. This field is beta. - * `count` (`float`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. - - * `name` (`str`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. - * `nodeID` (`str`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. - * `topology_keys` (`list`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. """ kind: pulumi.Output[str] """ @@ -84,12 +26,6 @@ class CSINodeList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -100,76 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is the list of CSINode :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 :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - metadata.name must be the Kubernetes node name. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - spec is the specification of CSINode - * `drivers` (`pulumi.Input[list]`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. - * `allocatable` (`pulumi.Input[dict]`) - allocatable represents the volume resources of a node that are available for scheduling. This field is beta. - * `count` (`pulumi.Input[float]`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded. - - * `name` (`pulumi.Input[str]`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. - * `nodeID` (`pulumi.Input[str]`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. - * `topology_keys` (`pulumi.Input[list]`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py b/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py index 40f6aedd8a..cc6e95e2b1 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py @@ -18,9 +18,6 @@ class StorageClass(pulumi.CustomResource): allowed_topologies: pulumi.Output[list] """ Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. - * `matchLabelExpressions` (`list`) - A list of topology selector requirements by labels. - * `key` (`str`) - The label key that the selector applies to. - * `values` (`list`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. """ api_version: pulumi.Output[str] """ @@ -33,52 +30,6 @@ class StorageClass(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ mount_options: pulumi.Output[list] """ @@ -117,61 +68,6 @@ def __init__(__self__, resource_name, opts=None, allow_volume_expansion=None, al :param pulumi.Input[str] provisioner: Provisioner indicates the type of the provisioner. :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. - - The **allowed_topologies** object supports the following: - - * `matchLabelExpressions` (`pulumi.Input[list]`) - A list of topology selector requirements by labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `values` (`pulumi.Input[list]`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py b/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py index 4c5c7ee1f8..7209120130 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py @@ -18,67 +18,6 @@ class StorageClassList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of StorageClasses - * `allow_volume_expansion` (`bool`) - AllowVolumeExpansion shows whether the storage class allow volume expand - * `allowed_topologies` (`list`) - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. - * `matchLabelExpressions` (`list`) - A list of topology selector requirements by labels. - * `key` (`str`) - The label key that the selector applies to. - * `values` (`list`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. - - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `mount_options` (`list`) - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. - * `parameters` (`dict`) - Parameters holds the parameters for the provisioner that should create volumes of this storage class. - * `provisioner` (`str`) - Provisioner indicates the type of the provisioner. - * `reclaim_policy` (`str`) - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. - * `volume_binding_mode` (`str`) - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. """ kind: pulumi.Output[str] """ @@ -87,12 +26,6 @@ class StorageClassList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -103,79 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of StorageClasses :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 :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `allow_volume_expansion` (`pulumi.Input[bool]`) - AllowVolumeExpansion shows whether the storage class allow volume expand - * `allowed_topologies` (`pulumi.Input[list]`) - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. - * `matchLabelExpressions` (`pulumi.Input[list]`) - A list of topology selector requirements by labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `values` (`pulumi.Input[list]`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `mount_options` (`pulumi.Input[list]`) - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. - * `parameters` (`pulumi.Input[dict]`) - Parameters holds the parameters for the provisioner that should create volumes of this storage class. - * `provisioner` (`pulumi.Input[str]`) - Provisioner indicates the type of the provisioner. - * `reclaim_policy` (`pulumi.Input[str]`) - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. - * `volume_binding_mode` (`pulumi.Input[str]`) - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py index fb9ca5aa1f..2a86ae34e8 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py @@ -22,253 +22,14 @@ class VolumeAttachment(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - * `attacher` (`str`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * `node_name` (`str`) - The node that the volume should be attached to. - * `source` (`dict`) - Source represents the volume that should be attached. - * `inline_volume_spec` (`dict`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. - * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`str`) - Share Name - - * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`str`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`dict`) - Attributes of the volume to publish. - * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`dict`) - Local represents directly-attached storage with node affinity - * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`dict`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `persistent_volume_name` (`str`) - Name of the persistent volume to attach. """ status: pulumi.Output[dict] """ Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. - * `attach_error` (`dict`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `message` (`str`) - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. - * `time` (`str`) - Time the error was encountered. - - * `attached` (`bool`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `attachment_metadata` (`dict`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `detach_error` (`dict`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -281,244 +42,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `attacher` (`pulumi.Input[str]`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * `node_name` (`pulumi.Input[str]`) - The node that the volume should be attached to. - * `source` (`pulumi.Input[dict]`) - Source represents the volume that should be attached. - * `inline_volume_spec` (`pulumi.Input[dict]`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. - * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `persistent_volume_name` (`pulumi.Input[str]`) - Name of the persistent volume to attach. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py index 8c77e2f9f3..822825b5b0 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py @@ -18,252 +18,6 @@ class VolumeAttachmentList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of VolumeAttachments - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - * `attacher` (`str`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * `node_name` (`str`) - The node that the volume should be attached to. - * `source` (`dict`) - Source represents the volume that should be attached. - * `inline_volume_spec` (`dict`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. - * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`str`) - Share Name - - * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`str`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`dict`) - Attributes of the volume to publish. - * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`dict`) - Local represents directly-attached storage with node affinity - * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`dict`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `persistent_volume_name` (`str`) - Name of the persistent volume to attach. - - * `status` (`dict`) - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. - * `attach_error` (`dict`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `message` (`str`) - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. - * `time` (`str`) - Time the error was encountered. - - * `attached` (`bool`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `attachment_metadata` (`dict`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `detach_error` (`dict`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. """ kind: pulumi.Output[str] """ @@ -272,12 +26,6 @@ class VolumeAttachmentList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -288,264 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of VolumeAttachments :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 :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - * `attacher` (`pulumi.Input[str]`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * `node_name` (`pulumi.Input[str]`) - The node that the volume should be attached to. - * `source` (`pulumi.Input[dict]`) - Source represents the volume that should be attached. - * `inline_volume_spec` (`pulumi.Input[dict]`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. - * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `persistent_volume_name` (`pulumi.Input[str]`) - Name of the persistent volume to attach. - - * `status` (`pulumi.Input[dict]`) - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. - * `attach_error` (`pulumi.Input[dict]`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `message` (`pulumi.Input[str]`) - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. - * `time` (`pulumi.Input[str]`) - Time the error was encountered. - - * `attached` (`pulumi.Input[bool]`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `attachment_metadata` (`pulumi.Input[dict]`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `detach_error` (`pulumi.Input[dict]`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py index 69f88ba96d..8978a31dfc 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py @@ -22,253 +22,14 @@ class VolumeAttachment(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - * `attacher` (`str`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * `node_name` (`str`) - The node that the volume should be attached to. - * `source` (`dict`) - Source represents the volume that should be attached. - * `inline_volume_spec` (`dict`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. - * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`str`) - Share Name - - * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`str`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`dict`) - Attributes of the volume to publish. - * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`dict`) - Local represents directly-attached storage with node affinity - * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`dict`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `persistent_volume_name` (`str`) - Name of the persistent volume to attach. """ status: pulumi.Output[dict] """ Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. - * `attach_error` (`dict`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `message` (`str`) - String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information. - * `time` (`str`) - Time the error was encountered. - - * `attached` (`bool`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `attachment_metadata` (`dict`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `detach_error` (`dict`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -281,244 +42,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `attacher` (`pulumi.Input[str]`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * `node_name` (`pulumi.Input[str]`) - The node that the volume should be attached to. - * `source` (`pulumi.Input[dict]`) - Source represents the volume that should be attached. - * `inline_volume_spec` (`pulumi.Input[dict]`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. - * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `persistent_volume_name` (`pulumi.Input[str]`) - Name of the persistent volume to attach. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py index 39074f591e..8ea6295d31 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py @@ -18,252 +18,6 @@ class VolumeAttachmentList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of VolumeAttachments - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - * `attacher` (`str`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * `node_name` (`str`) - The node that the volume should be attached to. - * `source` (`dict`) - Source represents the volume that should be attached. - * `inline_volume_spec` (`dict`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. - * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`str`) - Share Name - - * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`str`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`dict`) - Attributes of the volume to publish. - * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`dict`) - Local represents directly-attached storage with node affinity - * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`dict`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `persistent_volume_name` (`str`) - Name of the persistent volume to attach. - - * `status` (`dict`) - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. - * `attach_error` (`dict`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `message` (`str`) - String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information. - * `time` (`str`) - Time the error was encountered. - - * `attached` (`bool`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `attachment_metadata` (`dict`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `detach_error` (`dict`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. """ kind: pulumi.Output[str] """ @@ -272,12 +26,6 @@ class VolumeAttachmentList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -288,264 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of VolumeAttachments :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 :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - * `attacher` (`pulumi.Input[str]`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * `node_name` (`pulumi.Input[str]`) - The node that the volume should be attached to. - * `source` (`pulumi.Input[dict]`) - Source represents the volume that should be attached. - * `inline_volume_spec` (`pulumi.Input[dict]`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. - * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `persistent_volume_name` (`pulumi.Input[str]`) - Name of the persistent volume to attach. - - * `status` (`pulumi.Input[dict]`) - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. - * `attach_error` (`pulumi.Input[dict]`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `message` (`pulumi.Input[str]`) - String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information. - * `time` (`pulumi.Input[str]`) - Time the error was encountered. - - * `attached` (`pulumi.Input[bool]`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `attachment_metadata` (`pulumi.Input[dict]`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `detach_error` (`pulumi.Input[dict]`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py index d35bb772ec..f90f7dad26 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py @@ -22,62 +22,10 @@ class CSIDriver(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the CSI Driver. - * `attach_required` (`bool`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. - * `pod_info_on_mount` (`bool`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume - defined by a CSIVolumeSource, otherwise "false" - - "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. - * `volume_lifecycle_modes` (`list`) - VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -88,64 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the CSI Driver. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `attach_required` (`pulumi.Input[bool]`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. - * `pod_info_on_mount` (`pulumi.Input[bool]`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume - defined by a CSIVolumeSource, otherwise "false" - - "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. - * `volume_lifecycle_modes` (`pulumi.Input[list]`) - VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py index adc9830714..601cd474f0 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py @@ -18,63 +18,6 @@ class CSIDriverList(pulumi.CustomResource): items: pulumi.Output[list] """ items is the list of CSIDriver - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the CSI Driver. - * `attach_required` (`bool`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. - * `pod_info_on_mount` (`bool`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume - defined by a CSIVolumeSource, otherwise "false" - - "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. - * `volume_lifecycle_modes` (`list`) - VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. """ kind: pulumi.Output[str] """ @@ -83,12 +26,6 @@ class CSIDriverList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -99,75 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is the list of CSIDriver :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 :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the CSI Driver. - * `attach_required` (`pulumi.Input[bool]`) - attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. - * `pod_info_on_mount` (`pulumi.Input[bool]`) - If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" iff the volume is an ephemeral inline volume - defined by a CSIVolumeSource, otherwise "false" - - "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver. - * `volume_lifecycle_modes` (`pulumi.Input[list]`) - VolumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py index 41804f0247..6e1bd33961 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py @@ -23,63 +23,10 @@ class CSINode(pulumi.CustomResource): metadata: pulumi.Output[dict] """ metadata.name must be the Kubernetes node name. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ spec is the specification of CSINode - * `drivers` (`list`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. - * `allocatable` (`dict`) - allocatable represents the volume resources of a node that are available for scheduling. - * `count` (`float`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is nil, then the supported number of volumes on this node is unbounded. - - * `name` (`str`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. - * `nodeID` (`str`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. - * `topology_keys` (`list`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. """ warnings.warn("storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.", DeprecationWarning) def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): @@ -91,65 +38,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: metadata.name must be the Kubernetes node name. :param pulumi.Input[dict] spec: spec is the specification of CSINode - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `drivers` (`pulumi.Input[list]`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. - * `allocatable` (`pulumi.Input[dict]`) - allocatable represents the volume resources of a node that are available for scheduling. - * `count` (`pulumi.Input[float]`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is nil, then the supported number of volumes on this node is unbounded. - - * `name` (`pulumi.Input[str]`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. - * `nodeID` (`pulumi.Input[str]`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. - * `topology_keys` (`pulumi.Input[list]`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. """ pulumi.log.warn("CSINode is deprecated: storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.") if __name__ is not None: diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py index e15ba51533..a5eb5fcd35 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py @@ -18,64 +18,6 @@ class CSINodeList(pulumi.CustomResource): items: pulumi.Output[list] """ items is the list of CSINode - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - metadata.name must be the Kubernetes node name. - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - spec is the specification of CSINode - * `drivers` (`list`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. - * `allocatable` (`dict`) - allocatable represents the volume resources of a node that are available for scheduling. - * `count` (`float`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is nil, then the supported number of volumes on this node is unbounded. - - * `name` (`str`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. - * `nodeID` (`str`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. - * `topology_keys` (`list`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. """ kind: pulumi.Output[str] """ @@ -84,12 +26,6 @@ class CSINodeList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -100,76 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: items is the list of CSINode :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 :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - metadata.name must be the Kubernetes node name. - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - spec is the specification of CSINode - * `drivers` (`pulumi.Input[list]`) - drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. - * `allocatable` (`pulumi.Input[dict]`) - allocatable represents the volume resources of a node that are available for scheduling. - * `count` (`pulumi.Input[float]`) - Maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is nil, then the supported number of volumes on this node is unbounded. - - * `name` (`pulumi.Input[str]`) - This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. - * `nodeID` (`pulumi.Input[str]`) - nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required. - * `topology_keys` (`pulumi.Input[list]`) - topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py index 8ad4bed640..255be039fe 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py @@ -18,9 +18,6 @@ class StorageClass(pulumi.CustomResource): allowed_topologies: pulumi.Output[list] """ Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. - * `matchLabelExpressions` (`list`) - A list of topology selector requirements by labels. - * `key` (`str`) - The label key that the selector applies to. - * `values` (`list`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. """ api_version: pulumi.Output[str] """ @@ -33,52 +30,6 @@ class StorageClass(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ mount_options: pulumi.Output[list] """ @@ -117,61 +68,6 @@ def __init__(__self__, resource_name, opts=None, allow_volume_expansion=None, al :param pulumi.Input[str] provisioner: Provisioner indicates the type of the provisioner. :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. - - The **allowed_topologies** object supports the following: - - * `matchLabelExpressions` (`pulumi.Input[list]`) - A list of topology selector requirements by labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `values` (`pulumi.Input[list]`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py index b41dc4fff6..2326743b35 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py @@ -18,67 +18,6 @@ class StorageClassList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of StorageClasses - * `allow_volume_expansion` (`bool`) - AllowVolumeExpansion shows whether the storage class allow volume expand - * `allowed_topologies` (`list`) - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. - * `matchLabelExpressions` (`list`) - A list of topology selector requirements by labels. - * `key` (`str`) - The label key that the selector applies to. - * `values` (`list`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. - - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `mount_options` (`list`) - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. - * `parameters` (`dict`) - Parameters holds the parameters for the provisioner that should create volumes of this storage class. - * `provisioner` (`str`) - Provisioner indicates the type of the provisioner. - * `reclaim_policy` (`str`) - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. - * `volume_binding_mode` (`str`) - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. """ kind: pulumi.Output[str] """ @@ -87,12 +26,6 @@ class StorageClassList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -103,79 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of StorageClasses :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 :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `allow_volume_expansion` (`pulumi.Input[bool]`) - AllowVolumeExpansion shows whether the storage class allow volume expand - * `allowed_topologies` (`pulumi.Input[list]`) - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. - * `matchLabelExpressions` (`pulumi.Input[list]`) - A list of topology selector requirements by labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `values` (`pulumi.Input[list]`) - An array of string values. One value must match the label to be selected. Each entry in Values is ORed. - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `mount_options` (`pulumi.Input[list]`) - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. - * `parameters` (`pulumi.Input[dict]`) - Parameters holds the parameters for the provisioner that should create volumes of this storage class. - * `provisioner` (`pulumi.Input[str]`) - Provisioner indicates the type of the provisioner. - * `reclaim_policy` (`pulumi.Input[str]`) - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. - * `volume_binding_mode` (`pulumi.Input[str]`) - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py index 0ebdeb76e6..7678b029e3 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py @@ -22,253 +22,14 @@ class VolumeAttachment(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids """ spec: pulumi.Output[dict] """ Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - * `attacher` (`str`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * `node_name` (`str`) - The node that the volume should be attached to. - * `source` (`dict`) - Source represents the volume that should be attached. - * `inline_volume_spec` (`dict`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. - * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`str`) - Share Name - - * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`str`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`dict`) - Attributes of the volume to publish. - * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`dict`) - Local represents directly-attached storage with node affinity - * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`dict`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `persistent_volume_name` (`str`) - Name of the persistent volume to attach. """ status: pulumi.Output[dict] """ Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. - * `attach_error` (`dict`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `message` (`str`) - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. - * `time` (`str`) - Time the error was encountered. - - * `attached` (`bool`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `attachment_metadata` (`dict`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `detach_error` (`dict`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. """ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ @@ -281,244 +42,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me :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 :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - - The **metadata** object supports the following: - - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - The **spec** object supports the following: - - * `attacher` (`pulumi.Input[str]`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * `node_name` (`pulumi.Input[str]`) - The node that the volume should be attached to. - * `source` (`pulumi.Input[dict]`) - Source represents the volume that should be attached. - * `inline_volume_spec` (`pulumi.Input[dict]`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. - * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `persistent_volume_name` (`pulumi.Input[str]`) - Name of the persistent volume to attach. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py index a1453c004f..ddcb0112b3 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py @@ -18,252 +18,6 @@ class VolumeAttachmentList(pulumi.CustomResource): items: pulumi.Output[list] """ Items is the list of VolumeAttachments - * `api_version` (`str`) - 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 - * `kind` (`str`) - 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 - * `metadata` (`dict`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`dict`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`str`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`str`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`float`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`str`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`list`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`str`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`float`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`dict`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`list`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`str`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`str`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`dict`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`str`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`str`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`str`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`str`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`str`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`list`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`str`) - API version of the referent. - * `blockOwnerDeletion` (`bool`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`bool`) - If true, this reference points to the managing controller. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`str`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`str`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`str`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`dict`) - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - * `attacher` (`str`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * `node_name` (`str`) - The node that the volume should be attached to. - * `source` (`dict`) - Source represents the volume that should be attached. - * `inline_volume_spec` (`dict`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. - * `access_modes` (`list`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`dict`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`bool`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`str`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`dict`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`str`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`str`) - The Name of the data disk in the blob storage - * `disk_uri` (`str`) - The URI the data disk in the blob storage - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`str`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`dict`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`str`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`str`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`str`) - Share Name - - * `capacity` (`dict`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`dict`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`list`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`str`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`str`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`str`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`str`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`str`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`dict`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`dict`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`str`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`dict`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`str`) - API version of the referent. - * `field_path` (`str`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`str`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`str`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`str`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`str`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`str`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`dict`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`dict`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`dict`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`dict`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`dict`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`bool`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`dict`) - Attributes of the volume to publish. - * `volume_handle` (`str`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`dict`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`float`) - Optional: FC target lun number - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`list`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`list`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`dict`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`str`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`dict`) - Optional: Extra command options if any. - * `read_only` (`bool`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`dict`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`str`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`str`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`dict`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`float`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`str`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`dict`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`str`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`str`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`str`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`bool`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`dict`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`str`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`str`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`dict`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`bool`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`bool`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`str`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`str`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`str`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`float`) - iSCSI Target Lun number. - * `portals` (`list`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`dict`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`str`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`dict`) - Local represents directly-attached storage with node affinity - * `fs_type` (`str`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`str`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`list`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`dict`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`str`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`bool`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`str`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`dict`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`dict`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`list`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`list`) - A list of node selector requirements by node's labels. - * `key` (`str`) - The label key that the selector applies to. - * `operator` (`str`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`list`) - 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. - - * `matchFields` (`list`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`str`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`dict`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`str`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`dict`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`str`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`dict`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`str`) - Group to map volume access to Default is no group - * `read_only` (`bool`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`str`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`str`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`str`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`str`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`dict`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`str`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`str`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`str`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`list`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`str`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`bool`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`dict`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`str`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`dict`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`str`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`str`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`bool`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`str`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`str`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`str`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`str`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`str`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`dict`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`bool`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`dict`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`str`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`str`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`str`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`dict`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`str`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`str`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`str`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`str`) - Path that identifies vSphere volume vmdk - - * `persistent_volume_name` (`str`) - Name of the persistent volume to attach. - - * `status` (`dict`) - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. - * `attach_error` (`dict`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `message` (`str`) - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. - * `time` (`str`) - Time the error was encountered. - - * `attached` (`bool`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `attachment_metadata` (`dict`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `detach_error` (`dict`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. """ kind: pulumi.Output[str] """ @@ -272,12 +26,6 @@ class VolumeAttachmentList(pulumi.CustomResource): metadata: pulumi.Output[dict] """ Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `continue_` (`str`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`float`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`str`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`str`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ @@ -288,264 +36,6 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k :param pulumi.Input[list] items: Items is the list of VolumeAttachments :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 :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - - The **items** object supports the following: - - * `api_version` (`pulumi.Input[str]`) - 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 - * `kind` (`pulumi.Input[str]`) - 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 - * `metadata` (`pulumi.Input[dict]`) - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `annotations` (`pulumi.Input[dict]`) - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations - * `cluster_name` (`pulumi.Input[str]`) - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - * `creation_timestamp` (`pulumi.Input[str]`) - CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `deletion_grace_period_seconds` (`pulumi.Input[float]`) - Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. - * `deletion_timestamp` (`pulumi.Input[str]`) - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - * `finalizers` (`pulumi.Input[list]`) - Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. - * `generate_name` (`pulumi.Input[str]`) - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. - - If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). - - Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - * `generation` (`pulumi.Input[float]`) - A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. - * `labels` (`pulumi.Input[dict]`) - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels - * `managed_fields` (`pulumi.Input[list]`) - ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. - * `api_version` (`pulumi.Input[str]`) - APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. - * `fieldsType` (`pulumi.Input[str]`) - FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1" - * `fieldsV1` (`pulumi.Input[dict]`) - FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - * `manager` (`pulumi.Input[str]`) - Manager is an identifier of the workflow managing these fields. - * `operation` (`pulumi.Input[str]`) - Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. - * `time` (`pulumi.Input[str]`) - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' - - * `name` (`pulumi.Input[str]`) - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. - - Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces - * `owner_references` (`pulumi.Input[list]`) - List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `blockOwnerDeletion` (`pulumi.Input[bool]`) - If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - * `controller` (`pulumi.Input[bool]`) - If true, this reference points to the managing controller. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `resource_version` (`pulumi.Input[str]`) - An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. - - Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - SelfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. - * `uid` (`pulumi.Input[str]`) - UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. - - Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids - - * `spec` (`pulumi.Input[dict]`) - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - * `attacher` (`pulumi.Input[str]`) - Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). - * `node_name` (`pulumi.Input[str]`) - The node that the volume should be attached to. - * `source` (`pulumi.Input[dict]`) - Source represents the volume that should be attached. - * `inline_volume_spec` (`pulumi.Input[dict]`) - inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature. - * `access_modes` (`pulumi.Input[list]`) - AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes - * `aws_elastic_block_store` (`pulumi.Input[dict]`) - AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - * `read_only` (`pulumi.Input[bool]`) - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - * `volume_id` (`pulumi.Input[str]`) - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - - * `azure_disk` (`pulumi.Input[dict]`) - AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. - * `caching_mode` (`pulumi.Input[str]`) - Host Caching mode: None, Read Only, Read Write. - * `disk_name` (`pulumi.Input[str]`) - The Name of the data disk in the blob storage - * `disk_uri` (`pulumi.Input[str]`) - The URI the data disk in the blob storage - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `kind` (`pulumi.Input[str]`) - Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - - * `azure_file` (`pulumi.Input[dict]`) - AzureFile represents an Azure File Service mount on the host and bind mount to the pod. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_name` (`pulumi.Input[str]`) - the name of secret that contains Azure Storage Account Name and Key - * `secret_namespace` (`pulumi.Input[str]`) - the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod - * `share_name` (`pulumi.Input[str]`) - Share Name - - * `capacity` (`pulumi.Input[dict]`) - A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity - * `cephfs` (`pulumi.Input[dict]`) - CephFS represents a Ceph FS mount on the host that shares a pod's lifetime - * `monitors` (`pulumi.Input[list]`) - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `path` (`pulumi.Input[str]`) - Optional: Used as the mounted root, rather than the full Ceph tree, default is / - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_file` (`pulumi.Input[str]`) - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - * `name` (`pulumi.Input[str]`) - Name is unique within a namespace to reference a secret resource. - * `namespace` (`pulumi.Input[str]`) - Namespace defines the space within which the secret name must be unique. - - * `user` (`pulumi.Input[str]`) - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - - * `cinder` (`pulumi.Input[dict]`) - Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - * `secret_ref` (`pulumi.Input[dict]`) - Optional: points to a secret object containing parameters used to connect to OpenStack. - * `volume_id` (`pulumi.Input[str]`) - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - - * `claim_ref` (`pulumi.Input[dict]`) - ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding - * `api_version` (`pulumi.Input[str]`) - API version of the referent. - * `field_path` (`pulumi.Input[str]`) - If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. - * `kind` (`pulumi.Input[str]`) - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - * `name` (`pulumi.Input[str]`) - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - * `namespace` (`pulumi.Input[str]`) - Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - * `resource_version` (`pulumi.Input[str]`) - Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `uid` (`pulumi.Input[str]`) - UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids - - * `csi` (`pulumi.Input[dict]`) - CSI represents storage that is handled by an external CSI driver (Beta feature). - * `controller_expand_secret_ref` (`pulumi.Input[dict]`) - ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `controller_publish_secret_ref` (`pulumi.Input[dict]`) - ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. Required. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - * `node_publish_secret_ref` (`pulumi.Input[dict]`) - NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `node_stage_secret_ref` (`pulumi.Input[dict]`) - NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. - * `read_only` (`pulumi.Input[bool]`) - Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). - * `volume_attributes` (`pulumi.Input[dict]`) - Attributes of the volume to publish. - * `volume_handle` (`pulumi.Input[str]`) - VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. - - * `fc` (`pulumi.Input[dict]`) - FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `lun` (`pulumi.Input[float]`) - Optional: FC target lun number - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `target_ww_ns` (`pulumi.Input[list]`) - Optional: FC target worldwide names (WWNs) - * `wwids` (`pulumi.Input[list]`) - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - - * `flex_volume` (`pulumi.Input[dict]`) - FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. - * `driver` (`pulumi.Input[str]`) - Driver is the name of the driver to use for this volume. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - * `options` (`pulumi.Input[dict]`) - Optional: Extra command options if any. - * `read_only` (`pulumi.Input[bool]`) - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. - - * `flocker` (`pulumi.Input[dict]`) - Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running - * `dataset_name` (`pulumi.Input[str]`) - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - * `dataset_uuid` (`pulumi.Input[str]`) - UUID of the dataset. This is unique identifier of a Flocker dataset - - * `gce_persistent_disk` (`pulumi.Input[dict]`) - GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `partition` (`pulumi.Input[float]`) - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `pd_name` (`pulumi.Input[str]`) - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - - * `glusterfs` (`pulumi.Input[dict]`) - Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md - * `endpoints` (`pulumi.Input[str]`) - EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `endpoints_namespace` (`pulumi.Input[str]`) - EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `path` (`pulumi.Input[str]`) - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - - * `host_path` (`pulumi.Input[dict]`) - HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `path` (`pulumi.Input[str]`) - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - * `type` (`pulumi.Input[str]`) - Type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - - * `iscsi` (`pulumi.Input[dict]`) - ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. - * `chap_auth_discovery` (`pulumi.Input[bool]`) - whether support iSCSI Discovery CHAP authentication - * `chap_auth_session` (`pulumi.Input[bool]`) - whether support iSCSI Session CHAP authentication - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - * `initiator_name` (`pulumi.Input[str]`) - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - * `iqn` (`pulumi.Input[str]`) - Target iSCSI Qualified Name. - * `iscsi_interface` (`pulumi.Input[str]`) - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - * `lun` (`pulumi.Input[float]`) - iSCSI Target Lun number. - * `portals` (`pulumi.Input[list]`) - iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - * `secret_ref` (`pulumi.Input[dict]`) - CHAP Secret for iSCSI target and initiator authentication - * `target_portal` (`pulumi.Input[str]`) - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - - * `local` (`pulumi.Input[dict]`) - Local represents directly-attached storage with node affinity - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. - * `path` (`pulumi.Input[str]`) - The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). - - * `mount_options` (`pulumi.Input[list]`) - A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options - * `nfs` (`pulumi.Input[dict]`) - NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `path` (`pulumi.Input[str]`) - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - * `server` (`pulumi.Input[str]`) - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - - * `node_affinity` (`pulumi.Input[dict]`) - NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. - * `required` (`pulumi.Input[dict]`) - Required specifies hard node constraints that must be met. - * `node_selector_terms` (`pulumi.Input[list]`) - Required. A list of node selector terms. The terms are ORed. - * `match_expressions` (`pulumi.Input[list]`) - A list of node selector requirements by node's labels. - * `key` (`pulumi.Input[str]`) - The label key that the selector applies to. - * `operator` (`pulumi.Input[str]`) - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - * `values` (`pulumi.Input[list]`) - 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. - - * `matchFields` (`pulumi.Input[list]`) - A list of node selector requirements by node's fields. - - * `persistent_volume_reclaim_policy` (`pulumi.Input[str]`) - What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - * `photon_persistent_disk` (`pulumi.Input[dict]`) - PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `pd_id` (`pulumi.Input[str]`) - ID that identifies Photon Controller persistent disk - - * `portworx_volume` (`pulumi.Input[dict]`) - PortworxVolume represents a portworx volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `volume_id` (`pulumi.Input[str]`) - VolumeID uniquely identifies a Portworx volume - - * `quobyte` (`pulumi.Input[dict]`) - Quobyte represents a Quobyte mount on the host that shares a pod's lifetime - * `group` (`pulumi.Input[str]`) - Group to map volume access to Default is no group - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - * `registry` (`pulumi.Input[str]`) - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes - * `tenant` (`pulumi.Input[str]`) - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - * `user` (`pulumi.Input[str]`) - User to map volume access to Defaults to serivceaccount user - * `volume` (`pulumi.Input[str]`) - Volume is a string that references an already created Quobyte volume by name. - - * `rbd` (`pulumi.Input[dict]`) - RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - * `image` (`pulumi.Input[str]`) - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `keyring` (`pulumi.Input[str]`) - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `monitors` (`pulumi.Input[list]`) - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `pool` (`pulumi.Input[str]`) - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `read_only` (`pulumi.Input[bool]`) - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - * `user` (`pulumi.Input[str]`) - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - - * `scale_io` (`pulumi.Input[dict]`) - ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs" - * `gateway` (`pulumi.Input[str]`) - The host address of the ScaleIO API Gateway. - * `protection_domain` (`pulumi.Input[str]`) - The name of the ScaleIO Protection Domain for the configured storage. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. - * `ssl_enabled` (`pulumi.Input[bool]`) - Flag to enable/disable SSL communication with Gateway, default false - * `storage_mode` (`pulumi.Input[str]`) - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - * `storage_pool` (`pulumi.Input[str]`) - The ScaleIO Storage Pool associated with the protection domain. - * `system` (`pulumi.Input[str]`) - The name of the storage system as configured in ScaleIO. - * `volume_name` (`pulumi.Input[str]`) - The name of a volume already created in the ScaleIO system that is associated with this volume source. - - * `storage_class_name` (`pulumi.Input[str]`) - Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. - * `storageos` (`pulumi.Input[dict]`) - StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `read_only` (`pulumi.Input[bool]`) - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - * `secret_ref` (`pulumi.Input[dict]`) - SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. - * `volume_name` (`pulumi.Input[str]`) - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. - * `volume_namespace` (`pulumi.Input[str]`) - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - - * `volume_mode` (`pulumi.Input[str]`) - volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. - * `vsphere_volume` (`pulumi.Input[dict]`) - VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine - * `fs_type` (`pulumi.Input[str]`) - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - * `storage_policy_id` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - * `storage_policy_name` (`pulumi.Input[str]`) - Storage Policy Based Management (SPBM) profile name. - * `volume_path` (`pulumi.Input[str]`) - Path that identifies vSphere volume vmdk - - * `persistent_volume_name` (`pulumi.Input[str]`) - Name of the persistent volume to attach. - - * `status` (`pulumi.Input[dict]`) - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. - * `attach_error` (`pulumi.Input[dict]`) - The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `message` (`pulumi.Input[str]`) - String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. - * `time` (`pulumi.Input[str]`) - Time the error was encountered. - - * `attached` (`pulumi.Input[bool]`) - Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `attachment_metadata` (`pulumi.Input[dict]`) - Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. - * `detach_error` (`pulumi.Input[dict]`) - The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. - - The **metadata** object supports the following: - - * `continue_` (`pulumi.Input[str]`) - continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. - * `remaining_item_count` (`pulumi.Input[float]`) - remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. - * `resource_version` (`pulumi.Input[str]`) - String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - * `self_link` (`pulumi.Input[str]`) - selfLink is a URL representing this object. Populated by the system. Read-only. - - DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) From f82e4e8b0ee3dc6892289a909d7df4e8909da64f Mon Sep 17 00:00:00 2001 From: komal Date: Tue, 16 Jun 2020 17:21:31 -0700 Subject: [PATCH 05/25] overlays --- provider/cmd/pulumi-gen-kubernetes/main.go | 45 +- .../custom_resource.py} | 0 .../pkg/gen/python-templates/helm/__init__.py | 9 - .../gen/python-templates/helm/v2/__init__.py | 6 - .../pkg/gen/python-templates/helm/v2/helm.py | 4 +- .../gen/python-templates/helm/v3/__init__.py | 6 - .../pkg/gen/python-templates/yaml/yaml.tmpl | 203 +++++++ sdk/python/pulumi_kubernetes/__init__.py | 3 +- .../apiextensions/__init__.py | 3 + .../{CustomResource.py => custom_resource.py} | 0 sdk/python/pulumi_kubernetes/helm/__init__.py | 11 +- .../pulumi_kubernetes/helm/v2/__init__.py | 2 +- sdk/python/pulumi_kubernetes/helm/v2/helm.py | 4 +- .../pulumi_kubernetes/helm/v3/__init__.py | 4 +- sdk/python/pulumi_kubernetes/helm/v3/helm.py | 502 ++++++++++++++++++ sdk/python/pulumi_kubernetes/yaml.py | 6 +- 16 files changed, 752 insertions(+), 56 deletions(-) rename provider/pkg/gen/python-templates/{CustomResource.py => apiextensions/custom_resource.py} (100%) delete mode 100755 provider/pkg/gen/python-templates/helm/__init__.py delete mode 100755 provider/pkg/gen/python-templates/helm/v2/__init__.py delete mode 100755 provider/pkg/gen/python-templates/helm/v3/__init__.py create mode 100644 provider/pkg/gen/python-templates/yaml/yaml.tmpl rename sdk/python/pulumi_kubernetes/apiextensions/{CustomResource.py => custom_resource.py} (100%) mode change 100755 => 100644 mode change 100755 => 100644 sdk/python/pulumi_kubernetes/helm/__init__.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/helm/v2/__init__.py mode change 100755 => 100644 sdk/python/pulumi_kubernetes/helm/v3/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/helm/v3/helm.py diff --git a/provider/cmd/pulumi-gen-kubernetes/main.go b/provider/cmd/pulumi-gen-kubernetes/main.go index f87a796d4b..509d738b6f 100644 --- a/provider/cmd/pulumi-gen-kubernetes/main.go +++ b/provider/cmd/pulumi-gen-kubernetes/main.go @@ -175,25 +175,32 @@ func writeNodeJSClient(pkg *schema.Package, outdir, templateDir string) { } func writePythonClient(pkg *schema.Package, outdir string, templateDir string) { - //resources, err := pythongen.LanguageResources("pulumigen", pkg) - //if err != nil { - // panic(err) - //} - // - //templateResources := gen.TemplateResources{} - //for _, resource := range resources { - // r := gen.TemplateResource{ - // Name: resource.Name, - // Package: resource.Package, - // Token: resource.Token, - // } - // templateResources.Resources = append(templateResources.Resources, r) - //} - //sort.Slice(templateResources.Resources, func(i, j int) bool { - // return templateResources.Resources[i].Token < templateResources.Resources[j].Token - //}) - - files, err := pythongen.GeneratePackage("pulumigen", pkg, nil) + resources, err := pythongen.LanguageResources("pulumigen", pkg) + if err != nil { + panic(err) + } + + templateResources := gen.TemplateResources{} + for _, resource := range resources { + r := gen.TemplateResource{ + Name: resource.Name, + Package: resource.Package, + Token: resource.Token, + } + templateResources.Resources = append(templateResources.Resources, r) + } + sort.Slice(templateResources.Resources, func(i, j int) bool { + return templateResources.Resources[i].Token < templateResources.Resources[j].Token + }) + + overlays := map[string][]byte{ + "apiextensions/custom_resource.py": mustLoadFile(filepath.Join(templateDir, "apiextensions", "custom_resource.py")), + "helm/v2/helm.py": mustLoadFile(filepath.Join(templateDir, "helm", "v2", "helm.py")), + "helm/v3/helm.py": mustLoadFile(filepath.Join(templateDir, "helm", "v2", "helm.py")), // v3 support is currently identical to v2 + "yaml.py": mustRenderTemplate(filepath.Join(templateDir, "yaml", "yaml.tmpl"), templateResources), + } + + files, err := pythongen.GeneratePackage("pulumigen", pkg, overlays) if err != nil { panic(err) } diff --git a/provider/pkg/gen/python-templates/CustomResource.py b/provider/pkg/gen/python-templates/apiextensions/custom_resource.py similarity index 100% rename from provider/pkg/gen/python-templates/CustomResource.py rename to provider/pkg/gen/python-templates/apiextensions/custom_resource.py diff --git a/provider/pkg/gen/python-templates/helm/__init__.py b/provider/pkg/gen/python-templates/helm/__init__.py deleted file mode 100755 index 307b18dda0..0000000000 --- a/provider/pkg/gen/python-templates/helm/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Make subpackages available: -__all__ = [ - "v2", - "v3", -] diff --git a/provider/pkg/gen/python-templates/helm/v2/__init__.py b/provider/pkg/gen/python-templates/helm/v2/__init__.py deleted file mode 100755 index 18386fcbd9..0000000000 --- a/provider/pkg/gen/python-templates/helm/v2/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .helm import * diff --git a/provider/pkg/gen/python-templates/helm/v2/helm.py b/provider/pkg/gen/python-templates/helm/v2/helm.py index 4e39da57ca..bfb837300e 100644 --- a/provider/pkg/gen/python-templates/helm/v2/helm.py +++ b/provider/pkg/gen/python-templates/helm/v2/helm.py @@ -10,7 +10,7 @@ from typing import Any, Callable, List, Optional, TextIO, Tuple, Union import pulumi.runtime -from ...version import get_version +from ...utilities import get_version from pulumi_kubernetes.yaml import _parse_yaml_document @@ -283,7 +283,7 @@ def _run_helm_cmd(all_config: Tuple[List[Union[str, bytes]], Any]) -> str: def _is_helm_v3() -> bool: cmd: List[str] = ['helm', 'version', '--short'] - + """ Helm v2 returns version like this: Client: v2.16.7+g5f2584f diff --git a/provider/pkg/gen/python-templates/helm/v3/__init__.py b/provider/pkg/gen/python-templates/helm/v3/__init__.py deleted file mode 100755 index d93feb0127..0000000000 --- a/provider/pkg/gen/python-templates/helm/v3/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from ..v2.helm import * # v3 support is identical to v2 diff --git a/provider/pkg/gen/python-templates/yaml/yaml.tmpl b/provider/pkg/gen/python-templates/yaml/yaml.tmpl new file mode 100644 index 0000000000..36355e87d6 --- /dev/null +++ b/provider/pkg/gen/python-templates/yaml/yaml.tmpl @@ -0,0 +1,203 @@ +# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +from copy import copy +from inspect import getargspec +from typing import Callable, Dict, List, Optional + +import pulumi.runtime +import requests +from pulumi_kubernetes.apiextensions import CustomResource +from . import tables +from .utilities import get_version + + +class ConfigFile(pulumi.ComponentResource): + """ + ConfigFile creates a set of Kubernetes resources from a Kubernetes YAML file. + """ + + resources: pulumi.Output[dict] + """ + Kubernetes resources contained in this ConfigFile. + """ + + def __init__(self, name, file_id, opts=None, transformations=None, resource_prefix=None): + """ + :param str name: A name for a resource. + :param str file_id: Path or a URL that uniquely identifies a file. + :param Optional[pulumi.ResourceOptions] opts: A bag of optional settings that control a resource's behavior. + :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: A set of + transformations to apply to Kubernetes resource definitions before registering with engine. + :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + """ + if not name: + raise TypeError('Missing resource name argument (for URN creation)') + if not isinstance(name, str): + raise TypeError('Expected resource name to be a string') + if opts and not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + + __props__ = dict() + + if resource_prefix: + name = f"{resource_prefix}-{name}" + super(ConfigFile, self).__init__( + "kubernetes:yaml:ConfigFile", + name, + __props__, + opts) + + if file_id.startswith('http://') or file_id.startswith('https://'): + text = _read_url(file_id) + else: + text = _read_file(file_id) + + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(parent=self)) + + # Rather than using the default provider for the following invoke call, use the version specified + # in package.json. + invoke_opts = pulumi.InvokeOptions(version=get_version()) + + __ret__ = pulumi.runtime.invoke('kubernetes:yaml:decode', {'text': text}, invoke_opts).value['result'] + + # Note: Unlike NodeJS, Python requires that we "pull" on our futures in order to get them scheduled for + # execution. In order to do this, we leverage the engine's RegisterResourceOutputs to wait for the + # resolution of all resources that this YAML document created. + self.resources = _parse_yaml_document(__ret__, opts, transformations, resource_prefix) + self.register_outputs({"resources": self.resources}) + + def translate_output_property(self, prop: str) -> str: + return tables._CASING_FORWARD_TABLE.get(prop) or prop + + def translate_input_property(self, prop: str) -> str: + return tables._CASING_BACKWARD_TABLE.get(prop) or prop + + def get_resource(self, group_version_kind, name, namespace=None) -> pulumi.Output[pulumi.CustomResource]: + """ + get_resource returns a resource defined by a built-in Kubernetes group/version/kind and + name. For example: `get_resource("apps/v1/Deployment", "nginx")` + + :param str group_version_kind: Group/Version/Kind of the resource, e.g., `apps/v1/Deployment` + :param str name: Name of the resource to retrieve + :param str namespace: Optional namespace of the resource to retrieve + """ + + # `id` will either be `${name}` or `${namespace}/${name}`. + id = pulumi.Output.from_input(name) + if namespace is not None: + id = pulumi.Output.concat(namespace, '/', name) + + resource_id = id.apply(lambda x: f'{group_version_kind}:{x}') + return resource_id.apply(lambda x: self.resources[x]) + + +def _read_url(url: str) -> str: + response = requests.get(url) + response.raise_for_status() + + return response.text + + +def _read_file(path: str) -> str: + with open(path, 'r') as file: + data = file.read() + + return data + + +def _build_resources_dict(objs: List[pulumi.Output]) -> Dict[pulumi.Output, pulumi.Output]: + return {key: value for key, value in objs} + + +def _parse_yaml_document( + objects, opts: Optional[pulumi.ResourceOptions] = None, + transformations: Optional[List[Callable]] = None, + resource_prefix: Optional[str] = None +) -> pulumi.Output: + objs = [] + for obj in objects: + file_objects = _parse_yaml_object(obj, opts, transformations, resource_prefix) + for file_object in file_objects: + objs.append(file_object) + + return pulumi.Output.all(*objs).apply(_build_resources_dict) + + +def _parse_yaml_object( + obj, opts: Optional[pulumi.ResourceOptions] = None, + transformations: Optional[List[Callable]] = None, + resource_prefix: Optional[str] = None +) -> [pulumi.Output]: + """ + _parse_yaml_object parses a YAML manifest object, and creates the specified resources. + """ + + if not obj: + return [] + + # Create a copy of opts to pass into potentially mutating transforms that will be applied to this resource. + if opts is not None: + opts = copy(opts) + else: + opts = {} + + # Allow users to change API objects before any validation. + if transformations is not None: + for t in transformations: + if len(getargspec(t)[0]) == 2: + t(obj, opts) + else: + t(obj) + + if "kind" not in obj or "apiVersion" not in obj: + raise Exception("Kubernetes resources require a kind and apiVersion: {}".format(json.dumps(obj))) + + api_version = obj["apiVersion"] + kind = obj["kind"] + + # Don't pass these items as kwargs to the resource classes. + del obj['apiVersion'] + del obj['kind'] + + if kind.endswith("List"): + objs = [] + if "items" in obj: + for item in obj["items"]: + objs += _parse_yaml_object(item, opts, transformations, resource_prefix) + return objs + + if "metadata" not in obj or "name" not in obj["metadata"]: + raise Exception("YAML object does not have a .metadata.name: {}/{} {}".format( + api_version, kind, json.dumps(obj))) + + # Convert obj keys to Python casing + for key in list(obj.keys()): + new_key = tables._CASING_FORWARD_TABLE.get(key) or key + if new_key != key: + obj[new_key] = obj.pop(key) + + metadata = obj["metadata"] + spec = obj.get("spec") + identifier: pulumi.Output = pulumi.Output.from_input(metadata["name"]) + if "namespace" in metadata: + identifier = pulumi.Output.from_input(metadata).apply( + lambda metadata: f"{metadata['namespace']}/{metadata['name']}") + if resource_prefix: + pulumi.Output.from_input(identifier).apply( + lambda identifier: f"{resource_prefix}-{identifier}") + + gvk = f"{api_version}/{kind}" +{{- range .Resources}} + if gvk == "{{.GVK}}": + # Import locally to avoid name collisions. + from pulumi_kubernetes.{{.Package}} import {{.Name}} + return [identifier.apply( + lambda x: (f"{{.GVK}}:{x}", + {{.Name}}(f"{x}", opts, **obj)))] +{{- end}} + return [identifier.apply( + lambda x: (f"{gvk}:{x}", + CustomResource(f"{x}", api_version, kind, spec, metadata, opts)))] diff --git a/sdk/python/pulumi_kubernetes/__init__.py b/sdk/python/pulumi_kubernetes/__init__.py index 02fcbd487f..a3cb73b53b 100644 --- a/sdk/python/pulumi_kubernetes/__init__.py +++ b/sdk/python/pulumi_kubernetes/__init__.py @@ -4,10 +4,11 @@ import importlib # Make subpackages available: -__all__ = ['admissionregistration', 'apiextensions', 'apiregistration', 'apps', 'auditregistration', 'authentication', 'authorization', 'autoscaling', 'batch', 'certificates', 'coordination', 'core', 'discovery', 'events', 'extensions', 'flowcontrol', 'meta', 'networking', 'node', 'policy', 'rbac', 'scheduling', 'settings', 'storage'] +__all__ = ['admissionregistration', 'apiextensions', 'apiregistration', 'apps', 'auditregistration', 'authentication', 'authorization', 'autoscaling', 'batch', 'certificates', 'coordination', 'core', 'discovery', 'events', 'extensions', 'flowcontrol', 'helm', 'meta', 'networking', 'node', 'policy', 'rbac', 'scheduling', 'settings', 'storage'] for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') # Export this package's modules as members: from .provider import * +from .yaml import * diff --git a/sdk/python/pulumi_kubernetes/apiextensions/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/__init__.py index 4c1e851a21..a0299ee075 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/__init__.py @@ -8,3 +8,6 @@ for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') + +# Export this package's modules as members: +from .custom_resource import * diff --git a/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py b/sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py old mode 100755 new mode 100644 similarity index 100% rename from sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py rename to sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py diff --git a/sdk/python/pulumi_kubernetes/helm/__init__.py b/sdk/python/pulumi_kubernetes/helm/__init__.py old mode 100755 new mode 100644 index 307b18dda0..4c217c1e5c --- a/sdk/python/pulumi_kubernetes/helm/__init__.py +++ b/sdk/python/pulumi_kubernetes/helm/__init__.py @@ -1,9 +1,10 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** +import importlib # Make subpackages available: -__all__ = [ - "v2", - "v3", -] +__all__ = ['v2', 'v3'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/helm/v2/__init__.py b/sdk/python/pulumi_kubernetes/helm/v2/__init__.py old mode 100755 new mode 100644 index 18386fcbd9..181dde1ce6 --- a/sdk/python/pulumi_kubernetes/helm/v2/__init__.py +++ b/sdk/python/pulumi_kubernetes/helm/v2/__init__.py @@ -1,5 +1,5 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: diff --git a/sdk/python/pulumi_kubernetes/helm/v2/helm.py b/sdk/python/pulumi_kubernetes/helm/v2/helm.py index 4e39da57ca..bfb837300e 100644 --- a/sdk/python/pulumi_kubernetes/helm/v2/helm.py +++ b/sdk/python/pulumi_kubernetes/helm/v2/helm.py @@ -10,7 +10,7 @@ from typing import Any, Callable, List, Optional, TextIO, Tuple, Union import pulumi.runtime -from ...version import get_version +from ...utilities import get_version from pulumi_kubernetes.yaml import _parse_yaml_document @@ -283,7 +283,7 @@ def _run_helm_cmd(all_config: Tuple[List[Union[str, bytes]], Any]) -> str: def _is_helm_v3() -> bool: cmd: List[str] = ['helm', 'version', '--short'] - + """ Helm v2 returns version like this: Client: v2.16.7+g5f2584f diff --git a/sdk/python/pulumi_kubernetes/helm/v3/__init__.py b/sdk/python/pulumi_kubernetes/helm/v3/__init__.py old mode 100755 new mode 100644 index d93feb0127..181dde1ce6 --- a/sdk/python/pulumi_kubernetes/helm/v3/__init__.py +++ b/sdk/python/pulumi_kubernetes/helm/v3/__init__.py @@ -1,6 +1,6 @@ # coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from ..v2.helm import * # v3 support is identical to v2 +from .helm import * diff --git a/sdk/python/pulumi_kubernetes/helm/v3/helm.py b/sdk/python/pulumi_kubernetes/helm/v3/helm.py new file mode 100644 index 0000000000..bfb837300e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/helm/v3/helm.py @@ -0,0 +1,502 @@ +# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import os.path +import shutil +import subprocess +import re +from tempfile import mkdtemp, mkstemp +from typing import Any, Callable, List, Optional, TextIO, Tuple, Union + +import pulumi.runtime +from ...utilities import get_version +from pulumi_kubernetes.yaml import _parse_yaml_document + + +class FetchOpts: + """ + FetchOpts is a bag of configuration options to customize the fetching of the Helm chart. + """ + + version: Optional[pulumi.Input[str]] + """ + Specific version of a chart. If unset, the latest version is fetched. + """ + + ca_file: Optional[pulumi.Input[str]] + """ + Verify certificates of HTTPS-enabled servers using this CA bundle. + """ + + cert_file: Optional[pulumi.Input[str]] + """ + Identify HTTPS client using this SSL certificate file. + """ + + key_file: Optional[pulumi.Input[str]] + """ + Identify HTTPS client using this SSL key file. + """ + + destination: Optional[pulumi.Input[str]] + """ + Location to write the chart. If this and [tardir] are specified, tardir is appended + to this (default "."). + """ + + keyring: Optional[pulumi.Input[str]] + """ + Keyring containing public keys (default "/Users/alex/.gnupg/pubring.gpg"). + """ + + password: Optional[pulumi.Input[str]] + """ + Chart repository password. + """ + + repo: Optional[pulumi.Input[str]] + """ + Chart repository url where to locate the requested chart. + """ + + untar_dir: Optional[pulumi.Input[str]] + """ + If [untar] is specified, this flag specifies the name of the directory into which + the chart is expanded (default "."). + """ + + username: Optional[pulumi.Input[str]] + """ + Chart repository username. + """ + + home: Optional[pulumi.Input[str]] + """ + Location of your Helm config. Overrides $HELM_HOME (default "/Users/alex/.helm"). + """ + + devel: Optional[pulumi.Input[bool]] + """ + Use development versions, too. Equivalent to version '>0.0.0-0'. If [version] is set, + this is ignored. + """ + + prov: Optional[pulumi.Input[bool]] + """ + Fetch the provenance file, but don't perform verification. + """ + + untar: Optional[pulumi.Input[bool]] + """ + If set to false, will leave the chart as a tarball after downloading. + """ + + verify: Optional[pulumi.Input[bool]] + """ + Verify the package against its signature. + """ + + def __init__(self, version=None, ca_file=None, cert_file=None, key_file=None, destination=None, keyring=None, + password=None, repo=None, untar_dir=None, username=None, home=None, devel=None, prov=None, + untar=None, verify=None): + """ + :param Optional[pulumi.Input[str]] version: Specific version of a chart. If unset, + the latest version is fetched. + :param Optional[pulumi.Input[str]] ca_file: Verify certificates of HTTPS-enabled + servers using this CA bundle. + :param Optional[pulumi.Input[str]] cert_file: Identify HTTPS client using this SSL + certificate file. + :param Optional[pulumi.Input[str]] key_file: Identify HTTPS client using this SSL + key file. + :param Optional[pulumi.Input[str]] destination: Location to write the chart. + If this and [tardir] are specified, tardir is appended to this (default "."). + :param Optional[pulumi.Input[str]] keyring: Keyring containing public keys + (default "/Users//.gnupg/pubring.gpg"). + :param Optional[pulumi.Input[str]] password: Chart repository password. + :param Optional[pulumi.Input[str]] repo: Chart repository url where to locate + the requested chart. + :param Optional[pulumi.Input[str]] untar_dir: If [untar] is specified, this flag + specifies the name of the directory into which the chart is + expanded (default "."). + :param Optional[pulumi.Input[str]] username: Chart repository username. + :param Optional[pulumi.Input[str]] home: Location of your Helm config. Overrides + $HELM_HOME (default "/Users//.helm"). + :param Optional[pulumi.Input[bool]] devel: Use development versions, too. + Equivalent to version '>0.0.0-0'. If [version] is set, this is ignored. + :param Optional[pulumi.Input[bool]] prov: Fetch the provenance file, but don't + perform verification. + :param Optional[pulumi.Input[bool]] untar: If set to false, will leave the + chart as a tarball after downloading. + :param Optional[pulumi.Input[bool]] verify: Verify the package against its signature. + """ + self.version = version + self.ca_file = ca_file + self.cert_file = cert_file + self.key_file = key_file + self.destination = destination + self.keyring = keyring + self.password = password + self.repo = repo + self.untar_dir = untar_dir + self.username = username + self.home = home + self.devel = devel + self.prov = prov + self.untar = untar + self.verify = verify + + +class BaseChartOpts: + """ + BaseChartOpts is a bag of common configuration options for a Helm chart. + """ + + namespace: Optional[pulumi.Input[str]] + """ + Optional namespace to install chart resources into. + """ + + values: Optional[pulumi.Inputs] + """ + Optional overrides for chart values. + """ + + transformations: Optional[List[Callable]] + """ + Optional list of transformations to apply to resources that will be created by this chart prior to + creation. Allows customization of the chart behaviour without directly modifying the chart itself. + """ + + resource_prefix: Optional[str] + """ + Optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + """ + + def __init__(self, namespace=None, values=None, transformations=None, resource_prefix=None): + """ + :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. + :param Optional[pulumi.Inputs] values: Optional overrides for chart values. + :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list + of transformations to apply to resources that will be created by this chart prior to creation. + Allows customization of the chart behaviour without directly modifying the chart itself. + :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + """ + self.namespace = namespace + self.values = values + self.transformations = transformations + self.resource_prefix = resource_prefix + + +class ChartOpts(BaseChartOpts): + """ + ChartOpts is a bag of configuration options for a remote Helm chart. + """ + + chart: pulumi.Input[str] + """ + The name of the chart to deploy. If `repo` is provided, this chart name will be prefixed by the repo name. + Example: repo: "stable", chart: "nginx-ingress" -> "stable/nginx-ingress" + Example: chart: "stable/nginx-ingress" -> "stable/nginx-ingress" + """ + + repo: Optional[pulumi.Input[str]] + """ + The repository name of the chart to deploy. + Example: "stable" + """ + + version: Optional[pulumi.Input[str]] + """ + The version of the chart to deploy. If not provided, the latest version will be deployed. + """ + + fetch_opts: Optional[pulumi.Input[FetchOpts]] + """ + Additional options to customize the fetching of the Helm chart. + """ + + def __init__(self, chart, namespace=None, values=None, transformations=None, resource_prefix=None, repo=None, + version=None, fetch_opts=None): + """ + :param pulumi.Input[str] chart: The name of the chart to deploy. If `repo` is provided, this chart name + will be prefixed by the repo name. + Example: repo: "stable", chart: "nginx-ingress" -> "stable/nginx-ingress" + Example: chart: "stable/nginx-ingress" -> "stable/nginx-ingress" + :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. + :param Optional[pulumi.Inputs] values: Optional overrides for chart values. + :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list of + transformations to apply to resources that will be created by this chart prior to creation. + Allows customization of the chart behaviour without directly modifying the chart itself. + :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + :param Optional[pulumi.Input[str]] repo: The repository name of the chart to deploy. + Example: "stable" + :param Optional[pulumi.Input[str]] version: The version of the chart to deploy. If not provided, + the latest version will be deployed. + :param Optional[pulumi.Input[FetchOpts]] fetch_opts: Additional options to customize the + fetching of the Helm chart. + """ + super(ChartOpts, self).__init__(namespace, values, transformations, resource_prefix) + self.chart = chart + self.repo = repo + self.version = version + self.fetch_opts = fetch_opts + + +class LocalChartOpts(BaseChartOpts): + """ + LocalChartOpts is a bag of configuration options for a local Helm chart. + """ + + path: pulumi.Input[str] + """ + The path to the chart directory which contains the `Chart.yaml` file. + """ + + def __init__(self, path, namespace=None, values=None, transformations=None, resource_prefix=None): + """ + :param pulumi.Input[str] path: The path to the chart directory which contains the + `Chart.yaml` file. + :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. + :param Optional[pulumi.Inputs] values: Optional overrides for chart values. + :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list of + transformations to apply to resources that will be created by this chart prior to creation. + Allows customization of the chart behaviour without directly modifying the chart itself. + :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + """ + + super(LocalChartOpts, self).__init__(namespace, values, transformations, resource_prefix) + self.path = path + + +def _run_helm_cmd(all_config: Tuple[List[Union[str, bytes]], Any]) -> str: + cmd, _ = all_config + + output = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, check=True) + yaml_str: str = output.stdout + return yaml_str + +def _is_helm_v3() -> bool: + + cmd: List[str] = ['helm', 'version', '--short'] + + """ + Helm v2 returns version like this: + Client: v2.16.7+g5f2584f + Helm v3 returns a version like this: + v3.1.2+gd878d4d + --include-crds is available in helm v3.1+ so check for a regex matching that version + """ + output = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, universal_newlines=True, check=True) + version: str = output.stdout + regexp = re.compile(r'^v3\.[1-9]') + return(bool(regexp.search(version))) + + +def _write_override_file(all_config: Tuple[TextIO, str]) -> None: + file, data = all_config + + file.write(data) + file.flush() + + +def _cleanup_temp_dir(all_config: Tuple[TextIO, Union[bytes, str], Any]) -> None: + file, chart_dir, _ = all_config + + file.close() + shutil.rmtree(chart_dir) + + +def _parse_chart(all_config: Tuple[str, Union[ChartOpts, LocalChartOpts], pulumi.ResourceOptions]) -> pulumi.Output: + release_name, config, opts = all_config + + # Create temporary directory and file to hold chart data and override values. + # Note: We're intentionally using the lower-level APIs here because the async Outputs are being handled in + # a different scope, which was causing the temporary files/directory to be deleted before they were referenced + # in the Output handlers. We manually clean these up once we're done with another async handler that depends + # on the result of the operations. + overrides, overrides_filename = mkstemp() + chart_dir = mkdtemp() + + if isinstance(config, ChartOpts): + if config.repo and 'http' in config.repo: + raise ValueError('`repo` specifies the name of the Helm chart repo.' + 'Use `fetch_opts.repo` to specify a URL.') + chart_to_fetch = f'{config.repo}/{config.chart}' if config.repo else config.chart + + # Configure fetch options. + fetch_opts_dict = {} + if config.fetch_opts is not None: + fetch_opts_dict = {k: v for k, v in vars(config.fetch_opts).items() if v is not None} + fetch_opts_dict["destination"] = chart_dir + if config.version is not None: + fetch_opts_dict["version"] = config.version + fetch_opts = FetchOpts(**fetch_opts_dict) + + # Fetch the chart. + _fetch(chart_to_fetch, fetch_opts) + # Sort the directories into alphabetical order, and choose the first + fetched_chart_name = sorted(os.listdir(chart_dir), key=str.lower)[0] + chart = os.path.join(chart_dir, fetched_chart_name) + else: + chart = config.path + + default_values = os.path.join(chart, 'values.yaml') + + # Write overrides file. + vals = config.values if config.values is not None else {} + data = pulumi.Output.from_input(vals).apply(lambda x: json.dumps(x)) + file = open(overrides, 'w') + pulumi.Output.all(file, data).apply(_write_override_file) + + namespace_arg = ['--namespace', config.namespace] if config.namespace else [] + crd_arg = [ '--include-crds' ] if _is_helm_v3() else [] + + # Use 'helm template' to create a combined YAML manifest. + cmd = ['helm', 'template', chart, '--name-template', release_name, + '--values', default_values, '--values', overrides_filename] + cmd.extend(namespace_arg) + cmd.extend(crd_arg) + + chart_resources = pulumi.Output.all(cmd, data).apply(_run_helm_cmd) + + # Rather than using the default provider for the following invoke call, use the version specified + # in package.json. + invoke_opts = pulumi.InvokeOptions(version=get_version()) + + objects = chart_resources.apply( + lambda text: pulumi.runtime.invoke('kubernetes:yaml:decode', { + 'text': text, 'defaultNamespace': config.namespace}, invoke_opts).value['result']) + + # Parse the manifest and create the specified resources. + resources = objects.apply( + lambda objects: _parse_yaml_document(objects, opts, config.transformations)) + + pulumi.Output.all(file, chart_dir, resources).apply(_cleanup_temp_dir) + return resources + + +def _fetch(chart: str, opts: FetchOpts) -> None: + cmd: List[str] = ['helm', 'fetch', chart] + + # Untar by default. + if opts.untar is not False: + cmd.append('--untar') + + env = os.environ + # Helm v3 removed the `--home` flag, so we must use an env var instead. + if opts.home: + env['HELM_HOME'] = opts.home + + if opts.version: + cmd.extend(['--version', opts.version]) + if opts.ca_file: + cmd.extend(['--ca-file', opts.ca_file]) + if opts.cert_file: + cmd.extend(['--cert-file', opts.cert_file]) + if opts.key_file: + cmd.extend(['--key-file', opts.key_file]) + if opts.destination: + cmd.extend(['--destination', opts.destination]) + if opts.keyring: + cmd.extend(['--keyring', opts.keyring]) + if opts.password: + cmd.extend(['--password', opts.password]) + if opts.repo: + cmd.extend(['--repo', opts.repo]) + if opts.untar_dir: + cmd.extend(['--untardir', opts.untar_dir]) + if opts.username: + cmd.extend(['--username', opts.username]) + if opts.devel: + cmd.append('--devel') + if opts.prov: + cmd.append('--prov') + if opts.verify: + cmd.append('--verify') + + subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, check=True, env=env) + + +class Chart(pulumi.ComponentResource): + """ + Chart is a component representing a collection of resources described by an arbitrary Helm + Chart. The Chart can be fetched from any source that is accessible to the `helm` command + line. Values in the `values.yml` file can be overridden using `ChartOpts.values` (equivalent + to `--set` or having multiple `values.yml` files). Objects can be transformed arbitrarily by + supplying callbacks to `ChartOpts.transformations`. + + Chart does not use Tiller. The Chart specified is copied and expanded locally; the semantics + are equivalent to running `helm template` and then using Pulumi to manage the resulting YAML + manifests. Any values that would be retrieved in-cluster are assigned fake values, and + none of Tiller's server-side validity testing is executed. + """ + + resources: pulumi.Output[dict] + """ + Kubernetes resources contained in this Chart. + """ + + def __init__(self, release_name, config, opts=None): + """ + Create an instance of the specified Helm chart. + + :param str release_name: Name of the Chart (e.g., nginx-ingress). + :param Union[ChartOpts, LocalChartOpts] config: Configuration options for the Chart. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + if not release_name: + raise TypeError('Missing release name argument') + if not isinstance(release_name, str): + raise TypeError('Expected release name to be a string') + if config and not isinstance(config, ChartOpts) and not isinstance(config, LocalChartOpts): + raise TypeError('Expected config to be a ChartOpts or LocalChartOpts instance') + if opts and not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + + __props__ = dict() + + if config.resource_prefix: + release_name = f"{config.resource_prefix}-{release_name}" + + super(Chart, self).__init__( + "kubernetes:helm.sh/v2:Chart", + release_name, + __props__, + opts) + + if opts is not None: + opts.parent = self + else: + opts = pulumi.ResourceOptions(parent=self) + + all_config = pulumi.Output.from_input((release_name, config, opts)) + + # Note: Unlike NodeJS, Python requires that we "pull" on our futures in order to get them scheduled for + # execution. In order to do this, we leverage the engine's RegisterResourceOutputs to wait for the + # resolution of all resources that this Helm chart created. + self.resources = all_config.apply(_parse_chart) + self.register_outputs({"resources": self.resources}) + + def get_resource(self, group_version_kind, name, namespace=None) -> pulumi.Output[pulumi.CustomResource]: + """ + get_resource returns a resource defined by a built-in Kubernetes group/version/kind and + name. For example: `get_resource("apps/v1/Deployment", "nginx")` + + :param str group_version_kind: Group/Version/Kind of the resource, e.g., `apps/v1/Deployment` + :param str name: Name of the resource to retrieve + :param str namespace: Optional namespace of the resource to retrieve + """ + + # `id` will either be `${name}` or `${namespace}/${name}`. + id = pulumi.Output.from_input(name) + if namespace is not None: + id = pulumi.Output.concat(namespace, '/', name) + + resource_id = id.apply(lambda x: f'{group_version_kind}:{x}') + return resource_id.apply(lambda x: self.resources[x]) diff --git a/sdk/python/pulumi_kubernetes/yaml.py b/sdk/python/pulumi_kubernetes/yaml.py index 8dae41d44a..743795c6ba 100644 --- a/sdk/python/pulumi_kubernetes/yaml.py +++ b/sdk/python/pulumi_kubernetes/yaml.py @@ -10,7 +10,7 @@ import requests from pulumi_kubernetes.apiextensions import CustomResource from . import tables -from .version import get_version +from .utilities import get_version class ConfigFile(pulumi.ComponentResource): @@ -946,11 +946,11 @@ def _parse_yaml_object( return [identifier.apply( lambda x: (f"flowcontrol.apiserver.k8s.io/v1alpha1/PriorityLevelConfigurationList:{x}", PriorityLevelConfigurationList(f"{x}", opts, **obj)))] - if gvk == "v1/Status": + if gvk == "meta/v1/Status": # Import locally to avoid name collisions. from pulumi_kubernetes.meta.v1 import Status return [identifier.apply( - lambda x: (f"v1/Status:{x}", + lambda x: (f"meta/v1/Status:{x}", Status(f"{x}", opts, **obj)))] if gvk == "networking.k8s.io/v1/NetworkPolicy": # Import locally to avoid name collisions. From 8fb92aa0098f91f413035ef79256b2705ce6cf88 Mon Sep 17 00:00:00 2001 From: komal Date: Thu, 18 Jun 2020 10:57:17 -0700 Subject: [PATCH 06/25] delete unused files --- provider/pkg/gen/python-templates/README.md | 14 -- .../gen/python-templates/casing.py.mustache | 13 -- .../group__init__.py.mustache | 10 - .../pkg/gen/python-templates/kind.py.mustache | 132 ----------- .../python-templates/root__init__.py.mustache | 20 -- .../version__init__.py.mustache | 8 - .../pkg/gen/python-templates/yaml.py.mustache | 207 ------------------ provider/pkg/gen/python.go | 178 --------------- 8 files changed, 582 deletions(-) delete mode 100644 provider/pkg/gen/python-templates/README.md delete mode 100644 provider/pkg/gen/python-templates/casing.py.mustache delete mode 100644 provider/pkg/gen/python-templates/group__init__.py.mustache delete mode 100644 provider/pkg/gen/python-templates/kind.py.mustache delete mode 100644 provider/pkg/gen/python-templates/root__init__.py.mustache delete mode 100644 provider/pkg/gen/python-templates/version__init__.py.mustache delete mode 100644 provider/pkg/gen/python-templates/yaml.py.mustache delete mode 100644 provider/pkg/gen/python.go diff --git a/provider/pkg/gen/python-templates/README.md b/provider/pkg/gen/python-templates/README.md deleted file mode 100644 index 75c0bec21f..0000000000 --- a/provider/pkg/gen/python-templates/README.md +++ /dev/null @@ -1,14 +0,0 @@ -The Kubernetes provider package offers support for all Kubernetes resources and their properties. -Resources are exposed as types from modules based on Kubernetes API groups such as `apps`, `core`, -`rbac`, and `storage`, among many others. Additionally, support for deploying Helm charts (`helm`) -and YAML files (`yaml`) is available in this package. Using this package allows you to -programmatically declare instances of any Kubernetes resources and any supported resource version -using infrastructure as code, which Pulumi then uses to drive the Kubernetes API. - -If this is your first time using this package, these two resources may be helpful: - -* [Kubernetes Getting Started Guide](https://www.pulumi.com/docs/quickstart/kubernetes/): Get up and running quickly. -* [Kubernetes Pulumi Setup Documentation](https://www.pulumi.com/docs/quickstart/kubernetes/configure/): How to configure Pulumi - for use with your Kubernetes cluster. - -Use the navigation below to see detailed documentation for each of the supported Kubernetes resources. diff --git a/provider/pkg/gen/python-templates/casing.py.mustache b/provider/pkg/gen/python-templates/casing.py.mustache deleted file mode 100644 index c9d057a928..0000000000 --- a/provider/pkg/gen/python-templates/casing.py.mustache +++ /dev/null @@ -1,13 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -_CASING_FORWARD_TABLE = { -{{#properties}} - "{{name}}": "{{casedName}}", -{{/properties}} -} -_CASING_BACKWARD_TABLE = { -{{#properties}} - "{{casedName}}": "{{name}}", -{{/properties}} -} diff --git a/provider/pkg/gen/python-templates/group__init__.py.mustache b/provider/pkg/gen/python-templates/group__init__.py.mustache deleted file mode 100644 index 0b2d034174..0000000000 --- a/provider/pkg/gen/python-templates/group__init__.py.mustache +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Make subpackages available: -__all__ = [ - {{#Versions}} - "{{Version}}", - {{/Versions}} -] diff --git a/provider/pkg/gen/python-templates/kind.py.mustache b/provider/pkg/gen/python-templates/kind.py.mustache deleted file mode 100644 index e0cc54ea67..0000000000 --- a/provider/pkg/gen/python-templates/kind.py.mustache +++ /dev/null @@ -1,132 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -from typing import Optional - -import pulumi -import pulumi.runtime -from pulumi import Input, ResourceOptions - -from ... import tables, version - - -class {{Kind}}(pulumi.CustomResource): - """ - {{{DeprecationComment}}}{{{Comment}}}{{{PulumiComment}}} - """ - - apiVersion: pulumi.Output[str] - """ - 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/api-conventions.md#resources - """ - - kind: pulumi.Output[str] - """ - 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/api-conventions.md#types-kinds - """ - - {{#Properties}} - {{LanguageName}}: {{{ProviderType}}} - {{{Comment}}} - - {{/Properties}} - def __init__(self, resource_name, opts=None{{#RequiredInputProperties}}, {{LanguageName}}=None{{/RequiredInputProperties}}{{#OptionalInputProperties}}, {{LanguageName}}=None{{/OptionalInputProperties}}, __name__=None, __opts__=None): - """ - Create a {{Kind}} resource with the given unique name, arguments, and options. - - :param str resource_name: The _unique_ name of the resource. - :param pulumi.ResourceOptions opts: A bag of options that control this resource's behavior. - {{#RequiredInputProperties}} - :param {{{InputsAPIType}}} {{LanguageName}}: {{{PythonConstructorComment}}} - {{/RequiredInputProperties}} - {{#OptionalInputProperties}} - :param {{{InputsAPIType}}} {{LanguageName}}: {{{PythonConstructorComment}}} - {{/OptionalInputProperties}} - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = '{{DefaultAPIVersion}}' - __props__['kind'] = '{{Kind}}' - {{#RequiredInputProperties}} - if {{LanguageName}} is None: - raise TypeError('Missing required property {{LanguageName}}') - __props__['{{Name}}'] = {{DefaultValue}} - {{/RequiredInputProperties}} - {{#OptionalInputProperties}} - __props__['{{Name}}'] = {{DefaultValue}} - {{/OptionalInputProperties}} - - __props__['status'] = None - - {{#AdditionalSecretOutputsPresent}} - additional_secret_outputs = [ - {{#AdditionalSecretOutputs}} - "{{.}}", - {{/AdditionalSecretOutputs}} - ] - {{/AdditionalSecretOutputsPresent}} - {{#AliasesPresent}} - parent = opts.parent if opts and opts.parent else None - aliases = [ - {{#Aliases}} - pulumi.Alias(type_="{{.}}"), - {{/Aliases}} - ] - {{/AliasesPresent}} - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions( - version=version.get_version(), - {{#AdditionalSecretOutputsPresent}} - additional_secret_outputs=additional_secret_outputs, - {{/AdditionalSecretOutputsPresent}} - {{#AliasesPresent}} - aliases=aliases, - {{/AliasesPresent}} - )) - - super({{Kind}}, self).__init__( - "kubernetes:{{URNAPIVersion}}:{{Kind}}", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get the state of an existing `{{Kind}}` resource, as identified by `id`. - The ID is of the form `[namespace]/[name]`; if `[namespace]` is omitted, - then (per Kubernetes convention) the ID becomes `default/[name]`. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form `[namespace]/[name]` or `[name]`. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return {{Kind}}(resource_name, opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop diff --git a/provider/pkg/gen/python-templates/root__init__.py.mustache b/provider/pkg/gen/python-templates/root__init__.py.mustache deleted file mode 100644 index 054f0ac358..0000000000 --- a/provider/pkg/gen/python-templates/root__init__.py.mustache +++ /dev/null @@ -1,20 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Make subpackages available: -__all__ = [ - {{#Groups}} - {{#HasTopLevelKinds}} - "{{Group}}", - {{/HasTopLevelKinds}} - {{/Groups}} - "helm", - "provider", - "yaml", -] - -# Expose the provider directly. -from .provider import Provider - -from .yaml import ConfigFile diff --git a/provider/pkg/gen/python-templates/version__init__.py.mustache b/provider/pkg/gen/python-templates/version__init__.py.mustache deleted file mode 100644 index f72dcb152c..0000000000 --- a/provider/pkg/gen/python-templates/version__init__.py.mustache +++ /dev/null @@ -1,8 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -{{#TopLevelKinds}} -from .{{Kind}} import ({{Kind}}) -{{/TopLevelKinds}} diff --git a/provider/pkg/gen/python-templates/yaml.py.mustache b/provider/pkg/gen/python-templates/yaml.py.mustache deleted file mode 100644 index a20378d710..0000000000 --- a/provider/pkg/gen/python-templates/yaml.py.mustache +++ /dev/null @@ -1,207 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -from copy import copy -from inspect import getargspec -from typing import Callable, Dict, List, Optional - -import pulumi.runtime -import requests -from pulumi_kubernetes.apiextensions import CustomResource -from . import tables -from .version import get_version - - -class ConfigFile(pulumi.ComponentResource): - """ - ConfigFile creates a set of Kubernetes resources from a Kubernetes YAML file. - """ - - resources: pulumi.Output[dict] - """ - Kubernetes resources contained in this ConfigFile. - """ - - def __init__(self, name, file_id, opts=None, transformations=None, resource_prefix=None): - """ - :param str name: A name for a resource. - :param str file_id: Path or a URL that uniquely identifies a file. - :param Optional[pulumi.ResourceOptions] opts: A bag of optional settings that control a resource's behavior. - :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: A set of - transformations to apply to Kubernetes resource definitions before registering with engine. - :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. - Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". - """ - if not name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - if resource_prefix: - name = f"{resource_prefix}-{name}" - super(ConfigFile, self).__init__( - "kubernetes:yaml:ConfigFile", - name, - __props__, - opts) - - if file_id.startswith('http://') or file_id.startswith('https://'): - text = _read_url(file_id) - else: - text = _read_file(file_id) - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(parent=self)) - - # Rather than using the default provider for the following invoke call, use the version specified - # in package.json. - invoke_opts = pulumi.InvokeOptions(version=get_version()) - - __ret__ = pulumi.runtime.invoke('kubernetes:yaml:decode', {'text': text}, invoke_opts).value['result'] - - # Note: Unlike NodeJS, Python requires that we "pull" on our futures in order to get them scheduled for - # execution. In order to do this, we leverage the engine's RegisterResourceOutputs to wait for the - # resolution of all resources that this YAML document created. - self.resources = _parse_yaml_document(__ret__, opts, transformations, resource_prefix) - self.register_outputs({"resources": self.resources}) - - def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop - - def get_resource(self, group_version_kind, name, namespace=None) -> pulumi.Output[pulumi.CustomResource]: - """ - get_resource returns a resource defined by a built-in Kubernetes group/version/kind and - name. For example: `get_resource("apps/v1/Deployment", "nginx")` - - :param str group_version_kind: Group/Version/Kind of the resource, e.g., `apps/v1/Deployment` - :param str name: Name of the resource to retrieve - :param str namespace: Optional namespace of the resource to retrieve - """ - - # `id` will either be `${name}` or `${namespace}/${name}`. - id = pulumi.Output.from_input(name) - if namespace is not None: - id = pulumi.Output.concat(namespace, '/', name) - - resource_id = id.apply(lambda x: f'{group_version_kind}:{x}') - return resource_id.apply(lambda x: self.resources[x]) - - -def _read_url(url: str) -> str: - response = requests.get(url) - response.raise_for_status() - - return response.text - - -def _read_file(path: str) -> str: - with open(path, 'r') as file: - data = file.read() - - return data - - -def _build_resources_dict(objs: List[pulumi.Output]) -> Dict[pulumi.Output, pulumi.Output]: - return {key: value for key, value in objs} - - -def _parse_yaml_document( - objects, opts: Optional[pulumi.ResourceOptions] = None, - transformations: Optional[List[Callable]] = None, - resource_prefix: Optional[str] = None -) -> pulumi.Output: - objs = [] - for obj in objects: - file_objects = _parse_yaml_object(obj, opts, transformations, resource_prefix) - for file_object in file_objects: - objs.append(file_object) - - return pulumi.Output.all(*objs).apply(_build_resources_dict) - - -def _parse_yaml_object( - obj, opts: Optional[pulumi.ResourceOptions] = None, - transformations: Optional[List[Callable]] = None, - resource_prefix: Optional[str] = None -) -> [pulumi.Output]: - """ - _parse_yaml_object parses a YAML manifest object, and creates the specified resources. - """ - - if not obj: - return [] - - # Create a copy of opts to pass into potentially mutating transforms that will be applied to this resource. - if opts is not None: - opts = copy(opts) - else: - opts = {} - - # Allow users to change API objects before any validation. - if transformations is not None: - for t in transformations: - if len(getargspec(t)[0]) == 2: - t(obj, opts) - else: - t(obj) - - if "kind" not in obj or "apiVersion" not in obj: - raise Exception("Kubernetes resources require a kind and apiVersion: {}".format(json.dumps(obj))) - - api_version = obj["apiVersion"] - kind = obj["kind"] - - # Don't pass these items as kwargs to the resource classes. - del obj['apiVersion'] - del obj['kind'] - - if kind.endswith("List"): - objs = [] - if "items" in obj: - for item in obj["items"]: - objs += _parse_yaml_object(item, opts, transformations, resource_prefix) - return objs - - if "metadata" not in obj or "name" not in obj["metadata"]: - raise Exception("YAML object does not have a .metadata.name: {}/{} {}".format( - api_version, kind, json.dumps(obj))) - - # Convert obj keys to Python casing - for key in list(obj.keys()): - new_key = tables._CASING_FORWARD_TABLE.get(key) or key - if new_key != key: - obj[new_key] = obj.pop(key) - - metadata = obj["metadata"] - spec = obj.get("spec") - identifier: pulumi.Output = pulumi.Output.from_input(metadata["name"]) - if "namespace" in metadata: - identifier = pulumi.Output.from_input(metadata).apply( - lambda metadata: f"{metadata['namespace']}/{metadata['name']}") - if resource_prefix: - identifier = pulumi.Output.from_input(identifier).apply( - lambda identifier: f"{resource_prefix}-{identifier}") - - gvk = f"{api_version}/{kind}" -{{#Groups}} -{{#Versions}} -{{#TopLevelKinds}} - if gvk == "{{DefaultAPIVersion}}/{{Kind}}": - # Import locally to avoid name collisions. - from pulumi_kubernetes.{{Group}}.{{Version}} import {{Kind}} - return [identifier.apply( - lambda x: (f"{{DefaultAPIVersion}}/{{Kind}}:{x}", - {{Kind}}(f"{x}", opts, **obj)))] -{{/TopLevelKinds}} -{{/Versions}} -{{/Groups}} - return [identifier.apply( - lambda x: (f"{gvk}:{x}", - CustomResource(f"{x}", api_version, kind, spec, metadata, opts)))] diff --git a/provider/pkg/gen/python.go b/provider/pkg/gen/python.go deleted file mode 100644 index fa3a05d862..0000000000 --- a/provider/pkg/gen/python.go +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright 2016-2018, Pulumi Corporation. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package gen - -import ( - "fmt" - "io/ioutil" - - "github.com/cbroglie/mustache" - - pycodegen "github.com/pulumi/pulumi/pkg/v2/codegen/python" -) - -// -------------------------------------------------------------------------- - -// Main interface. - -// -------------------------------------------------------------------------- - -// PythonClient will generate a Pulumi Kubernetes provider client SDK for Python. -func PythonClient( - swagger map[string]interface{}, - templateDir string, - rootInit func(initPy string) error, - groupInit func(group, initPy string) error, - customResource func(crPy string) error, - versionInit func(group, version, initPy string) error, - kindFile func(group, version, kind, kindPy string) error, - casingFile func(casingPy string) error, - yamlFile func(yamlPy string) error, -) error { - definitions := swagger["definitions"].(map[string]interface{}) - - // Generate casing tables from property names. - // { properties: [ {name: fooBar, casedName: foo_bar}, ]} - properties := allCamelCasePropertyNames(definitions, pythonOpts()) - cases := map[string][]map[string]string{"properties": make([]map[string]string, 0)} - for _, name := range properties { - cases["properties"] = append(cases["properties"], - map[string]string{"name": name, "casedName": pycodegen.PyName(name)}) - } - casingPy, err := mustache.RenderFile( - fmt.Sprintf("%s/casing.py.mustache", templateDir), cases) - if err != nil { - return err - } - err = casingFile(casingPy) - if err != nil { - return err - } - - groupsSlice := createGroups(definitions, pythonOpts()) - - yamlPy, err := mustache.RenderFile( - fmt.Sprintf("%s/yaml.py.mustache", templateDir), - map[string]interface{}{ - "Groups": groupsSlice, - }) - if err != nil { - return err - } - err = yamlFile(yamlPy) - if err != nil { - return err - } - - rootInitPy, err := mustache.RenderFile( - fmt.Sprintf("%s/root__init__.py.mustache", templateDir), - map[string]interface{}{ - "Groups": groupsSlice, - }) - if err != nil { - return err - } - err = rootInit(rootInitPy) - if err != nil { - return err - } - - for _, group := range groupsSlice { - if !group.HasTopLevelKinds() { - continue - } - - groupInitPy, err := mustache.RenderFile( - fmt.Sprintf("%s/group__init__.py.mustache", templateDir), group) - if err != nil { - return err - } - if group.Group() == "apiextensions" { - groupInitPy += fmt.Sprint(` -from .CustomResource import (CustomResource) -`) - - crBytes, err := ioutil.ReadFile(fmt.Sprintf("%s/CustomResource.py", templateDir)) - if err != nil { - return err - } - - err = customResource(string(crBytes)) - if err != nil { - return err - } - } - - err = groupInit(group.Group(), groupInitPy) - if err != nil { - return err - } - - for _, version := range group.Versions() { - if !version.HasTopLevelKinds() { - continue - } - - versionInitPy, err := mustache.RenderFile( - fmt.Sprintf("%s/version__init__.py.mustache", templateDir), version) - if err != nil { - return err - } - - err = versionInit(group.Group(), version.Version(), versionInitPy) - if err != nil { - return err - } - - for _, kind := range version.TopLevelKinds() { - inputMap := map[string]interface{}{ - "DefaultAPIVersion": kind.DefaultAPIVersion(), - "DeprecationComment": kind.DeprecationComment(), - "Comment": kind.Comment(), - "Group": group.Group(), - "Kind": kind.Kind(), - "Properties": kind.Properties(), - "RequiredInputProperties": kind.RequiredInputProperties(), - "OptionalInputProperties": kind.OptionalInputProperties(), - "AdditionalSecretOutputs": kind.AdditionalSecretOutputs(), - "Aliases": kind.Aliases(), - "URNAPIVersion": kind.URNAPIVersion(), - "Version": version.Version(), - "PulumiComment": kind.PulumiComment(), - } - // Since mustache templates are logic-less, we have to add some extra variables - // to selectively disable code generation for empty lists. - additionalSecretOutputsPresent := len(kind.AdditionalSecretOutputs()) > 0 - aliasesPresent := len(kind.Aliases()) > 0 - inputMap["MergeOptsRequired"] = additionalSecretOutputsPresent || aliasesPresent - inputMap["AdditionalSecretOutputsPresent"] = additionalSecretOutputsPresent - inputMap["AliasesPresent"] = aliasesPresent - - kindPy, err := mustache.RenderFile( - fmt.Sprintf("%s/kind.py.mustache", templateDir), inputMap) - if err != nil { - return err - } - - err = kindFile(group.Group(), version.Version(), kind.Kind(), kindPy) - if err != nil { - return err - } - } - } - } - - return nil -} From 0b73308a526dbb3353aea4f8f563ed97d7ab0f8a Mon Sep 17 00:00:00 2001 From: komal Date: Thu, 18 Jun 2020 11:01:48 -0700 Subject: [PATCH 07/25] fix imports for custom_resource --- .../gen/python-templates/apiextensions/custom_resource.py | 5 +++-- .../pulumi_kubernetes/apiextensions/custom_resource.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/provider/pkg/gen/python-templates/apiextensions/custom_resource.py b/provider/pkg/gen/python-templates/apiextensions/custom_resource.py index fc1fd333e5..2a90287bf0 100644 --- a/provider/pkg/gen/python-templates/apiextensions/custom_resource.py +++ b/provider/pkg/gen/python-templates/apiextensions/custom_resource.py @@ -7,7 +7,8 @@ import pulumi.runtime from pulumi import ResourceOptions -from .. import tables, version +from .. import tables +from ..utilities import get_version class CustomResource(pulumi.CustomResource): @@ -53,7 +54,7 @@ def __init__(self, resource_name, api_version, kind, spec=None, metadata=None, o __props__['spec'] = spec __props__['metadata'] = metadata - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(version=version.get_version())) + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(version=get_version())) super(CustomResource, self).__init__( f"kubernetes:{api_version}:{kind}", diff --git a/sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py b/sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py index fc1fd333e5..2a90287bf0 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py @@ -7,7 +7,8 @@ import pulumi.runtime from pulumi import ResourceOptions -from .. import tables, version +from .. import tables +from ..utilities import get_version class CustomResource(pulumi.CustomResource): @@ -53,7 +54,7 @@ def __init__(self, resource_name, api_version, kind, spec=None, metadata=None, o __props__['spec'] = spec __props__['metadata'] = metadata - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(version=version.get_version())) + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(version=get_version())) super(CustomResource, self).__init__( f"kubernetes:{api_version}:{kind}", From 757461a52a4d3ad113a2d317e225ae50aaefde07 Mon Sep 17 00:00:00 2001 From: komal Date: Thu, 18 Jun 2020 12:26:28 -0700 Subject: [PATCH 08/25] codegen changes --- .../v1/mutating_webhook_configuration.py | 1 + .../v1/mutating_webhook_configuration_list.py | 1 + .../v1/validating_webhook_configuration.py | 1 + .../v1/validating_webhook_configuration_list.py | 1 + .../v1beta1/mutating_webhook_configuration.py | 1 + .../v1beta1/mutating_webhook_configuration_list.py | 1 + .../v1beta1/validating_webhook_configuration.py | 1 + .../v1beta1/validating_webhook_configuration_list.py | 1 + .../apiextensions/v1/custom_resource_definition.py | 1 + .../apiextensions/v1/custom_resource_definition_list.py | 1 + .../apiextensions/v1beta1/custom_resource_definition.py | 1 + .../apiextensions/v1beta1/custom_resource_definition_list.py | 1 + .../pulumi_kubernetes/apiregistration/v1/api_service.py | 1 + .../pulumi_kubernetes/apiregistration/v1/api_service_list.py | 1 + .../pulumi_kubernetes/apiregistration/v1beta1/api_service.py | 1 + .../apiregistration/v1beta1/api_service_list.py | 1 + sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py | 1 + .../pulumi_kubernetes/apps/v1/controller_revision_list.py | 1 + sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py | 1 + sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py | 1 + sdk/python/pulumi_kubernetes/apps/v1/deployment.py | 1 + sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py | 1 + sdk/python/pulumi_kubernetes/apps/v1/replica_set.py | 1 + sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py | 1 + sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py | 3 ++- sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py | 1 + .../pulumi_kubernetes/apps/v1beta1/controller_revision.py | 3 +++ .../apps/v1beta1/controller_revision_list.py | 1 + sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py | 3 +++ sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py | 1 + sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py | 5 ++++- .../pulumi_kubernetes/apps/v1beta1/stateful_set_list.py | 1 + .../pulumi_kubernetes/apps/v1beta2/controller_revision.py | 3 +++ .../apps/v1beta2/controller_revision_list.py | 1 + sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py | 3 +++ sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py | 1 + sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py | 3 +++ sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py | 1 + sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py | 3 +++ .../pulumi_kubernetes/apps/v1beta2/replica_set_list.py | 1 + sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py | 5 ++++- .../pulumi_kubernetes/apps/v1beta2/stateful_set_list.py | 1 + .../auditregistration/v1alpha1/audit_sink.py | 1 + .../auditregistration/v1alpha1/audit_sink_list.py | 1 + .../pulumi_kubernetes/authentication/v1/token_request.py | 1 + .../pulumi_kubernetes/authentication/v1/token_review.py | 1 + .../pulumi_kubernetes/authentication/v1beta1/token_review.py | 1 + .../authorization/v1/local_subject_access_review.py | 1 + .../authorization/v1/self_subject_access_review.py | 1 + .../authorization/v1/self_subject_rules_review.py | 1 + .../authorization/v1/subject_access_review.py | 1 + .../authorization/v1beta1/local_subject_access_review.py | 1 + .../authorization/v1beta1/self_subject_access_review.py | 1 + .../authorization/v1beta1/self_subject_rules_review.py | 1 + .../authorization/v1beta1/subject_access_review.py | 1 + .../autoscaling/v1/horizontal_pod_autoscaler.py | 1 + .../autoscaling/v1/horizontal_pod_autoscaler_list.py | 1 + .../autoscaling/v2beta1/horizontal_pod_autoscaler.py | 1 + .../autoscaling/v2beta1/horizontal_pod_autoscaler_list.py | 1 + .../autoscaling/v2beta2/horizontal_pod_autoscaler.py | 1 + .../autoscaling/v2beta2/horizontal_pod_autoscaler_list.py | 1 + sdk/python/pulumi_kubernetes/batch/v1/job.py | 3 ++- sdk/python/pulumi_kubernetes/batch/v1/job_list.py | 1 + sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py | 1 + sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py | 1 + sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py | 1 + sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py | 1 + .../certificates/v1beta1/certificate_signing_request.py | 1 + sdk/python/pulumi_kubernetes/coordination/v1/lease.py | 1 + sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py | 1 + sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py | 1 + .../pulumi_kubernetes/coordination/v1beta1/lease_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/binding.py | 1 + sdk/python/pulumi_kubernetes/core/v1/component_status.py | 1 + .../pulumi_kubernetes/core/v1/component_status_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/config_map.py | 1 + sdk/python/pulumi_kubernetes/core/v1/config_map_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/endpoints.py | 1 + sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/event.py | 1 + sdk/python/pulumi_kubernetes/core/v1/event_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/limit_range.py | 1 + sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/namespace.py | 1 + sdk/python/pulumi_kubernetes/core/v1/namespace_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/node.py | 1 + sdk/python/pulumi_kubernetes/core/v1/node_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py | 1 + .../pulumi_kubernetes/core/v1/persistent_volume_claim.py | 1 + .../core/v1/persistent_volume_claim_list.py | 1 + .../pulumi_kubernetes/core/v1/persistent_volume_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/pod.py | 3 ++- sdk/python/pulumi_kubernetes/core/v1/pod_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/pod_template.py | 1 + sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py | 1 + .../pulumi_kubernetes/core/v1/replication_controller.py | 1 + .../pulumi_kubernetes/core/v1/replication_controller_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/resource_quota.py | 1 + sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/secret.py | 3 ++- sdk/python/pulumi_kubernetes/core/v1/secret_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/service.py | 3 ++- sdk/python/pulumi_kubernetes/core/v1/service_account.py | 1 + sdk/python/pulumi_kubernetes/core/v1/service_account_list.py | 1 + sdk/python/pulumi_kubernetes/core/v1/service_list.py | 1 + .../pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py | 1 + .../discovery/v1beta1/endpoint_slice_list.py | 1 + sdk/python/pulumi_kubernetes/events/v1beta1/event.py | 1 + sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py | 1 + .../pulumi_kubernetes/extensions/v1beta1/daemon_set.py | 3 +++ .../pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py | 1 + .../pulumi_kubernetes/extensions/v1beta1/deployment.py | 3 +++ .../pulumi_kubernetes/extensions/v1beta1/deployment_list.py | 1 + sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py | 5 ++++- .../pulumi_kubernetes/extensions/v1beta1/ingress_list.py | 1 + .../pulumi_kubernetes/extensions/v1beta1/network_policy.py | 1 + .../extensions/v1beta1/network_policy_list.py | 1 + .../extensions/v1beta1/pod_security_policy.py | 1 + .../extensions/v1beta1/pod_security_policy_list.py | 1 + .../pulumi_kubernetes/extensions/v1beta1/replica_set.py | 3 +++ .../pulumi_kubernetes/extensions/v1beta1/replica_set_list.py | 1 + .../pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py | 1 + .../flowcontrol/v1alpha1/flow_schema_list.py | 1 + .../flowcontrol/v1alpha1/priority_level_configuration.py | 1 + .../v1alpha1/priority_level_configuration_list.py | 1 + sdk/python/pulumi_kubernetes/meta/v1/status.py | 1 + sdk/python/pulumi_kubernetes/networking/v1/network_policy.py | 1 + .../pulumi_kubernetes/networking/v1/network_policy_list.py | 1 + sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py | 1 + .../pulumi_kubernetes/networking/v1beta1/ingress_class.py | 1 + .../networking/v1beta1/ingress_class_list.py | 1 + .../pulumi_kubernetes/networking/v1beta1/ingress_list.py | 1 + sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py | 1 + .../pulumi_kubernetes/node/v1alpha1/runtime_class_list.py | 1 + sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py | 1 + .../pulumi_kubernetes/node/v1beta1/runtime_class_list.py | 1 + .../policy/v1beta1/pod_disruption_budget.py | 1 + .../policy/v1beta1/pod_disruption_budget_list.py | 1 + .../pulumi_kubernetes/policy/v1beta1/pod_security_policy.py | 1 + .../policy/v1beta1/pod_security_policy_list.py | 1 + sdk/python/pulumi_kubernetes/provider.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py | 1 + .../pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1/role.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1/role_list.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py | 1 + .../pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py | 1 + .../rbac/v1alpha1/cluster_role_binding_list.py | 1 + .../pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py | 1 + .../pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py | 1 + .../pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py | 1 + .../rbac/v1beta1/cluster_role_binding_list.py | 1 + .../pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py | 1 + .../pulumi_kubernetes/rbac/v1beta1/role_binding_list.py | 1 + sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py | 1 + sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py | 1 + .../pulumi_kubernetes/scheduling/v1/priority_class_list.py | 1 + .../pulumi_kubernetes/scheduling/v1alpha1/priority_class.py | 1 + .../scheduling/v1alpha1/priority_class_list.py | 1 + .../pulumi_kubernetes/scheduling/v1beta1/priority_class.py | 1 + .../scheduling/v1beta1/priority_class_list.py | 1 + sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py | 1 + .../pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py | 1 + sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py | 1 + sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py | 1 + sdk/python/pulumi_kubernetes/storage/v1/csi_node.py | 1 + sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py | 1 + sdk/python/pulumi_kubernetes/storage/v1/storage_class.py | 1 + .../pulumi_kubernetes/storage/v1/storage_class_list.py | 1 + sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py | 1 + .../pulumi_kubernetes/storage/v1/volume_attachment_list.py | 1 + .../pulumi_kubernetes/storage/v1alpha1/volume_attachment.py | 1 + .../storage/v1alpha1/volume_attachment_list.py | 1 + sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py | 1 + .../pulumi_kubernetes/storage/v1beta1/csi_driver_list.py | 1 + sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py | 3 +++ .../pulumi_kubernetes/storage/v1beta1/csi_node_list.py | 1 + .../pulumi_kubernetes/storage/v1beta1/storage_class.py | 1 + .../pulumi_kubernetes/storage/v1beta1/storage_class_list.py | 1 + .../pulumi_kubernetes/storage/v1beta1/volume_attachment.py | 1 + .../storage/v1beta1/volume_attachment_list.py | 1 + 191 files changed, 225 insertions(+), 8 deletions(-) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py index 06035fb977..cd85f0f790 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py @@ -30,6 +30,7 @@ class MutatingWebhookConfiguration(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): """ MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py index 45cd21cc68..ae7620ebbb 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py @@ -30,6 +30,7 @@ class MutatingWebhookConfigurationList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py index 7e39f0ed96..03b4fd8b97 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py @@ -30,6 +30,7 @@ class ValidatingWebhookConfiguration(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): """ ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py index 7b254d45a1..3e5c908927 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py @@ -30,6 +30,7 @@ class ValidatingWebhookConfigurationList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py index 19e67ef320..ffc67cce81 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py @@ -30,6 +30,7 @@ class MutatingWebhookConfiguration(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): """ MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py index b8f11795c6..18e3f6ff83 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py @@ -30,6 +30,7 @@ class MutatingWebhookConfigurationList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py index 9ccf17d057..dd74dc81e0 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py @@ -30,6 +30,7 @@ class ValidatingWebhookConfiguration(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): """ ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py index 3d871758e2..1692b992d4 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py @@ -30,6 +30,7 @@ class ValidatingWebhookConfigurationList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py index 692822fcfc..9536505514 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py @@ -31,6 +31,7 @@ class CustomResourceDefinition(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py index af52e7a35a..1381628f9a 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py @@ -27,6 +27,7 @@ class CustomResourceDefinitionList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py index f8b36f0254..44bc12b890 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py @@ -31,6 +31,7 @@ class CustomResourceDefinition(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. Deprecated in v1.16, planned for removal in v1.19. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py index f1c1a4d8ff..c6a96c8db6 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py @@ -27,6 +27,7 @@ class CustomResourceDefinitionList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py index a43cdfbc07..2c69a051aa 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py @@ -31,6 +31,7 @@ class APIService(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ APIService represents a server for a particular GroupVersion. Name must be "version.group". + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py index 38931d3953..7c3c2cf0b7 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py @@ -24,6 +24,7 @@ class APIServiceList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ APIServiceList is a list of APIService objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py index 18a744978d..83ea2b9a90 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py @@ -31,6 +31,7 @@ class APIService(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ APIService represents a server for a particular GroupVersion. Name must be "version.group". + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py index 44b987fb08..a593e22807 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py @@ -24,6 +24,7 @@ class APIServiceList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ APIServiceList is a list of APIService objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py index a7d1ddcb57..12a13820c4 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py @@ -34,6 +34,7 @@ class ControllerRevision(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, data=None, kind=None, metadata=None, revision=None, __props__=None, __name__=None, __opts__=None): """ ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py index e60d2afb5c..12cfb71513 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py @@ -30,6 +30,7 @@ class ControllerRevisionList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ControllerRevisionList is a resource containing a list of ControllerRevision objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py index 53190637ea..db063c1530 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py @@ -34,6 +34,7 @@ class DaemonSet(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ DaemonSet represents the configuration of a daemon set. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py index cd20c6e4b8..ae4f72296c 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py @@ -30,6 +30,7 @@ class DaemonSetList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ DaemonSetList is a collection of daemon sets. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1/deployment.py index 7a3ffaf1e8..47d5237e50 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/deployment.py @@ -56,6 +56,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me If the Deployment has not reached a Ready state after 10 minutes, it will time out and mark the resource update as Failed. You can override the default timeout value by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py index fa4f02150b..c8e98078ee 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py @@ -30,6 +30,7 @@ class DeploymentList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ DeploymentList is a list of Deployments. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py b/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py index 42f459b8ea..74a103c9e9 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py @@ -34,6 +34,7 @@ class ReplicaSet(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ ReplicaSet ensures that a specified number of pod replicas are running at any given time. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py index 5ed5563165..73872cfec9 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py @@ -30,6 +30,7 @@ class ReplicaSetList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ReplicaSetList is a collection of ReplicaSets. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py index bf3f8bcae3..c3bdcea8c2 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py @@ -33,7 +33,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. - The StatefulSet guarantees that a given network identity will always map to the same storage identity. + The StatefulSet guarantees that a given network identity will always map to the same storage identity. This resource waits until its status is ready before registering success for create/update, and populating output properties from the current state of the resource. @@ -47,6 +47,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me If the StatefulSet has not reached a Ready state after 10 minutes, it will time out and mark the resource update as Failed. You can override the default timeout value by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py index 3bb7814436..773efcb27c 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py @@ -24,6 +24,7 @@ class StatefulSetList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ StatefulSetList is a collection of StatefulSets. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py index 9170655316..7e3e3293d9 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py @@ -11,6 +11,7 @@ warnings.warn("apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + class ControllerRevision(pulumi.CustomResource): api_version: pulumi.Output[str] """ @@ -33,9 +34,11 @@ class ControllerRevision(pulumi.CustomResource): Revision indicates the revision of the state represented by Data. """ warnings.warn("apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, data=None, kind=None, metadata=None, revision=None, __props__=None, __name__=None, __opts__=None): """ ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py index 88ef254bba..20e5c174cd 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py @@ -30,6 +30,7 @@ class ControllerRevisionList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ControllerRevisionList is a resource containing a list of ControllerRevision objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py index 93862c678a..2332bf9e61 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py @@ -11,6 +11,7 @@ warnings.warn("apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + class Deployment(pulumi.CustomResource): api_version: pulumi.Output[str] """ @@ -33,6 +34,7 @@ class Deployment(pulumi.CustomResource): Most recently observed status of the Deployment. """ warnings.warn("apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ Deployment enables declarative updates for Pods and ReplicaSets. @@ -58,6 +60,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me If the Deployment has not reached a Ready state after 10 minutes, it will time out and mark the resource update as Failed. You can override the default timeout value by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py index 97834d3d24..3bceb8dae2 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py @@ -30,6 +30,7 @@ class DeploymentList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ DeploymentList is a list of Deployments. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py index 5c990495dd..ec84102991 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py @@ -11,6 +11,7 @@ warnings.warn("apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + class StatefulSet(pulumi.CustomResource): api_version: pulumi.Output[str] """ @@ -30,12 +31,13 @@ class StatefulSet(pulumi.CustomResource): Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. """ warnings.warn("apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. - The StatefulSet guarantees that a given network identity will always map to the same storage identity. + The StatefulSet guarantees that a given network identity will always map to the same storage identity. This resource waits until its status is ready before registering success for create/update, and populating output properties from the current state of the resource. @@ -49,6 +51,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me If the StatefulSet has not reached a Ready state after 10 minutes, it will time out and mark the resource update as Failed. You can override the default timeout value by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py index 8d2b518b29..8b3c02bd15 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py @@ -24,6 +24,7 @@ class StatefulSetList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ StatefulSetList is a collection of StatefulSets. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py index 6472f672ff..5df2c2f3c4 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py @@ -11,6 +11,7 @@ warnings.warn("apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + class ControllerRevision(pulumi.CustomResource): api_version: pulumi.Output[str] """ @@ -33,9 +34,11 @@ class ControllerRevision(pulumi.CustomResource): Revision indicates the revision of the state represented by Data. """ warnings.warn("apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, data=None, kind=None, metadata=None, revision=None, __props__=None, __name__=None, __opts__=None): """ ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py index af9c4e0b40..ed292e7f9e 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py @@ -30,6 +30,7 @@ class ControllerRevisionList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ControllerRevisionList is a resource containing a list of ControllerRevision objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py index 8d277e4c88..cb8f553de5 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py @@ -11,6 +11,7 @@ warnings.warn("apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + class DaemonSet(pulumi.CustomResource): api_version: pulumi.Output[str] """ @@ -33,9 +34,11 @@ class DaemonSet(pulumi.CustomResource): The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ warnings.warn("apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ DaemonSet represents the configuration of a daemon set. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py index dd1b58d345..f68ff366ef 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py @@ -30,6 +30,7 @@ class DaemonSetList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ DaemonSetList is a collection of daemon sets. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py index d817f2bef1..9899f6e22d 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py @@ -11,6 +11,7 @@ warnings.warn("apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + class Deployment(pulumi.CustomResource): api_version: pulumi.Output[str] """ @@ -33,6 +34,7 @@ class Deployment(pulumi.CustomResource): Most recently observed status of the Deployment. """ warnings.warn("apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ Deployment enables declarative updates for Pods and ReplicaSets. @@ -58,6 +60,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me If the Deployment has not reached a Ready state after 10 minutes, it will time out and mark the resource update as Failed. You can override the default timeout value by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py index ed2d841e32..cee794f818 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py @@ -30,6 +30,7 @@ class DeploymentList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ DeploymentList is a list of Deployments. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py index 82d353057b..374251b270 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py @@ -11,6 +11,7 @@ warnings.warn("apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + class ReplicaSet(pulumi.CustomResource): api_version: pulumi.Output[str] """ @@ -33,9 +34,11 @@ class ReplicaSet(pulumi.CustomResource): Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ warnings.warn("apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ ReplicaSet ensures that a specified number of pod replicas are running at any given time. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py index fb1244233a..0f11228608 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py @@ -30,6 +30,7 @@ class ReplicaSetList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ReplicaSetList is a collection of ReplicaSets. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py index 3060e2ee05..3f3e85115c 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py @@ -11,6 +11,7 @@ warnings.warn("apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + class StatefulSet(pulumi.CustomResource): api_version: pulumi.Output[str] """ @@ -30,12 +31,13 @@ class StatefulSet(pulumi.CustomResource): Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. """ warnings.warn("apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. - The StatefulSet guarantees that a given network identity will always map to the same storage identity. + The StatefulSet guarantees that a given network identity will always map to the same storage identity. This resource waits until its status is ready before registering success for create/update, and populating output properties from the current state of the resource. @@ -49,6 +51,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me If the StatefulSet has not reached a Ready state after 10 minutes, it will time out and mark the resource update as Failed. You can override the default timeout value by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py index a1d44d790a..8c05b6b474 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py @@ -24,6 +24,7 @@ class StatefulSetList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ StatefulSetList is a collection of StatefulSets. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py index 14bd48594b..57926b74c9 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py @@ -27,6 +27,7 @@ class AuditSink(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ AuditSink represents a cluster level audit sink + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py index 84c079a538..633ec348e2 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py @@ -27,6 +27,7 @@ class AuditSinkList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ AuditSinkList is a list of AuditSink items. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py b/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py index 92ba27f058..8e62b04d8a 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py @@ -25,6 +25,7 @@ class TokenRequest(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ TokenRequest requests a token for a given service account. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py b/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py index ae3dff45d3..643368aa11 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py @@ -31,6 +31,7 @@ class TokenReview(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py index c9ed0aec43..666d6851c7 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py @@ -31,6 +31,7 @@ class TokenReview(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py index a3521ee199..0d575d0d15 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py @@ -31,6 +31,7 @@ class LocalSubjectAccessReview(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py index a870918f92..ac5fd5254d 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py @@ -31,6 +31,7 @@ class SelfSubjectAccessReview(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py index 4f7eb1806e..64113e0b69 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py @@ -31,6 +31,7 @@ class SelfSubjectRulesReview(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py index ee969b6272..bed185f238 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py @@ -31,6 +31,7 @@ class SubjectAccessReview(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ SubjectAccessReview checks whether or not a user or group can perform an action. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py index a9f82c37af..7564517eb0 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py @@ -31,6 +31,7 @@ class LocalSubjectAccessReview(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py index 89b9713a91..2ea0f4c49f 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py @@ -31,6 +31,7 @@ class SelfSubjectAccessReview(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py index c56e363c3d..15226e3ef3 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py @@ -31,6 +31,7 @@ class SelfSubjectRulesReview(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py index fd23943eff..eac52b5b62 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py @@ -31,6 +31,7 @@ class SubjectAccessReview(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ SubjectAccessReview checks whether or not a user or group can perform an action. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py index a1158296a9..6f1f8deb76 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py @@ -34,6 +34,7 @@ class HorizontalPodAutoscaler(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ configuration of a horizontal pod autoscaler. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py index 82387dfb44..164082fbee 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py @@ -30,6 +30,7 @@ class HorizontalPodAutoscalerList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ list of horizontal pod autoscaler objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py index 67cacbf659..d10ca1510e 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py @@ -34,6 +34,7 @@ class HorizontalPodAutoscaler(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py index b97626a8b1..303690214f 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py @@ -30,6 +30,7 @@ class HorizontalPodAutoscalerList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py index 3f60ea8192..7584b22513 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py @@ -34,6 +34,7 @@ class HorizontalPodAutoscaler(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py index 55841833bd..de84801ab6 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py @@ -30,6 +30,7 @@ class HorizontalPodAutoscalerList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/batch/v1/job.py b/sdk/python/pulumi_kubernetes/batch/v1/job.py index 81af9357a2..dbbabbb1d2 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/job.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/job.py @@ -44,11 +44,12 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me 2. The Job's '.status.conditions' has a status of type 'Complete', and a 'status' set to 'True'. 3. The Job's '.status.conditions' do not have a status of type 'Failed', with a - 'status' set to 'True'. If this condition is set, we should fail the Job immediately. + 'status' set to 'True'. If this condition is set, we should fail the Job immediately. If the Job has not reached a Ready state after 10 minutes, it will time out and mark the resource update as Failed. You can override the default timeout value by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/batch/v1/job_list.py b/sdk/python/pulumi_kubernetes/batch/v1/job_list.py index 55ce5de559..ea1f6138c9 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/job_list.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/job_list.py @@ -30,6 +30,7 @@ class JobList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ JobList is a collection of jobs. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py index 3013c9515e..414fad77ee 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py @@ -34,6 +34,7 @@ class CronJob(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ CronJob represents the configuration of a single cron job. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py index 5b965c2b23..2de983a304 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py @@ -30,6 +30,7 @@ class CronJobList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ CronJobList is a collection of cron jobs. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py index cab26d24d6..8faceb9521 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py @@ -34,6 +34,7 @@ class CronJob(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ CronJob represents the configuration of a single cron job. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py index b2ed8a33b2..03406c0049 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py @@ -30,6 +30,7 @@ class CronJobList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ CronJobList is a collection of cron jobs. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py index 36993e9fa2..63f2fa1c0a 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py @@ -31,6 +31,7 @@ class CertificateSigningRequest(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ Describes a certificate signing request + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/lease.py b/sdk/python/pulumi_kubernetes/coordination/v1/lease.py index 332287d684..2f0ab08ee9 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/lease.py @@ -30,6 +30,7 @@ class Lease(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ Lease defines a lease concept. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py b/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py index ce57d066b1..2222af14fb 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py @@ -30,6 +30,7 @@ class LeaseList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ LeaseList is a list of Lease objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py index 8e952b2f47..15711a56a7 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py @@ -30,6 +30,7 @@ class Lease(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ Lease defines a lease concept. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py index 54e08d927a..1752a1c402 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py @@ -30,6 +30,7 @@ class LeaseList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ LeaseList is a list of Lease objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/binding.py b/sdk/python/pulumi_kubernetes/core/v1/binding.py index d7dec60e30..1922d789a9 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/binding.py +++ b/sdk/python/pulumi_kubernetes/core/v1/binding.py @@ -30,6 +30,7 @@ class Binding(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, target=None, __props__=None, __name__=None, __opts__=None): """ Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/component_status.py b/sdk/python/pulumi_kubernetes/core/v1/component_status.py index cbc71b120f..8b11c64439 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/component_status.py +++ b/sdk/python/pulumi_kubernetes/core/v1/component_status.py @@ -30,6 +30,7 @@ class ComponentStatus(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, conditions=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ComponentStatus (and ComponentStatusList) holds the cluster validation info. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py b/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py index f5cf25db17..9b70e1206e 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py @@ -30,6 +30,7 @@ class ComponentStatusList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ Status of all the conditions for the component as a list of ComponentStatus objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/config_map.py b/sdk/python/pulumi_kubernetes/core/v1/config_map.py index fbe236ea26..927322c0bf 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/config_map.py +++ b/sdk/python/pulumi_kubernetes/core/v1/config_map.py @@ -38,6 +38,7 @@ class ConfigMap(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, binary_data=None, data=None, immutable=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ConfigMap holds configuration data for pods to consume. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py b/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py index 5ee2ac644b..fdec86de8d 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py @@ -30,6 +30,7 @@ class ConfigMapList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ConfigMapList is a resource containing a list of ConfigMap objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/endpoints.py b/sdk/python/pulumi_kubernetes/core/v1/endpoints.py index d898d920ae..1bc681869c 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/endpoints.py +++ b/sdk/python/pulumi_kubernetes/core/v1/endpoints.py @@ -41,6 +41,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] }, ] + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py b/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py index ac1da5ca2a..0920ecebc9 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py @@ -30,6 +30,7 @@ class EndpointsList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ EndpointsList is a list of endpoints. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/event.py b/sdk/python/pulumi_kubernetes/core/v1/event.py index bbaaf6d59d..6e765bb671 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/event.py +++ b/sdk/python/pulumi_kubernetes/core/v1/event.py @@ -82,6 +82,7 @@ class Event(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, action=None, api_version=None, count=None, event_time=None, first_timestamp=None, involved_object=None, kind=None, last_timestamp=None, message=None, metadata=None, reason=None, related=None, reporting_component=None, reporting_instance=None, series=None, source=None, type=None, __props__=None, __name__=None, __opts__=None): """ Event is a report of an event somewhere in the cluster. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] action: What action was taken/failed regarding to the Regarding object. diff --git a/sdk/python/pulumi_kubernetes/core/v1/event_list.py b/sdk/python/pulumi_kubernetes/core/v1/event_list.py index 9010d40166..b2396b4c9a 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/event_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/event_list.py @@ -30,6 +30,7 @@ class EventList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ EventList is a list of events. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/limit_range.py b/sdk/python/pulumi_kubernetes/core/v1/limit_range.py index 278de918bc..1fbe99f6f2 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/limit_range.py +++ b/sdk/python/pulumi_kubernetes/core/v1/limit_range.py @@ -30,6 +30,7 @@ class LimitRange(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ LimitRange sets resource usage limits for each kind of resource in a Namespace. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py b/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py index cfa51becc3..715dc9fcfd 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py @@ -30,6 +30,7 @@ class LimitRangeList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ LimitRangeList is a list of LimitRange items. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/namespace.py b/sdk/python/pulumi_kubernetes/core/v1/namespace.py index a0291dd60d..1bb34b0ba9 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/namespace.py +++ b/sdk/python/pulumi_kubernetes/core/v1/namespace.py @@ -34,6 +34,7 @@ class Namespace(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ Namespace provides a scope for Names. Use of multiple namespaces is optional. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py b/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py index 4f30201c99..f981da24fe 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py @@ -30,6 +30,7 @@ class NamespaceList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ NamespaceList is a list of Namespaces. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/node.py b/sdk/python/pulumi_kubernetes/core/v1/node.py index 9691da8acf..c042838650 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/node.py +++ b/sdk/python/pulumi_kubernetes/core/v1/node.py @@ -34,6 +34,7 @@ class Node(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/node_list.py b/sdk/python/pulumi_kubernetes/core/v1/node_list.py index 78eb0632fe..2ae61fd120 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/node_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/node_list.py @@ -30,6 +30,7 @@ class NodeList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ NodeList is the whole list of all Nodes which have been registered with master. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py index 722ef3fd66..900f72f932 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py @@ -34,6 +34,7 @@ class PersistentVolume(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py index 0f1566f353..02e1627af8 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py @@ -34,6 +34,7 @@ class PersistentVolumeClaim(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ PersistentVolumeClaim is a user's request for and claim to a persistent volume + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py index a24ece1edd..5e219ef493 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py @@ -30,6 +30,7 @@ class PersistentVolumeClaimList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ PersistentVolumeClaimList is a list of PersistentVolumeClaim items. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py index 3c6a3ee94c..6f9f37f2e2 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py @@ -30,6 +30,7 @@ class PersistentVolumeList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ PersistentVolumeList is a list of PersistentVolume items. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod.py b/sdk/python/pulumi_kubernetes/core/v1/pod.py index 349554789f..8d6bfc671b 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/pod.py +++ b/sdk/python/pulumi_kubernetes/core/v1/pod.py @@ -44,11 +44,12 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me 2. The Pod is initialized ("Initialized" '.status.condition' is true). 3. The Pod is ready ("Ready" '.status.condition' is true) and the '.status.phase' is set to "Running". - Or (for Jobs): The Pod succeeded ('.status.phase' set to "Succeeded"). + Or (for Jobs): The Pod succeeded ('.status.phase' set to "Succeeded"). If the Pod has not reached a Ready state after 10 minutes, it will time out and mark the resource update as Failed. You can override the default timeout value by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_list.py b/sdk/python/pulumi_kubernetes/core/v1/pod_list.py index 38165d22f3..7d4e0923c5 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/pod_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/pod_list.py @@ -30,6 +30,7 @@ class PodList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ PodList is a list of Pods. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_template.py b/sdk/python/pulumi_kubernetes/core/v1/pod_template.py index f95f012e7e..83f18d1055 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/pod_template.py +++ b/sdk/python/pulumi_kubernetes/core/v1/pod_template.py @@ -30,6 +30,7 @@ class PodTemplate(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, template=None, __props__=None, __name__=None, __opts__=None): """ PodTemplate describes a template for creating copies of a predefined pod. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py b/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py index 31ac192cc9..d77babc1da 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py @@ -30,6 +30,7 @@ class PodTemplateList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ PodTemplateList is a list of PodTemplates. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py b/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py index 631ad74eae..9530aa55a2 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py +++ b/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py @@ -34,6 +34,7 @@ class ReplicationController(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ ReplicationController represents the configuration of a replication controller. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py b/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py index dd0a6af5ca..f832822f66 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py @@ -30,6 +30,7 @@ class ReplicationControllerList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ReplicationControllerList is a collection of replication controllers. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py b/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py index 073dcac761..70fbd5b090 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py +++ b/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py @@ -34,6 +34,7 @@ class ResourceQuota(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ ResourceQuota sets aggregate quota restrictions enforced per namespace + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py b/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py index e07c206d64..043b5c4ddc 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py @@ -30,6 +30,7 @@ class ResourceQuotaList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ResourceQuotaList is a list of ResourceQuota items. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/secret.py b/sdk/python/pulumi_kubernetes/core/v1/secret.py index ac5a04fe33..1c220a2ae4 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/secret.py +++ b/sdk/python/pulumi_kubernetes/core/v1/secret.py @@ -44,7 +44,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, data=None, im Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. Note: While Pulumi automatically encrypts the 'data' and 'stringData' - fields, this encryption only applies to Pulumi's context, including the state file, + fields, this encryption only applies to Pulumi's context, including the state file, the Service, the CLI, etc. Kubernetes does not encrypt Secret resources by default, and the contents are visible to users with access to the Secret in Kubernetes using tools like 'kubectl'. @@ -52,6 +52,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, data=None, im For more information on securing Kubernetes Secrets, see the following links: https://kubernetes.io/docs/concepts/configuration/secret/#security-properties https://kubernetes.io/docs/concepts/configuration/secret/#risks + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/secret_list.py b/sdk/python/pulumi_kubernetes/core/v1/secret_list.py index 81c6006753..bc72f9af25 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/secret_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/secret_list.py @@ -30,6 +30,7 @@ class SecretList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ SecretList is a list of Secret. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/service.py b/sdk/python/pulumi_kubernetes/core/v1/service.py index d0fdfcafd4..f1a09702cb 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/service.py +++ b/sdk/python/pulumi_kubernetes/core/v1/service.py @@ -47,7 +47,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me an "empty headless" Service [1] or a Service with '.spec.type: ExternalName'). 4. External IP address is allocated (if Service has '.spec.type: LoadBalancer'). - Known limitations: + Known limitations: Services targeting ReplicaSets (and, by extension, Deployments, StatefulSets, etc.) with '.spec.replicas' set to 0 are not handled, and will time out. To work around this limitation, set 'pulumi.com/skipAwait: "true"' on @@ -59,6 +59,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me If the Service has not reached a Ready state after 10 minutes, it will time out and mark the resource update as Failed. You can override the default timeout value by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_account.py b/sdk/python/pulumi_kubernetes/core/v1/service_account.py index c4a38ba913..7bd7ed6b0b 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/service_account.py +++ b/sdk/python/pulumi_kubernetes/core/v1/service_account.py @@ -38,6 +38,7 @@ class ServiceAccount(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, automount_service_account_token=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None, __props__=None, __name__=None, __opts__=None): """ ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py b/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py index 9daf9e8252..bd1c3682bb 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py @@ -30,6 +30,7 @@ class ServiceAccountList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ServiceAccountList is a list of ServiceAccount objects + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_list.py b/sdk/python/pulumi_kubernetes/core/v1/service_list.py index 7d48f20b23..76ea3f2464 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/service_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/service_list.py @@ -30,6 +30,7 @@ class ServiceList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ServiceList holds a list of services. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py index c743256430..8091397608 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py @@ -38,6 +38,7 @@ class EndpointSlice(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, address_type=None, api_version=None, endpoints=None, kind=None, metadata=None, ports=None, __props__=None, __name__=None, __opts__=None): """ EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] address_type: addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py index 79ccd73470..04a4aa7b7a 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py @@ -30,6 +30,7 @@ class EndpointSliceList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ EndpointSliceList represents a list of endpoint slices + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/event.py b/sdk/python/pulumi_kubernetes/events/v1beta1/event.py index 4b1ec3905c..491610eac4 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/event.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/event.py @@ -79,6 +79,7 @@ class Event(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, action=None, api_version=None, deprecated_count=None, deprecated_first_timestamp=None, deprecated_last_timestamp=None, deprecated_source=None, event_time=None, kind=None, metadata=None, note=None, reason=None, regarding=None, related=None, reporting_controller=None, reporting_instance=None, series=None, type=None, __props__=None, __name__=None, __opts__=None): """ Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] action: What action was taken/failed regarding to the regarding object. diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py b/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py index cb5934838f..3b210098ad 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py @@ -30,6 +30,7 @@ class EventList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ EventList is a list of Event objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py index efe665fc1c..f603730ac5 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py @@ -11,6 +11,7 @@ warnings.warn("extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + class DaemonSet(pulumi.CustomResource): api_version: pulumi.Output[str] """ @@ -33,9 +34,11 @@ class DaemonSet(pulumi.CustomResource): The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ warnings.warn("extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ DaemonSet represents the configuration of a daemon set. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py index 487c0c3e09..3f10d262c8 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py @@ -30,6 +30,7 @@ class DaemonSetList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ DaemonSetList is a collection of daemon sets. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py index 6321ab0a99..edb8834c7a 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py @@ -11,6 +11,7 @@ warnings.warn("extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + class Deployment(pulumi.CustomResource): api_version: pulumi.Output[str] """ @@ -33,6 +34,7 @@ class Deployment(pulumi.CustomResource): Most recently observed status of the Deployment. """ warnings.warn("extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ Deployment enables declarative updates for Pods and ReplicaSets. @@ -58,6 +60,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me If the Deployment has not reached a Ready state after 10 minutes, it will time out and mark the resource update as Failed. You can override the default timeout value by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py index a5e352ffb8..ed5ad8172f 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py @@ -30,6 +30,7 @@ class DeploymentList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ DeploymentList is a list of Deployments. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py index 7bfe4efba2..6c3a1c7ab6 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py @@ -11,6 +11,7 @@ warnings.warn("extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.", DeprecationWarning) + class Ingress(pulumi.CustomResource): api_version: pulumi.Output[str] """ @@ -33,9 +34,10 @@ class Ingress(pulumi.CustomResource): Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ warnings.warn("extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ - Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. This resource waits until its status is ready before registering success for create/update, and populating output properties from the current state of the resource. @@ -50,6 +52,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me If the Ingress has not reached a Ready state after 10 minutes, it will time out and mark the resource update as Failed. You can override the default timeout value by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py index b503a963c7..f1eab963b3 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py @@ -30,6 +30,7 @@ class IngressList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ IngressList is a collection of Ingress. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py index ae773664a2..0cadbbcdd4 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py @@ -30,6 +30,7 @@ class NetworkPolicy(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. NetworkPolicy describes what network traffic is allowed for a set of Pods + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py index 18f2c21b95..166aec12e7 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py @@ -30,6 +30,7 @@ class NetworkPolicyList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList. Network Policy List is a list of NetworkPolicy objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py index 39ad77bb43..ea08b6105a 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py @@ -30,6 +30,7 @@ class PodSecurityPolicy(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated: use PodSecurityPolicy from policy API Group instead. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py index 0b1359a0dc..0d70b86ce4 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py @@ -30,6 +30,7 @@ class PodSecurityPolicyList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ PodSecurityPolicyList is a list of PodSecurityPolicy objects. Deprecated: use PodSecurityPolicyList from policy API Group instead. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py index a31f9b8bea..f2edc4cff8 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py @@ -11,6 +11,7 @@ warnings.warn("extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + class ReplicaSet(pulumi.CustomResource): api_version: pulumi.Output[str] """ @@ -33,9 +34,11 @@ class ReplicaSet(pulumi.CustomResource): Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status """ warnings.warn("extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ ReplicaSet ensures that a specified number of pod replicas are running at any given time. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py index 9d60791e0d..6ce9f0381f 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py @@ -30,6 +30,7 @@ class ReplicaSetList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ReplicaSetList is a collection of ReplicaSets. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py index a99c92dafb..63f4421e33 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py @@ -34,6 +34,7 @@ class FlowSchema(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py index 6c1992fdf4..dfb5b64713 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py @@ -30,6 +30,7 @@ class FlowSchemaList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ FlowSchemaList is a list of FlowSchema objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py index 59f3ee5692..a2ccf32d61 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py @@ -34,6 +34,7 @@ class PriorityLevelConfiguration(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ PriorityLevelConfiguration represents the configuration of a priority level. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py index 6c9b4f06cf..87cf2b5157 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py @@ -30,6 +30,7 @@ class PriorityLevelConfigurationList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/meta/v1/status.py b/sdk/python/pulumi_kubernetes/meta/v1/status.py index 0caa224bc4..03a61be6ae 100644 --- a/sdk/python/pulumi_kubernetes/meta/v1/status.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/status.py @@ -46,6 +46,7 @@ class Status(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, code=None, details=None, kind=None, message=None, metadata=None, reason=None, __props__=None, __name__=None, __opts__=None): """ Status is a return value for calls that don't return other objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py b/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py index 31fd03a25b..18dc36fb0a 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py @@ -30,6 +30,7 @@ class NetworkPolicy(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ NetworkPolicy describes what network traffic is allowed for a set of Pods + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py b/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py index 97405806e6..f49521e9a1 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py @@ -30,6 +30,7 @@ class NetworkPolicyList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ NetworkPolicyList is a list of NetworkPolicy objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py index 44c109563f..4b996668c1 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py @@ -48,6 +48,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me If the Ingress has not reached a Ready state after 10 minutes, it will time out and mark the resource update as Failed. You can override the default timeout value by setting the 'customTimeouts' option on the resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py index 88d300cc61..c588e9a60c 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py @@ -30,6 +30,7 @@ class IngressClass(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py index 45c278a6b6..35ee72c732 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py @@ -30,6 +30,7 @@ class IngressClassList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ IngressClassList is a collection of IngressClasses. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py index 2a08d7ef98..7fc052b13f 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py @@ -30,6 +30,7 @@ class IngressList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ IngressList is a collection of Ingress. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py index f0bde5d692..b92a55e901 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py @@ -30,6 +30,7 @@ class RuntimeClass(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py index 50c7c8e4bf..6e22f29258 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py @@ -30,6 +30,7 @@ class RuntimeClassList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ RuntimeClassList is a list of RuntimeClass objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py index e5ef58ec1d..ee43fd3bff 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py @@ -38,6 +38,7 @@ class RuntimeClass(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, handler=None, kind=None, metadata=None, overhead=None, scheduling=None, __props__=None, __name__=None, __opts__=None): """ RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py index 72244df490..05aae3bba0 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py @@ -30,6 +30,7 @@ class RuntimeClassList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ RuntimeClassList is a list of RuntimeClass objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py index f971a7a522..bf5232a1db 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py @@ -31,6 +31,7 @@ class PodDisruptionBudget(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py index 739c6930d3..e6a11d25c1 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py @@ -24,6 +24,7 @@ class PodDisruptionBudgetList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py index b284da68a7..b3aeaadefe 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py @@ -30,6 +30,7 @@ class PodSecurityPolicy(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py index 6381f79222..a92e2fd12b 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py @@ -30,6 +30,7 @@ class PodSecurityPolicyList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ PodSecurityPolicyList is a list of PodSecurityPolicy objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/provider.py b/sdk/python/pulumi_kubernetes/provider.py index 865db04acb..003374614c 100644 --- a/sdk/python/pulumi_kubernetes/provider.py +++ b/sdk/python/pulumi_kubernetes/provider.py @@ -14,6 +14,7 @@ class Provider(pulumi.ProviderResource): def __init__(__self__, resource_name, opts=None, cluster=None, context=None, enable_dry_run=None, kubeconfig=None, namespace=None, render_yaml_to_directory=None, suppress_deprecation_warnings=None, __props__=None, __name__=None, __opts__=None): """ The provider type for the kubernetes package. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] cluster: If present, the name of the kubeconfig cluster to use. diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py index 3c3bfb67ae..842eafab83 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py @@ -34,6 +34,7 @@ class ClusterRole(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): """ ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py index fab03957b2..a8636213f6 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py @@ -34,6 +34,7 @@ class ClusterRoleBinding(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): """ ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py index 41070dc2c8..58e6371e73 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py @@ -30,6 +30,7 @@ class ClusterRoleBindingList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ClusterRoleBindingList is a collection of ClusterRoleBindings + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py index 153e8ad7fe..9081047af2 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py @@ -30,6 +30,7 @@ class ClusterRoleList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ClusterRoleList is a collection of ClusterRoles + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1/role.py index 76ad643ba5..2eb0264f20 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role.py @@ -30,6 +30,7 @@ class Role(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): """ Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py index 3098b9ffb8..bc1ae91024 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py @@ -34,6 +34,7 @@ class RoleBinding(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): """ RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py index 911a28b856..cfb2af266d 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py @@ -30,6 +30,7 @@ class RoleBindingList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ RoleBindingList is a collection of RoleBindings + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py index da7bd27817..dd69d47e15 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py @@ -30,6 +30,7 @@ class RoleList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ RoleList is a collection of Roles + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py index 32ae052938..dae16d0840 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py @@ -34,6 +34,7 @@ class ClusterRole(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): """ ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py index 870e168f67..e2a89e4965 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py @@ -34,6 +34,7 @@ class ClusterRoleBinding(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): """ ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py index da7881c59d..fc0c2d03fc 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py @@ -30,6 +30,7 @@ class ClusterRoleBindingList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py index c7fa1bb018..58966b7bcb 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py @@ -30,6 +30,7 @@ class ClusterRoleList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py index 7df5b21453..6b15212553 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py @@ -30,6 +30,7 @@ class Role(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): """ Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py index 90d50c91da..f39db6bd30 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py @@ -34,6 +34,7 @@ class RoleBinding(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): """ RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py index 25d47aecbb..78ad5b100d 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py @@ -30,6 +30,7 @@ class RoleBindingList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py index 1e6e7f3e46..6c2b1e5051 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py @@ -30,6 +30,7 @@ class RoleList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ RoleList is a collection of Roles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py index ea2b65734a..018232c3f2 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py @@ -34,6 +34,7 @@ class ClusterRole(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): """ ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py index f030731d82..031043b41f 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py @@ -34,6 +34,7 @@ class ClusterRoleBinding(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): """ ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py index 2c27598f7b..2f928dcc96 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py @@ -30,6 +30,7 @@ class ClusterRoleBindingList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindingList, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py index 2d71424edb..b31a911f66 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py @@ -30,6 +30,7 @@ class ClusterRoleList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py index e61aa2e04d..98567196fa 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py @@ -30,6 +30,7 @@ class Role(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): """ Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py index b987d36875..cce5f921da 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py @@ -34,6 +34,7 @@ class RoleBinding(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): """ RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py index 58ae8a68a5..2c69c899a5 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py @@ -30,6 +30,7 @@ class RoleBindingList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py index f486fc322a..bc3f7cd9c3 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py @@ -30,6 +30,7 @@ class RoleList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ RoleList is a collection of Roles Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.20. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py index 0baf797823..d2cba23a35 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py @@ -42,6 +42,7 @@ class PriorityClass(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, __props__=None, __name__=None, __opts__=None): """ PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py index 4ae58ea60c..58d7bee930 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py @@ -30,6 +30,7 @@ class PriorityClassList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ PriorityClassList is a collection of priority classes. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py index 550e8a0ce1..daab662fb1 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py @@ -42,6 +42,7 @@ class PriorityClass(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, __props__=None, __name__=None, __opts__=None): """ DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py index aafadb9698..38e4ecb28f 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py @@ -30,6 +30,7 @@ class PriorityClassList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ PriorityClassList is a collection of priority classes. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py index 0ceb846f88..7eb540354e 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py @@ -42,6 +42,7 @@ class PriorityClass(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, __props__=None, __name__=None, __opts__=None): """ DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py index 3ac439e0cb..e3aa0e6e6f 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py @@ -30,6 +30,7 @@ class PriorityClassList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ PriorityClassList is a collection of priority classes. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py index fd386e3c5c..79669b7fbd 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py @@ -24,6 +24,7 @@ class PodPreset(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ PodPreset is a policy resource that defines additional runtime requirements for a Pod. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py index 2be09e485c..7f7be35cdf 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py @@ -30,6 +30,7 @@ class PodPresetList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ PodPresetList is a list of PodPreset objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py index fbc7796239..9470d62cbc 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py @@ -30,6 +30,7 @@ class CSIDriver(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py index 7acdd11da4..bd92106a89 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py @@ -30,6 +30,7 @@ class CSIDriverList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ CSIDriverList is a collection of CSIDriver objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py index 8cad79c826..246dafef20 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py @@ -30,6 +30,7 @@ class CSINode(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py index e2b17b1ace..987d3649e9 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py @@ -30,6 +30,7 @@ class CSINodeList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ CSINodeList is a collection of CSINode objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py b/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py index cc6e95e2b1..f758a56637 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py @@ -56,6 +56,7 @@ def __init__(__self__, resource_name, opts=None, allow_volume_expansion=None, al StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] allow_volume_expansion: AllowVolumeExpansion shows whether the storage class allow volume expand diff --git a/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py b/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py index 7209120130..cbef048fde 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py @@ -30,6 +30,7 @@ class StorageClassList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ StorageClassList is a collection of storage classes. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py index 2a86ae34e8..b9cc07046d 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py @@ -36,6 +36,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py index 822825b5b0..5272a1d443 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py @@ -30,6 +30,7 @@ class VolumeAttachmentList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ VolumeAttachmentList is a collection of VolumeAttachment objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py index 8978a31dfc..0e0c39ccad 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py @@ -36,6 +36,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py index 8ea6295d31..0323ae4443 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py @@ -30,6 +30,7 @@ class VolumeAttachmentList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ VolumeAttachmentList is a collection of VolumeAttachment objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py index f90f7dad26..e471471a15 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py @@ -30,6 +30,7 @@ class CSIDriver(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. CSI drivers do not need to create the CSIDriver object directly. Instead they may use the cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically creates a CSIDriver object representing the driver. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py index 601cd474f0..1ab65b8f2a 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py @@ -30,6 +30,7 @@ class CSIDriverList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ CSIDriverList is a collection of CSIDriver objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py index 6e1bd33961..3d3a6db50c 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py @@ -11,6 +11,7 @@ warnings.warn("storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.", DeprecationWarning) + class CSINode(pulumi.CustomResource): api_version: pulumi.Output[str] """ @@ -29,9 +30,11 @@ class CSINode(pulumi.CustomResource): spec is the specification of CSINode """ warnings.warn("storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.", DeprecationWarning) + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): """ CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py index a5eb5fcd35..1ad53653bb 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py @@ -30,6 +30,7 @@ class CSINodeList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ CSINodeList is a collection of CSINode objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py index 255be039fe..11fc06508c 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py @@ -56,6 +56,7 @@ def __init__(__self__, resource_name, opts=None, allow_volume_expansion=None, al StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] allow_volume_expansion: AllowVolumeExpansion shows whether the storage class allow volume expand diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py index 2326743b35..fd9ceab384 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py @@ -30,6 +30,7 @@ class StorageClassList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ StorageClassList is a collection of storage classes. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py index 7678b029e3..28204e9812 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py @@ -36,6 +36,7 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py index ddcb0112b3..693259fcbf 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py @@ -30,6 +30,7 @@ class VolumeAttachmentList(pulumi.CustomResource): def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): """ VolumeAttachmentList is a collection of VolumeAttachment objects. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :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 From 94c77bf168ff75b509cb9ce4c73e5527b23ff79f Mon Sep 17 00:00:00 2001 From: komal Date: Thu, 18 Jun 2020 12:26:54 -0700 Subject: [PATCH 09/25] fix yaml template --- provider/pkg/gen/python-templates/yaml/yaml.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/pkg/gen/python-templates/yaml/yaml.tmpl b/provider/pkg/gen/python-templates/yaml/yaml.tmpl index 36355e87d6..08f54d9b66 100644 --- a/provider/pkg/gen/python-templates/yaml/yaml.tmpl +++ b/provider/pkg/gen/python-templates/yaml/yaml.tmpl @@ -186,7 +186,7 @@ def _parse_yaml_object( identifier = pulumi.Output.from_input(metadata).apply( lambda metadata: f"{metadata['namespace']}/{metadata['name']}") if resource_prefix: - pulumi.Output.from_input(identifier).apply( + identifier = pulumi.Output.from_input(identifier).apply( lambda identifier: f"{resource_prefix}-{identifier}") gvk = f"{api_version}/{kind}" From 3a086c8b042eb110411bd70c3fd612d4507abb6f Mon Sep 17 00:00:00 2001 From: komal Date: Thu, 18 Jun 2020 12:27:08 -0700 Subject: [PATCH 10/25] update changelog --- CHANGELOG.md | 1 + provider/go.sum | 4 ++++ tests/go.mod | 2 +- tests/go.sum | 5 +++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a7f7cf247..6f8843b9cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Fix prometheus-operator test to wait for the CRD to be ready before use (https://github.com/pulumi/pulumi-kubernetes/pull/1172) - Set supported environment variables in SDK Provider classes (https://github.com/pulumi/pulumi-kubernetes/pull/1166) +- Python SDK updated to align with other Pulumi Python SDKs. (https://github.com/pulumi/pulumi-kubernetes/pull/1160) ## 2.3.1 (June 17, 2020) diff --git a/provider/go.sum b/provider/go.sum index 5c915ff782..495fb0f3a4 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -455,6 +455,7 @@ github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200622153820-282c95ee402d/go.mod h1:z github.com/pulumi/pulumi/sdk/v2 v2.0.0/go.mod h1:W7k1UDYerc5o97mHnlHHp5iQZKEby+oQrQefWt+2RF4= github.com/pulumi/pulumi/sdk/v2 v2.3.0 h1:uvRYCmoHILKlyyIbXa5CcLSKKt9n2s8j+GKTffpXQf4= github.com/pulumi/pulumi/sdk/v2 v2.3.0/go.mod h1:cvivzHVRA5Xu3NSE/obmHzO3L693IJSd5QccQuBOMUE= +github.com/pulumi/pulumi/sdk/v2 v2.4.0/go.mod h1:llk6tmXss8kJrt3vEXAkwiwgZOuINEFmKIfMveVIwO8= github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= github.com/rjeczalik/notify v0.9.2/go.mod h1:aErll2f0sUX9PXZnVNyeiObbmTlk5jnMoCa4QEjJeqM= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= @@ -507,6 +508,7 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6 h1:9VTskZOIRf2vKF3UL8TuWElry5pgUpV1tFSe/e/0m/E= github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6/go.mod h1:XDKHRm5ThF8YJjx001LtgelzsoaEcvnA7lVWz9EeX3g= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -789,6 +791,7 @@ google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8 google.golang.org/grpc v1.28.0 h1:bO/TA4OxCOummhSf10siHuG7vJOiwh7SpRpFZDkOgl4= google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= gopkg.in/AlecAivazis/survey.v1 v1.8.8/go.mod h1:CaHjv79TCgAvXMSFJSVgonHXYWxnhzI3eoHtnX5UgUo= +gopkg.in/AlecAivazis/survey.v1 v1.8.9-0.20200217094205-6773bdf39b7f/go.mod h1:CaHjv79TCgAvXMSFJSVgonHXYWxnhzI3eoHtnX5UgUo= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -820,6 +823,7 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/tests/go.mod b/tests/go.mod index 7ec1757ab1..81cc48a517 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -12,6 +12,6 @@ require ( github.com/pulumi/pulumi-kubernetes/provider/v2 v2.0.0-00010101000000-000000000000 github.com/pulumi/pulumi-kubernetes/sdk/v2 v2.0.0 github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200622153820-282c95ee402d - github.com/pulumi/pulumi/sdk/v2 v2.3.0 + github.com/pulumi/pulumi/sdk/v2 v2.4.0 github.com/stretchr/testify v1.6.1 ) diff --git a/tests/go.sum b/tests/go.sum index 7dad93245c..ed69338b8d 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -474,6 +474,7 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= +github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386/go.mod h1:MRxHTJrf9FhdfNQ8Hdeh9gmHevC9RJE/fu8M3JIGjoE= github.com/pierrec/lz4 v2.0.5+incompatible h1:2xWsjqPFWcplujydGg4WmhC/6fZqK42wMM8aXeqhl0I= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -505,6 +506,7 @@ github.com/pulumi/pulumi/sdk/v2 v2.2.2-0.20200514204320-e677c7d6dca3 h1:uCVadlcm github.com/pulumi/pulumi/sdk/v2 v2.2.2-0.20200514204320-e677c7d6dca3/go.mod h1:QNbWpL4gvf3X0lUFT7TXA2Jo1ff/Ti2l97AyFGYwvW4= github.com/pulumi/pulumi/sdk/v2 v2.3.0 h1:uvRYCmoHILKlyyIbXa5CcLSKKt9n2s8j+GKTffpXQf4= github.com/pulumi/pulumi/sdk/v2 v2.3.0/go.mod h1:cvivzHVRA5Xu3NSE/obmHzO3L693IJSd5QccQuBOMUE= +github.com/pulumi/pulumi/sdk/v2 v2.4.0/go.mod h1:llk6tmXss8kJrt3vEXAkwiwgZOuINEFmKIfMveVIwO8= github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= github.com/rjeczalik/notify v0.9.2 h1:MiTWrPj55mNDHEiIX5YUSKefw/+lCQVoAFmD6oQm5w8= github.com/rjeczalik/notify v0.9.2/go.mod h1:aErll2f0sUX9PXZnVNyeiObbmTlk5jnMoCa4QEjJeqM= @@ -563,6 +565,7 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6 h1:9VTskZOIRf2vKF3UL8TuWElry5pgUpV1tFSe/e/0m/E= github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6/go.mod h1:XDKHRm5ThF8YJjx001LtgelzsoaEcvnA7lVWz9EeX3g= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -856,6 +859,7 @@ google.golang.org/grpc v1.28.0 h1:bO/TA4OxCOummhSf10siHuG7vJOiwh7SpRpFZDkOgl4= google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= gopkg.in/AlecAivazis/survey.v1 v1.8.8 h1:5UtTowJZTz1j7NxVzDGKTz6Lm9IWm8DDF6b7a2wq9VY= gopkg.in/AlecAivazis/survey.v1 v1.8.8/go.mod h1:CaHjv79TCgAvXMSFJSVgonHXYWxnhzI3eoHtnX5UgUo= +gopkg.in/AlecAivazis/survey.v1 v1.8.9-0.20200217094205-6773bdf39b7f/go.mod h1:CaHjv79TCgAvXMSFJSVgonHXYWxnhzI3eoHtnX5UgUo= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -888,6 +892,7 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= From dbac365a12ffae3a593ab08d0eb3144d98a6911d Mon Sep 17 00:00:00 2001 From: komal Date: Thu, 18 Jun 2020 18:18:24 -0700 Subject: [PATCH 11/25] Remove dead code --- provider/pkg/gen/typegen.go | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/provider/pkg/gen/typegen.go b/provider/pkg/gen/typegen.go index b821262c07..d2901a0ca7 100644 --- a/provider/pkg/gen/typegen.go +++ b/provider/pkg/gen/typegen.go @@ -1019,46 +1019,9 @@ type groupOpts struct { } func nodeJSOpts() groupOpts { return groupOpts{language: typescript} } -func pythonOpts() groupOpts { return groupOpts{language: python} } func dotnetOpts() groupOpts { return groupOpts{language: dotnet} } func schemaOpts() groupOpts { return groupOpts{language: pulumiSchema} } -func allCamelCasePropertyNames(definitionsJSON map[string]interface{}, opts groupOpts) []string { - // Map definition JSON object -> `definition` with metadata. - var definitions []definition - linq.From(definitionsJSON). - WhereT(func(kv linq.KeyValue) bool { - // Skip these objects, special case. They're deprecated and empty. - defName := kv.Key.(string) - return !strings.HasPrefix(defName, "io.k8s.kubernetes.pkg") - }). - SelectT(func(kv linq.KeyValue) definition { - defName := kv.Key.(string) - return definition{ - gvk: gvkFromRef(defName), - name: defName, - data: definitionsJSON[defName].(map[string]interface{}), - } - }). - ToSlice(&definitions) - - properties := sets.String{} - // Only select camel-cased property names - re := regexp.MustCompile(`[a-z]+[A-Z]`) - for _, d := range definitions { - if pmap, exists := d.data["properties"]; exists { - ps := pmap.(map[string]interface{}) - for p := range ps { - if re.MatchString(p) { - properties.Insert(p) - } - } - } - } - - return properties.List() -} - func createGroups(definitionsJSON map[string]interface{}, opts groupOpts) []GroupConfig { // Map Group -> canonical Group // e.g., flowcontrol -> flowcontrol.apiserver.k8s.io From 9644518141d69af881d2dabc50b54bb2ca81d728 Mon Sep 17 00:00:00 2001 From: komal Date: Sun, 21 Jun 2020 22:35:09 -0700 Subject: [PATCH 12/25] Template fixes --- .../gen/python-templates/apiextensions/custom_resource.py | 4 ++-- provider/pkg/gen/python-templates/yaml/yaml.tmpl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/provider/pkg/gen/python-templates/apiextensions/custom_resource.py b/provider/pkg/gen/python-templates/apiextensions/custom_resource.py index 2a90287bf0..85dba0e1ca 100644 --- a/provider/pkg/gen/python-templates/apiextensions/custom_resource.py +++ b/provider/pkg/gen/python-templates/apiextensions/custom_resource.py @@ -87,7 +87,7 @@ def get(resource_name, api_version, kind, id, opts=None): return CustomResource(resource_name=resource_name, api_version=api_version, kind=kind, opts=opts) def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/provider/pkg/gen/python-templates/yaml/yaml.tmpl b/provider/pkg/gen/python-templates/yaml/yaml.tmpl index 08f54d9b66..159da8dfbb 100644 --- a/provider/pkg/gen/python-templates/yaml/yaml.tmpl +++ b/provider/pkg/gen/python-templates/yaml/yaml.tmpl @@ -70,10 +70,10 @@ class ConfigFile(pulumi.ComponentResource): self.register_outputs({"resources": self.resources}) def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop def get_resource(self, group_version_kind, name, namespace=None) -> pulumi.Output[pulumi.CustomResource]: """ @@ -175,7 +175,7 @@ def _parse_yaml_object( # Convert obj keys to Python casing for key in list(obj.keys()): - new_key = tables._CASING_FORWARD_TABLE.get(key) or key + new_key = tables._CAMEL_TO_SNAKE_CASE_TABLE.get(key) or key if new_key != key: obj[new_key] = obj.pop(key) From 6c3f5444cfe810b7c4f3341d2c9b5f00419ba932 Mon Sep 17 00:00:00 2001 From: komal Date: Sun, 21 Jun 2020 22:37:36 -0700 Subject: [PATCH 13/25] codegen fixes --- .../v1/mutating_webhook_configuration.py | 4 +- .../v1/mutating_webhook_configuration_list.py | 4 +- .../v1/validating_webhook_configuration.py | 4 +- .../validating_webhook_configuration_list.py | 4 +- .../v1beta1/mutating_webhook_configuration.py | 4 +- .../mutating_webhook_configuration_list.py | 4 +- .../validating_webhook_configuration.py | 4 +- .../validating_webhook_configuration_list.py | 4 +- .../apiextensions/custom_resource.py | 4 +- .../v1/custom_resource_definition.py | 4 +- .../v1/custom_resource_definition_list.py | 4 +- .../v1beta1/custom_resource_definition.py | 4 +- .../custom_resource_definition_list.py | 4 +- .../apiregistration/v1/api_service.py | 4 +- .../apiregistration/v1/api_service_list.py | 4 +- .../apiregistration/v1beta1/api_service.py | 4 +- .../v1beta1/api_service_list.py | 4 +- .../apps/v1/controller_revision.py | 4 +- .../apps/v1/controller_revision_list.py | 4 +- .../pulumi_kubernetes/apps/v1/daemon_set.py | 4 +- .../apps/v1/daemon_set_list.py | 4 +- .../pulumi_kubernetes/apps/v1/deployment.py | 4 +- .../apps/v1/deployment_list.py | 4 +- .../pulumi_kubernetes/apps/v1/replica_set.py | 4 +- .../apps/v1/replica_set_list.py | 4 +- .../pulumi_kubernetes/apps/v1/stateful_set.py | 4 +- .../apps/v1/stateful_set_list.py | 4 +- .../apps/v1beta1/controller_revision.py | 4 +- .../apps/v1beta1/controller_revision_list.py | 4 +- .../apps/v1beta1/deployment.py | 4 +- .../apps/v1beta1/deployment_list.py | 4 +- .../apps/v1beta1/stateful_set.py | 4 +- .../apps/v1beta1/stateful_set_list.py | 4 +- .../apps/v1beta2/controller_revision.py | 4 +- .../apps/v1beta2/controller_revision_list.py | 4 +- .../apps/v1beta2/daemon_set.py | 4 +- .../apps/v1beta2/daemon_set_list.py | 4 +- .../apps/v1beta2/deployment.py | 4 +- .../apps/v1beta2/deployment_list.py | 4 +- .../apps/v1beta2/replica_set.py | 4 +- .../apps/v1beta2/replica_set_list.py | 4 +- .../apps/v1beta2/stateful_set.py | 4 +- .../apps/v1beta2/stateful_set_list.py | 4 +- .../auditregistration/v1alpha1/audit_sink.py | 4 +- .../v1alpha1/audit_sink_list.py | 4 +- .../authentication/v1/token_request.py | 4 +- .../authentication/v1/token_review.py | 4 +- .../authentication/v1beta1/token_review.py | 4 +- .../v1/local_subject_access_review.py | 4 +- .../v1/self_subject_access_review.py | 4 +- .../v1/self_subject_rules_review.py | 4 +- .../authorization/v1/subject_access_review.py | 4 +- .../v1beta1/local_subject_access_review.py | 4 +- .../v1beta1/self_subject_access_review.py | 4 +- .../v1beta1/self_subject_rules_review.py | 4 +- .../v1beta1/subject_access_review.py | 4 +- .../v1/horizontal_pod_autoscaler.py | 4 +- .../v1/horizontal_pod_autoscaler_list.py | 4 +- .../v2beta1/horizontal_pod_autoscaler.py | 4 +- .../v2beta1/horizontal_pod_autoscaler_list.py | 4 +- .../v2beta2/horizontal_pod_autoscaler.py | 4 +- .../v2beta2/horizontal_pod_autoscaler_list.py | 4 +- sdk/python/pulumi_kubernetes/batch/v1/job.py | 4 +- .../pulumi_kubernetes/batch/v1/job_list.py | 4 +- .../batch/v1beta1/cron_job.py | 4 +- .../batch/v1beta1/cron_job_list.py | 4 +- .../batch/v2alpha1/cron_job.py | 4 +- .../batch/v2alpha1/cron_job_list.py | 4 +- .../v1beta1/certificate_signing_request.py | 4 +- .../certificate_signing_request_list.py | 4 +- .../coordination/v1/lease.py | 4 +- .../coordination/v1/lease_list.py | 4 +- .../coordination/v1beta1/lease.py | 4 +- .../coordination/v1beta1/lease_list.py | 4 +- .../pulumi_kubernetes/core/v1/binding.py | 4 +- .../core/v1/component_status.py | 4 +- .../core/v1/component_status_list.py | 4 +- .../pulumi_kubernetes/core/v1/config_map.py | 4 +- .../core/v1/config_map_list.py | 4 +- .../pulumi_kubernetes/core/v1/endpoints.py | 4 +- .../core/v1/endpoints_list.py | 4 +- sdk/python/pulumi_kubernetes/core/v1/event.py | 4 +- .../pulumi_kubernetes/core/v1/event_list.py | 4 +- .../pulumi_kubernetes/core/v1/limit_range.py | 4 +- .../core/v1/limit_range_list.py | 4 +- .../pulumi_kubernetes/core/v1/namespace.py | 4 +- .../core/v1/namespace_list.py | 4 +- sdk/python/pulumi_kubernetes/core/v1/node.py | 4 +- .../pulumi_kubernetes/core/v1/node_list.py | 4 +- .../core/v1/persistent_volume.py | 4 +- .../core/v1/persistent_volume_claim.py | 4 +- .../core/v1/persistent_volume_claim_list.py | 4 +- .../core/v1/persistent_volume_list.py | 4 +- sdk/python/pulumi_kubernetes/core/v1/pod.py | 4 +- .../pulumi_kubernetes/core/v1/pod_list.py | 4 +- .../pulumi_kubernetes/core/v1/pod_template.py | 4 +- .../core/v1/pod_template_list.py | 4 +- .../core/v1/replication_controller.py | 4 +- .../core/v1/replication_controller_list.py | 4 +- .../core/v1/resource_quota.py | 4 +- .../core/v1/resource_quota_list.py | 4 +- .../pulumi_kubernetes/core/v1/secret.py | 4 +- .../pulumi_kubernetes/core/v1/secret_list.py | 4 +- .../pulumi_kubernetes/core/v1/service.py | 4 +- .../core/v1/service_account.py | 4 +- .../core/v1/service_account_list.py | 4 +- .../pulumi_kubernetes/core/v1/service_list.py | 4 +- .../discovery/v1beta1/endpoint_slice.py | 4 +- .../discovery/v1beta1/endpoint_slice_list.py | 4 +- .../pulumi_kubernetes/events/v1beta1/event.py | 4 +- .../events/v1beta1/event_list.py | 4 +- .../extensions/v1beta1/daemon_set.py | 4 +- .../extensions/v1beta1/daemon_set_list.py | 4 +- .../extensions/v1beta1/deployment.py | 4 +- .../extensions/v1beta1/deployment_list.py | 4 +- .../extensions/v1beta1/ingress.py | 4 +- .../extensions/v1beta1/ingress_list.py | 4 +- .../extensions/v1beta1/network_policy.py | 4 +- .../extensions/v1beta1/network_policy_list.py | 4 +- .../extensions/v1beta1/pod_security_policy.py | 4 +- .../v1beta1/pod_security_policy_list.py | 4 +- .../extensions/v1beta1/replica_set.py | 4 +- .../extensions/v1beta1/replica_set_list.py | 4 +- .../flowcontrol/v1alpha1/flow_schema.py | 4 +- .../flowcontrol/v1alpha1/flow_schema_list.py | 4 +- .../v1alpha1/priority_level_configuration.py | 4 +- .../priority_level_configuration_list.py | 4 +- .../pulumi_kubernetes/meta/v1/status.py | 4 +- .../networking/v1/network_policy.py | 4 +- .../networking/v1/network_policy_list.py | 4 +- .../networking/v1beta1/ingress.py | 4 +- .../networking/v1beta1/ingress_class.py | 4 +- .../networking/v1beta1/ingress_class_list.py | 4 +- .../networking/v1beta1/ingress_list.py | 4 +- .../node/v1alpha1/runtime_class.py | 4 +- .../node/v1alpha1/runtime_class_list.py | 4 +- .../node/v1beta1/runtime_class.py | 4 +- .../node/v1beta1/runtime_class_list.py | 4 +- .../policy/v1beta1/pod_disruption_budget.py | 4 +- .../v1beta1/pod_disruption_budget_list.py | 4 +- .../policy/v1beta1/pod_security_policy.py | 4 +- .../v1beta1/pod_security_policy_list.py | 4 +- .../pulumi_kubernetes/rbac/v1/cluster_role.py | 4 +- .../rbac/v1/cluster_role_binding.py | 4 +- .../rbac/v1/cluster_role_binding_list.py | 4 +- .../rbac/v1/cluster_role_list.py | 4 +- sdk/python/pulumi_kubernetes/rbac/v1/role.py | 4 +- .../pulumi_kubernetes/rbac/v1/role_binding.py | 4 +- .../rbac/v1/role_binding_list.py | 4 +- .../pulumi_kubernetes/rbac/v1/role_list.py | 4 +- .../rbac/v1alpha1/cluster_role.py | 4 +- .../rbac/v1alpha1/cluster_role_binding.py | 4 +- .../v1alpha1/cluster_role_binding_list.py | 4 +- .../rbac/v1alpha1/cluster_role_list.py | 4 +- .../pulumi_kubernetes/rbac/v1alpha1/role.py | 4 +- .../rbac/v1alpha1/role_binding.py | 4 +- .../rbac/v1alpha1/role_binding_list.py | 4 +- .../rbac/v1alpha1/role_list.py | 4 +- .../rbac/v1beta1/cluster_role.py | 4 +- .../rbac/v1beta1/cluster_role_binding.py | 4 +- .../rbac/v1beta1/cluster_role_binding_list.py | 4 +- .../rbac/v1beta1/cluster_role_list.py | 4 +- .../pulumi_kubernetes/rbac/v1beta1/role.py | 4 +- .../rbac/v1beta1/role_binding.py | 4 +- .../rbac/v1beta1/role_binding_list.py | 4 +- .../rbac/v1beta1/role_list.py | 4 +- .../scheduling/v1/priority_class.py | 4 +- .../scheduling/v1/priority_class_list.py | 4 +- .../scheduling/v1alpha1/priority_class.py | 4 +- .../v1alpha1/priority_class_list.py | 4 +- .../scheduling/v1beta1/priority_class.py | 4 +- .../scheduling/v1beta1/priority_class_list.py | 4 +- .../settings/v1alpha1/pod_preset.py | 4 +- .../settings/v1alpha1/pod_preset_list.py | 4 +- .../storage/v1/csi_driver.py | 4 +- .../storage/v1/csi_driver_list.py | 4 +- .../pulumi_kubernetes/storage/v1/csi_node.py | 4 +- .../storage/v1/csi_node_list.py | 4 +- .../storage/v1/storage_class.py | 4 +- .../storage/v1/storage_class_list.py | 4 +- .../storage/v1/volume_attachment.py | 4 +- .../storage/v1/volume_attachment_list.py | 4 +- .../storage/v1alpha1/volume_attachment.py | 4 +- .../v1alpha1/volume_attachment_list.py | 4 +- .../storage/v1beta1/csi_driver.py | 4 +- .../storage/v1beta1/csi_driver_list.py | 4 +- .../storage/v1beta1/csi_node.py | 4 +- .../storage/v1beta1/csi_node_list.py | 4 +- .../storage/v1beta1/storage_class.py | 4 +- .../storage/v1beta1/storage_class_list.py | 4 +- .../storage/v1beta1/volume_attachment.py | 4 +- .../storage/v1beta1/volume_attachment_list.py | 4 +- sdk/python/pulumi_kubernetes/tables.py | 254 +++++++++++++++++- sdk/python/pulumi_kubernetes/yaml.py | 6 +- 194 files changed, 639 insertions(+), 389 deletions(-) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py index cd85f0f790..8ba28082b8 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'admissionregistration.k8s.io/v1' + __props__['kind'] = 'MutatingWebhookConfiguration' __props__['metadata'] = metadata __props__['webhooks'] = webhooks alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration")]) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py index ae7620ebbb..4081595777 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'admissionregistration.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'MutatingWebhookConfigurationList' __props__['metadata'] = metadata super(MutatingWebhookConfigurationList, __self__).__init__( 'kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationList', diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py index 03b4fd8b97..87349534db 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'admissionregistration.k8s.io/v1' + __props__['kind'] = 'ValidatingWebhookConfiguration' __props__['metadata'] = metadata __props__['webhooks'] = webhooks alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration")]) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py index 3e5c908927..e3060a06ee 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'admissionregistration.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ValidatingWebhookConfigurationList' __props__['metadata'] = metadata super(ValidatingWebhookConfigurationList, __self__).__init__( 'kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfigurationList', diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py index ffc67cce81..dabe074309 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'admissionregistration.k8s.io/v1beta1' + __props__['kind'] = 'MutatingWebhookConfiguration' __props__['metadata'] = metadata __props__['webhooks'] = webhooks alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration")]) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py index 18e3f6ff83..8949b4e97b 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'admissionregistration.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'MutatingWebhookConfigurationList' __props__['metadata'] = metadata super(MutatingWebhookConfigurationList, __self__).__init__( 'kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfigurationList', diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py index dd74dc81e0..c7ff332e08 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'admissionregistration.k8s.io/v1beta1' + __props__['kind'] = 'ValidatingWebhookConfiguration' __props__['metadata'] = metadata __props__['webhooks'] = webhooks alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration")]) diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py index 1692b992d4..08fc93af4c 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'admissionregistration.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ValidatingWebhookConfigurationList' __props__['metadata'] = metadata super(ValidatingWebhookConfigurationList, __self__).__init__( 'kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfigurationList', diff --git a/sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py b/sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py index 2a90287bf0..85dba0e1ca 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py @@ -87,7 +87,7 @@ def get(resource_name, api_version, kind, id, opts=None): return CustomResource(resource_name=resource_name, api_version=api_version, kind=kind, opts=opts) def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py index 9536505514..86d81d6137 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apiextensions.k8s.io/v1' + __props__['kind'] = 'CustomResourceDefinition' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py index 1381628f9a..b3c83c5596 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py @@ -51,11 +51,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apiextensions.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'CustomResourceDefinitionList' __props__['metadata'] = metadata super(CustomResourceDefinitionList, __self__).__init__( 'kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinitionList', diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py index 44bc12b890..a80a815f7c 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apiextensions.k8s.io/v1beta1' + __props__['kind'] = 'CustomResourceDefinition' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py index c6a96c8db6..b000c8303e 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py @@ -51,11 +51,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apiextensions.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'CustomResourceDefinitionList' __props__['metadata'] = metadata super(CustomResourceDefinitionList, __self__).__init__( 'kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinitionList', diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py index 2c69a051aa..587a280804 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apiregistration.k8s.io/v1' + __props__['kind'] = 'APIService' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py index 7c3c2cf0b7..71d1536a59 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py @@ -47,11 +47,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apiregistration.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'APIServiceList' __props__['metadata'] = metadata alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration/v1:APIServiceList")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py index 83ea2b9a90..30b7c0ea6e 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apiregistration.k8s.io/v1beta1' + __props__['kind'] = 'APIService' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py index a593e22807..08bb9e015f 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py @@ -47,11 +47,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apiregistration.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'APIServiceList' __props__['metadata'] = metadata alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration/v1beta1:APIServiceList")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) diff --git a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py index 12a13820c4..d4c0e721c6 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py @@ -60,9 +60,9 @@ def __init__(__self__, resource_name, opts=None, api_version=None, data=None, ki raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1' __props__['data'] = data - __props__['kind'] = kind + __props__['kind'] = 'ControllerRevision' __props__['metadata'] = metadata if revision is None: raise TypeError("Missing required property 'revision'") diff --git a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py index 12cfb71513..b3e722999f 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ControllerRevisionList' __props__['metadata'] = metadata super(ControllerRevisionList, __self__).__init__( 'kubernetes:apps/v1:ControllerRevisionList', diff --git a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py index db063c1530..9d5a67f8d3 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apps/v1' + __props__['kind'] = 'DaemonSet' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py index ae4f72296c..d9f76c709a 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'DaemonSetList' __props__['metadata'] = metadata super(DaemonSetList, __self__).__init__( 'kubernetes:apps/v1:DaemonSetList', diff --git a/sdk/python/pulumi_kubernetes/apps/v1/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1/deployment.py index 47d5237e50..f0452ee490 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/deployment.py @@ -81,8 +81,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apps/v1' + __props__['kind'] = 'Deployment' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py index c8e98078ee..0bbfba12ca 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'DeploymentList' __props__['metadata'] = metadata super(DeploymentList, __self__).__init__( 'kubernetes:apps/v1:DeploymentList', diff --git a/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py b/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py index 74a103c9e9..4eefa1b616 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apps/v1' + __props__['kind'] = 'ReplicaSet' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py index 73872cfec9..b5dca41ff3 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ReplicaSetList' __props__['metadata'] = metadata super(ReplicaSetList, __self__).__init__( 'kubernetes:apps/v1:ReplicaSetList', diff --git a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py index c3bdcea8c2..3abe821688 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py @@ -71,8 +71,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apps/v1' + __props__['kind'] = 'StatefulSet' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py index 773efcb27c..b8c6122fc9 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py @@ -47,11 +47,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'StatefulSetList' __props__['metadata'] = metadata super(StatefulSetList, __self__).__init__( 'kubernetes:apps/v1:StatefulSetList', diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py index 7e3e3293d9..3d157d5f4c 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py @@ -65,9 +65,9 @@ def __init__(__self__, resource_name, opts=None, api_version=None, data=None, ki raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1beta1' __props__['data'] = data - __props__['kind'] = kind + __props__['kind'] = 'ControllerRevision' __props__['metadata'] = metadata if revision is None: raise TypeError("Missing required property 'revision'") diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py index 20e5c174cd..31690b322d 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ControllerRevisionList' __props__['metadata'] = metadata super(ControllerRevisionList, __self__).__init__( 'kubernetes:apps/v1beta1:ControllerRevisionList', diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py index 2332bf9e61..ddd6ab78ac 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py @@ -86,8 +86,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apps/v1beta1' + __props__['kind'] = 'Deployment' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py index 3bceb8dae2..1220942044 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'DeploymentList' __props__['metadata'] = metadata super(DeploymentList, __self__).__init__( 'kubernetes:apps/v1beta1:DeploymentList', diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py index ec84102991..effe9c04e4 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py @@ -76,8 +76,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apps/v1beta1' + __props__['kind'] = 'StatefulSet' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py index 8b3c02bd15..f42e8c8fae 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py @@ -47,11 +47,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'StatefulSetList' __props__['metadata'] = metadata super(StatefulSetList, __self__).__init__( 'kubernetes:apps/v1beta1:StatefulSetList', diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py index 5df2c2f3c4..207c85e9d5 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py @@ -65,9 +65,9 @@ def __init__(__self__, resource_name, opts=None, api_version=None, data=None, ki raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1beta2' __props__['data'] = data - __props__['kind'] = kind + __props__['kind'] = 'ControllerRevision' __props__['metadata'] = metadata if revision is None: raise TypeError("Missing required property 'revision'") diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py index ed292e7f9e..fa39dea2f8 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1beta2' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ControllerRevisionList' __props__['metadata'] = metadata super(ControllerRevisionList, __self__).__init__( 'kubernetes:apps/v1beta2:ControllerRevisionList', diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py index cb8f553de5..23fa382a48 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py @@ -64,8 +64,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apps/v1beta2' + __props__['kind'] = 'DaemonSet' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py index f68ff366ef..a365422731 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1beta2' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'DaemonSetList' __props__['metadata'] = metadata super(DaemonSetList, __self__).__init__( 'kubernetes:apps/v1beta2:DaemonSetList', diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py index 9899f6e22d..a663c47fd0 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py @@ -86,8 +86,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apps/v1beta2' + __props__['kind'] = 'Deployment' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py index cee794f818..0150556744 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1beta2' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'DeploymentList' __props__['metadata'] = metadata super(DeploymentList, __self__).__init__( 'kubernetes:apps/v1beta2:DeploymentList', diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py index 374251b270..0e6b878b5b 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py @@ -64,8 +64,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apps/v1beta2' + __props__['kind'] = 'ReplicaSet' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py index 0f11228608..75e2b86140 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1beta2' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ReplicaSetList' __props__['metadata'] = metadata super(ReplicaSetList, __self__).__init__( 'kubernetes:apps/v1beta2:ReplicaSetList', diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py index 3f3e85115c..9bee56bddd 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py @@ -76,8 +76,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'apps/v1beta2' + __props__['kind'] = 'StatefulSet' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py index 8c05b6b474..3329a4e28b 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py @@ -47,11 +47,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'apps/v1beta2' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'StatefulSetList' __props__['metadata'] = metadata super(StatefulSetList, __self__).__init__( 'kubernetes:apps/v1beta2:StatefulSetList', diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py index 57926b74c9..dbaea019d9 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py @@ -51,8 +51,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'auditregistration.k8s.io/v1alpha1' + __props__['kind'] = 'AuditSink' __props__['metadata'] = metadata __props__['spec'] = spec super(AuditSink, __self__).__init__( diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py index 633ec348e2..935722c2e2 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py @@ -51,11 +51,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'auditregistration.k8s.io/v1alpha1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'AuditSinkList' __props__['metadata'] = metadata super(AuditSinkList, __self__).__init__( 'kubernetes:auditregistration.k8s.io/v1alpha1:AuditSinkList', diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py b/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py index 8e62b04d8a..a9f8f84a88 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py @@ -48,8 +48,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'authentication.k8s.io/v1' + __props__['kind'] = 'TokenRequest' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py b/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py index 643368aa11..264dfba630 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'authentication.k8s.io/v1' + __props__['kind'] = 'TokenReview' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py index 666d6851c7..2d82b013cd 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'authentication.k8s.io/v1beta1' + __props__['kind'] = 'TokenReview' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py index 0d575d0d15..3d4723fe2c 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'authorization.k8s.io/v1' + __props__['kind'] = 'LocalSubjectAccessReview' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py index ac5fd5254d..b9cd5606e1 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'authorization.k8s.io/v1' + __props__['kind'] = 'SelfSubjectAccessReview' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py index 64113e0b69..3cbd4ba4d7 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'authorization.k8s.io/v1' + __props__['kind'] = 'SelfSubjectRulesReview' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py index bed185f238..86f7e14e98 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'authorization.k8s.io/v1' + __props__['kind'] = 'SubjectAccessReview' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py index 7564517eb0..50f0413ae8 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'authorization.k8s.io/v1beta1' + __props__['kind'] = 'LocalSubjectAccessReview' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py index 2ea0f4c49f..3bd29d571d 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'authorization.k8s.io/v1beta1' + __props__['kind'] = 'SelfSubjectAccessReview' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py index 15226e3ef3..1c7cd584bd 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'authorization.k8s.io/v1beta1' + __props__['kind'] = 'SelfSubjectRulesReview' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py index eac52b5b62..e0fe3789c8 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'authorization.k8s.io/v1beta1' + __props__['kind'] = 'SubjectAccessReview' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py index 6f1f8deb76..bcce7eacb7 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'autoscaling/v1' + __props__['kind'] = 'HorizontalPodAutoscaler' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py index 164082fbee..f5283e326a 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'autoscaling/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'HorizontalPodAutoscalerList' __props__['metadata'] = metadata super(HorizontalPodAutoscalerList, __self__).__init__( 'kubernetes:autoscaling/v1:HorizontalPodAutoscalerList', diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py index d10ca1510e..4eb6d83829 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'autoscaling/v2beta1' + __props__['kind'] = 'HorizontalPodAutoscaler' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py index 303690214f..5c28643f1f 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'autoscaling/v2beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'HorizontalPodAutoscalerList' __props__['metadata'] = metadata super(HorizontalPodAutoscalerList, __self__).__init__( 'kubernetes:autoscaling/v2beta1:HorizontalPodAutoscalerList', diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py index 7584b22513..bcca76ef69 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'autoscaling/v2beta2' + __props__['kind'] = 'HorizontalPodAutoscaler' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py index de84801ab6..a6c8886421 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'autoscaling/v2beta2' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'HorizontalPodAutoscalerList' __props__['metadata'] = metadata super(HorizontalPodAutoscalerList, __self__).__init__( 'kubernetes:autoscaling/v2beta2:HorizontalPodAutoscalerList', diff --git a/sdk/python/pulumi_kubernetes/batch/v1/job.py b/sdk/python/pulumi_kubernetes/batch/v1/job.py index dbbabbb1d2..06faa018be 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/job.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/job.py @@ -74,8 +74,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'batch/v1' + __props__['kind'] = 'Job' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/batch/v1/job_list.py b/sdk/python/pulumi_kubernetes/batch/v1/job_list.py index ea1f6138c9..727a52dcb8 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/job_list.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/job_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'batch/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'JobList' __props__['metadata'] = metadata super(JobList, __self__).__init__( 'kubernetes:batch/v1:JobList', diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py index 414fad77ee..560bc05f33 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'batch/v1beta1' + __props__['kind'] = 'CronJob' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py index 2de983a304..d39d51c84a 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'batch/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'CronJobList' __props__['metadata'] = metadata super(CronJobList, __self__).__init__( 'kubernetes:batch/v1beta1:CronJobList', diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py index 8faceb9521..e91410c8bc 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'batch/v2alpha1' + __props__['kind'] = 'CronJob' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py index 03406c0049..4dcd89c96f 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'batch/v2alpha1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'CronJobList' __props__['metadata'] = metadata super(CronJobList, __self__).__init__( 'kubernetes:batch/v2alpha1:CronJobList', diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py index 63f2fa1c0a..af00135f1d 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'certificates.k8s.io/v1beta1' + __props__['kind'] = 'CertificateSigningRequest' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py index 91af2ffa39..976a246d52 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py @@ -46,11 +46,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'certificates.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'CertificateSigningRequestList' __props__['metadata'] = metadata super(CertificateSigningRequestList, __self__).__init__( 'kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequestList', diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/lease.py b/sdk/python/pulumi_kubernetes/coordination/v1/lease.py index 2f0ab08ee9..d92d7af57d 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/lease.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'coordination.k8s.io/v1' + __props__['kind'] = 'Lease' __props__['metadata'] = metadata __props__['spec'] = spec alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:coordination.k8s.io/v1beta1:Lease")]) diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py b/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py index 2222af14fb..e7697e0dab 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'coordination.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'LeaseList' __props__['metadata'] = metadata super(LeaseList, __self__).__init__( 'kubernetes:coordination.k8s.io/v1:LeaseList', diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py index 15711a56a7..a2d253324f 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'coordination.k8s.io/v1beta1' + __props__['kind'] = 'Lease' __props__['metadata'] = metadata __props__['spec'] = spec alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:coordination.k8s.io/v1:Lease")]) diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py index 1752a1c402..d02f7cc3a5 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'coordination.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'LeaseList' __props__['metadata'] = metadata super(LeaseList, __self__).__init__( 'kubernetes:coordination.k8s.io/v1beta1:LeaseList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/binding.py b/sdk/python/pulumi_kubernetes/core/v1/binding.py index 1922d789a9..90726387e7 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/binding.py +++ b/sdk/python/pulumi_kubernetes/core/v1/binding.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'v1' + __props__['kind'] = 'Binding' __props__['metadata'] = metadata if target is None: raise TypeError("Missing required property 'target'") diff --git a/sdk/python/pulumi_kubernetes/core/v1/component_status.py b/sdk/python/pulumi_kubernetes/core/v1/component_status.py index 8b11c64439..be39a3eb1d 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/component_status.py +++ b/sdk/python/pulumi_kubernetes/core/v1/component_status.py @@ -55,9 +55,9 @@ def __init__(__self__, resource_name, opts=None, api_version=None, conditions=No raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' __props__['conditions'] = conditions - __props__['kind'] = kind + __props__['kind'] = 'ComponentStatus' __props__['metadata'] = metadata super(ComponentStatus, __self__).__init__( 'kubernetes:core/v1:ComponentStatus', diff --git a/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py b/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py index 9b70e1206e..dec69727ac 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ComponentStatusList' __props__['metadata'] = metadata super(ComponentStatusList, __self__).__init__( 'kubernetes:core/v1:ComponentStatusList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/config_map.py b/sdk/python/pulumi_kubernetes/core/v1/config_map.py index 927322c0bf..bfc50183c5 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/config_map.py +++ b/sdk/python/pulumi_kubernetes/core/v1/config_map.py @@ -65,11 +65,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, binary_data=N raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' __props__['binary_data'] = binary_data __props__['data'] = data __props__['immutable'] = immutable - __props__['kind'] = kind + __props__['kind'] = 'ConfigMap' __props__['metadata'] = metadata super(ConfigMap, __self__).__init__( 'kubernetes:core/v1:ConfigMap', diff --git a/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py b/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py index fdec86de8d..d0bc175c36 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ConfigMapList' __props__['metadata'] = metadata super(ConfigMapList, __self__).__init__( 'kubernetes:core/v1:ConfigMapList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/endpoints.py b/sdk/python/pulumi_kubernetes/core/v1/endpoints.py index 1bc681869c..e532563151 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/endpoints.py +++ b/sdk/python/pulumi_kubernetes/core/v1/endpoints.py @@ -66,8 +66,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'v1' + __props__['kind'] = 'Endpoints' __props__['metadata'] = metadata __props__['subsets'] = subsets super(Endpoints, __self__).__init__( diff --git a/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py b/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py index 0920ecebc9..308e8b5d31 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'EndpointsList' __props__['metadata'] = metadata super(EndpointsList, __self__).__init__( 'kubernetes:core/v1:EndpointsList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/event.py b/sdk/python/pulumi_kubernetes/core/v1/event.py index 6e765bb671..501ec25ee9 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/event.py +++ b/sdk/python/pulumi_kubernetes/core/v1/event.py @@ -121,14 +121,14 @@ def __init__(__self__, resource_name, opts=None, action=None, api_version=None, __props__ = dict() __props__['action'] = action - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' __props__['count'] = count __props__['event_time'] = event_time __props__['first_timestamp'] = first_timestamp if involved_object is None: raise TypeError("Missing required property 'involved_object'") __props__['involved_object'] = involved_object - __props__['kind'] = kind + __props__['kind'] = 'Event' __props__['last_timestamp'] = last_timestamp __props__['message'] = message if metadata is None: diff --git a/sdk/python/pulumi_kubernetes/core/v1/event_list.py b/sdk/python/pulumi_kubernetes/core/v1/event_list.py index b2396b4c9a..521bd02bd6 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/event_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/event_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'EventList' __props__['metadata'] = metadata super(EventList, __self__).__init__( 'kubernetes:core/v1:EventList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/limit_range.py b/sdk/python/pulumi_kubernetes/core/v1/limit_range.py index 1fbe99f6f2..6b18ebb708 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/limit_range.py +++ b/sdk/python/pulumi_kubernetes/core/v1/limit_range.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'v1' + __props__['kind'] = 'LimitRange' __props__['metadata'] = metadata __props__['spec'] = spec super(LimitRange, __self__).__init__( diff --git a/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py b/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py index 715dc9fcfd..60d56a6f8e 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'LimitRangeList' __props__['metadata'] = metadata super(LimitRangeList, __self__).__init__( 'kubernetes:core/v1:LimitRangeList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/namespace.py b/sdk/python/pulumi_kubernetes/core/v1/namespace.py index 1bb34b0ba9..427732cbc2 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/namespace.py +++ b/sdk/python/pulumi_kubernetes/core/v1/namespace.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'v1' + __props__['kind'] = 'Namespace' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py b/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py index f981da24fe..6c609129ed 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'NamespaceList' __props__['metadata'] = metadata super(NamespaceList, __self__).__init__( 'kubernetes:core/v1:NamespaceList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/node.py b/sdk/python/pulumi_kubernetes/core/v1/node.py index c042838650..24cf106a83 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/node.py +++ b/sdk/python/pulumi_kubernetes/core/v1/node.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'v1' + __props__['kind'] = 'Node' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/core/v1/node_list.py b/sdk/python/pulumi_kubernetes/core/v1/node_list.py index 2ae61fd120..82de885baf 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/node_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/node_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'NodeList' __props__['metadata'] = metadata super(NodeList, __self__).__init__( 'kubernetes:core/v1:NodeList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py index 900f72f932..a276f61d06 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'v1' + __props__['kind'] = 'PersistentVolume' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py index 02e1627af8..005ea03fed 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'v1' + __props__['kind'] = 'PersistentVolumeClaim' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py index 5e219ef493..8fa688edf7 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'PersistentVolumeClaimList' __props__['metadata'] = metadata super(PersistentVolumeClaimList, __self__).__init__( 'kubernetes:core/v1:PersistentVolumeClaimList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py index 6f9f37f2e2..ce780121fe 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'PersistentVolumeList' __props__['metadata'] = metadata super(PersistentVolumeList, __self__).__init__( 'kubernetes:core/v1:PersistentVolumeList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod.py b/sdk/python/pulumi_kubernetes/core/v1/pod.py index 8d6bfc671b..e368f68488 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/pod.py +++ b/sdk/python/pulumi_kubernetes/core/v1/pod.py @@ -74,8 +74,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'v1' + __props__['kind'] = 'Pod' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_list.py b/sdk/python/pulumi_kubernetes/core/v1/pod_list.py index 7d4e0923c5..8e318be7e0 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/pod_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/pod_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'PodList' __props__['metadata'] = metadata super(PodList, __self__).__init__( 'kubernetes:core/v1:PodList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_template.py b/sdk/python/pulumi_kubernetes/core/v1/pod_template.py index 83f18d1055..0984849455 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/pod_template.py +++ b/sdk/python/pulumi_kubernetes/core/v1/pod_template.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'v1' + __props__['kind'] = 'PodTemplate' __props__['metadata'] = metadata __props__['template'] = template super(PodTemplate, __self__).__init__( diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py b/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py index d77babc1da..c0b5c846d2 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'PodTemplateList' __props__['metadata'] = metadata super(PodTemplateList, __self__).__init__( 'kubernetes:core/v1:PodTemplateList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py b/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py index 9530aa55a2..94b6514311 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py +++ b/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'v1' + __props__['kind'] = 'ReplicationController' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py b/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py index f832822f66..92bb1cfa1c 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ReplicationControllerList' __props__['metadata'] = metadata super(ReplicationControllerList, __self__).__init__( 'kubernetes:core/v1:ReplicationControllerList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py b/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py index 70fbd5b090..fdfb247e7c 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py +++ b/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'v1' + __props__['kind'] = 'ResourceQuota' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py b/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py index 043b5c4ddc..b8b99f9d3e 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ResourceQuotaList' __props__['metadata'] = metadata super(ResourceQuotaList, __self__).__init__( 'kubernetes:core/v1:ResourceQuotaList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/secret.py b/sdk/python/pulumi_kubernetes/core/v1/secret.py index 1c220a2ae4..4b4a4ac4e4 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/secret.py +++ b/sdk/python/pulumi_kubernetes/core/v1/secret.py @@ -80,10 +80,10 @@ def __init__(__self__, resource_name, opts=None, api_version=None, data=None, im raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' __props__['data'] = data __props__['immutable'] = immutable - __props__['kind'] = kind + __props__['kind'] = 'Secret' __props__['metadata'] = metadata __props__['string_data'] = string_data __props__['type'] = type diff --git a/sdk/python/pulumi_kubernetes/core/v1/secret_list.py b/sdk/python/pulumi_kubernetes/core/v1/secret_list.py index bc72f9af25..83c3aa5ab9 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/secret_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/secret_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'SecretList' __props__['metadata'] = metadata super(SecretList, __self__).__init__( 'kubernetes:core/v1:SecretList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/service.py b/sdk/python/pulumi_kubernetes/core/v1/service.py index f1a09702cb..226c2866d9 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/service.py +++ b/sdk/python/pulumi_kubernetes/core/v1/service.py @@ -84,8 +84,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'v1' + __props__['kind'] = 'Service' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_account.py b/sdk/python/pulumi_kubernetes/core/v1/service_account.py index 7bd7ed6b0b..2da5b8e295 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/service_account.py +++ b/sdk/python/pulumi_kubernetes/core/v1/service_account.py @@ -65,10 +65,10 @@ def __init__(__self__, resource_name, opts=None, api_version=None, automount_ser raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' __props__['automount_service_account_token'] = automount_service_account_token __props__['image_pull_secrets'] = image_pull_secrets - __props__['kind'] = kind + __props__['kind'] = 'ServiceAccount' __props__['metadata'] = metadata __props__['secrets'] = secrets super(ServiceAccount, __self__).__init__( diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py b/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py index bd1c3682bb..231fe5d5d0 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ServiceAccountList' __props__['metadata'] = metadata super(ServiceAccountList, __self__).__init__( 'kubernetes:core/v1:ServiceAccountList', diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_list.py b/sdk/python/pulumi_kubernetes/core/v1/service_list.py index 76ea3f2464..9baee4e255 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/service_list.py +++ b/sdk/python/pulumi_kubernetes/core/v1/service_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ServiceList' __props__['metadata'] = metadata super(ServiceList, __self__).__init__( 'kubernetes:core/v1:ServiceList', diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py index 8091397608..28835b5783 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py @@ -68,11 +68,11 @@ def __init__(__self__, resource_name, opts=None, address_type=None, api_version= if address_type is None: raise TypeError("Missing required property 'address_type'") __props__['address_type'] = address_type - __props__['api_version'] = api_version + __props__['api_version'] = 'discovery.k8s.io/v1beta1' if endpoints is None: raise TypeError("Missing required property 'endpoints'") __props__['endpoints'] = endpoints - __props__['kind'] = kind + __props__['kind'] = 'EndpointSlice' __props__['metadata'] = metadata __props__['ports'] = ports super(EndpointSlice, __self__).__init__( diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py index 04a4aa7b7a..5ac8b3199e 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'discovery.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'EndpointSliceList' __props__['metadata'] = metadata super(EndpointSliceList, __self__).__init__( 'kubernetes:discovery.k8s.io/v1beta1:EndpointSliceList', diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/event.py b/sdk/python/pulumi_kubernetes/events/v1beta1/event.py index 491610eac4..8f24ac379c 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/event.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/event.py @@ -117,7 +117,7 @@ def __init__(__self__, resource_name, opts=None, action=None, api_version=None, __props__ = dict() __props__['action'] = action - __props__['api_version'] = api_version + __props__['api_version'] = 'events.k8s.io/v1beta1' __props__['deprecated_count'] = deprecated_count __props__['deprecated_first_timestamp'] = deprecated_first_timestamp __props__['deprecated_last_timestamp'] = deprecated_last_timestamp @@ -125,7 +125,7 @@ def __init__(__self__, resource_name, opts=None, action=None, api_version=None, if event_time is None: raise TypeError("Missing required property 'event_time'") __props__['event_time'] = event_time - __props__['kind'] = kind + __props__['kind'] = 'Event' __props__['metadata'] = metadata __props__['note'] = note __props__['reason'] = reason diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py b/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py index 3b210098ad..ae8e33a427 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'events.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'EventList' __props__['metadata'] = metadata super(EventList, __self__).__init__( 'kubernetes:events.k8s.io/v1beta1:EventList', diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py index f603730ac5..ad81258f24 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py @@ -64,8 +64,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'extensions/v1beta1' + __props__['kind'] = 'DaemonSet' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py index 3f10d262c8..f9a2e6a8cc 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'extensions/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'DaemonSetList' __props__['metadata'] = metadata super(DaemonSetList, __self__).__init__( 'kubernetes:extensions/v1beta1:DaemonSetList', diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py index edb8834c7a..36cbec5eb3 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py @@ -86,8 +86,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'extensions/v1beta1' + __props__['kind'] = 'Deployment' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py index ed5ad8172f..8fb637d3dc 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'extensions/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'DeploymentList' __props__['metadata'] = metadata super(DeploymentList, __self__).__init__( 'kubernetes:extensions/v1beta1:DeploymentList', diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py index 6c3a1c7ab6..c5989f9372 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py @@ -78,8 +78,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'extensions/v1beta1' + __props__['kind'] = 'Ingress' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py index f1eab963b3..6f322702ab 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'extensions/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'IngressList' __props__['metadata'] = metadata super(IngressList, __self__).__init__( 'kubernetes:extensions/v1beta1:IngressList', diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py index 0cadbbcdd4..b496c2894f 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'extensions/v1beta1' + __props__['kind'] = 'NetworkPolicy' __props__['metadata'] = metadata __props__['spec'] = spec alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:networking.k8s.io/v1:NetworkPolicy")]) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py index 166aec12e7..7e8745ac94 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'extensions/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'NetworkPolicyList' __props__['metadata'] = metadata super(NetworkPolicyList, __self__).__init__( 'kubernetes:extensions/v1beta1:NetworkPolicyList', diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py index ea08b6105a..f9ed6228b9 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'extensions/v1beta1' + __props__['kind'] = 'PodSecurityPolicy' __props__['metadata'] = metadata __props__['spec'] = spec alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:policy/v1beta1:PodSecurityPolicy")]) diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py index 0d70b86ce4..769821dbeb 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'extensions/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'PodSecurityPolicyList' __props__['metadata'] = metadata super(PodSecurityPolicyList, __self__).__init__( 'kubernetes:extensions/v1beta1:PodSecurityPolicyList', diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py index f2edc4cff8..3c8288a491 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py @@ -64,8 +64,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'extensions/v1beta1' + __props__['kind'] = 'ReplicaSet' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py index 6ce9f0381f..afb2d6bbad 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'extensions/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ReplicaSetList' __props__['metadata'] = metadata super(ReplicaSetList, __self__).__init__( 'kubernetes:extensions/v1beta1:ReplicaSetList', diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py index 63f4421e33..e322500ee7 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' + __props__['kind'] = 'FlowSchema' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py index dfb5b64713..8a75a02248 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'FlowSchemaList' __props__['metadata'] = metadata super(FlowSchemaList, __self__).__init__( 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchemaList', diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py index a2ccf32d61..5aa86462f7 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py @@ -59,8 +59,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' + __props__['kind'] = 'PriorityLevelConfiguration' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py index 87cf2b5157..03e73ecf6b 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'PriorityLevelConfigurationList' __props__['metadata'] = metadata super(PriorityLevelConfigurationList, __self__).__init__( 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfigurationList', diff --git a/sdk/python/pulumi_kubernetes/meta/v1/status.py b/sdk/python/pulumi_kubernetes/meta/v1/status.py index 03a61be6ae..b8b3ec0cf2 100644 --- a/sdk/python/pulumi_kubernetes/meta/v1/status.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/status.py @@ -74,10 +74,10 @@ def __init__(__self__, resource_name, opts=None, api_version=None, code=None, de raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'v1' __props__['code'] = code __props__['details'] = details - __props__['kind'] = kind + __props__['kind'] = 'Status' __props__['message'] = message __props__['metadata'] = metadata __props__['reason'] = reason diff --git a/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py b/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py index 18dc36fb0a..4ebd5da677 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'networking.k8s.io/v1' + __props__['kind'] = 'NetworkPolicy' __props__['metadata'] = metadata __props__['spec'] = spec alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:extensions/v1beta1:NetworkPolicy")]) diff --git a/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py b/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py index f49521e9a1..1e4be0abd4 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'networking.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'NetworkPolicyList' __props__['metadata'] = metadata super(NetworkPolicyList, __self__).__init__( 'kubernetes:networking.k8s.io/v1:NetworkPolicyList', diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py index 4b996668c1..2ec17e184b 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py @@ -73,8 +73,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'networking.k8s.io/v1beta1' + __props__['kind'] = 'Ingress' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py index c588e9a60c..479d141713 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'networking.k8s.io/v1beta1' + __props__['kind'] = 'IngressClass' __props__['metadata'] = metadata __props__['spec'] = spec super(IngressClass, __self__).__init__( diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py index 35ee72c732..7b3176da96 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'networking.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'IngressClassList' __props__['metadata'] = metadata super(IngressClassList, __self__).__init__( 'kubernetes:networking.k8s.io/v1beta1:IngressClassList', diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py index 7fc052b13f..f996912fd5 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'networking.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'IngressList' __props__['metadata'] = metadata super(IngressList, __self__).__init__( 'kubernetes:networking.k8s.io/v1beta1:IngressList', diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py index b92a55e901..1b2b3a52ab 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'node.k8s.io/v1alpha1' + __props__['kind'] = 'RuntimeClass' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py index 6e22f29258..00302265a2 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'node.k8s.io/v1alpha1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'RuntimeClassList' __props__['metadata'] = metadata super(RuntimeClassList, __self__).__init__( 'kubernetes:node.k8s.io/v1alpha1:RuntimeClassList', diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py index ee43fd3bff..8ccb8d94b7 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py @@ -65,11 +65,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, handler=None, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'node.k8s.io/v1beta1' if handler is None: raise TypeError("Missing required property 'handler'") __props__['handler'] = handler - __props__['kind'] = kind + __props__['kind'] = 'RuntimeClass' __props__['metadata'] = metadata __props__['overhead'] = overhead __props__['scheduling'] = scheduling diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py index 05aae3bba0..4403da6a6d 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'node.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'RuntimeClassList' __props__['metadata'] = metadata super(RuntimeClassList, __self__).__init__( 'kubernetes:node.k8s.io/v1beta1:RuntimeClassList', diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py index bf5232a1db..462c81f765 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'policy/v1beta1' + __props__['kind'] = 'PodDisruptionBudget' __props__['metadata'] = metadata __props__['spec'] = spec __props__['status'] = None diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py index e6a11d25c1..3a06311796 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py @@ -47,11 +47,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'policy/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'PodDisruptionBudgetList' __props__['metadata'] = metadata super(PodDisruptionBudgetList, __self__).__init__( 'kubernetes:policy/v1beta1:PodDisruptionBudgetList', diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py index b3aeaadefe..7aec18b162 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'policy/v1beta1' + __props__['kind'] = 'PodSecurityPolicy' __props__['metadata'] = metadata __props__['spec'] = spec alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:extensions/v1beta1:PodSecurityPolicy")]) diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py index a92e2fd12b..3b8749e3df 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'policy/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'PodSecurityPolicyList' __props__['metadata'] = metadata super(PodSecurityPolicyList, __self__).__init__( 'kubernetes:policy/v1beta1:PodSecurityPolicyList', diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py index 842eafab83..2d0e742d3f 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py @@ -61,8 +61,8 @@ def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_vers __props__ = dict() __props__['aggregation_rule'] = aggregation_rule - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' + __props__['kind'] = 'ClusterRole' __props__['metadata'] = metadata __props__['rules'] = rules alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole")]) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py index a8636213f6..16e9d9ec8c 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py @@ -60,8 +60,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' + __props__['kind'] = 'ClusterRoleBinding' __props__['metadata'] = metadata if role_ref is None: raise TypeError("Missing required property 'role_ref'") diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py index 58e6371e73..ce9c7b5b04 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ClusterRoleBindingList' __props__['metadata'] = metadata super(ClusterRoleBindingList, __self__).__init__( 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBindingList', diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py index 9081047af2..cb44f6e954 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ClusterRoleList' __props__['metadata'] = metadata super(ClusterRoleList, __self__).__init__( 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleList', diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1/role.py index 2eb0264f20..22eca3ae77 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' + __props__['kind'] = 'Role' __props__['metadata'] = metadata __props__['rules'] = rules alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:Role"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:Role")]) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py index bc1ae91024..2ef3a11f1e 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py @@ -60,8 +60,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' + __props__['kind'] = 'RoleBinding' __props__['metadata'] = metadata if role_ref is None: raise TypeError("Missing required property 'role_ref'") diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py index cfb2af266d..e80dcdc73e 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'RoleBindingList' __props__['metadata'] = metadata super(RoleBindingList, __self__).__init__( 'kubernetes:rbac.authorization.k8s.io/v1:RoleBindingList', diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py index dd69d47e15..782d383d55 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'RoleList' __props__['metadata'] = metadata super(RoleList, __self__).__init__( 'kubernetes:rbac.authorization.k8s.io/v1:RoleList', diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py index dae16d0840..d6fcdc86a0 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py @@ -61,8 +61,8 @@ def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_vers __props__ = dict() __props__['aggregation_rule'] = aggregation_rule - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' + __props__['kind'] = 'ClusterRole' __props__['metadata'] = metadata __props__['rules'] = rules alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRole"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole")]) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py index e2a89e4965..4559f9a01b 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py @@ -60,8 +60,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' + __props__['kind'] = 'ClusterRoleBinding' __props__['metadata'] = metadata if role_ref is None: raise TypeError("Missing required property 'role_ref'") diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py index fc0c2d03fc..d70c89578a 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ClusterRoleBindingList' __props__['metadata'] = metadata super(ClusterRoleBindingList, __self__).__init__( 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBindingList', diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py index 58966b7bcb..1e062467a8 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ClusterRoleList' __props__['metadata'] = metadata super(ClusterRoleList, __self__).__init__( 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleList', diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py index 6b15212553..4267f21831 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' + __props__['kind'] = 'Role' __props__['metadata'] = metadata __props__['rules'] = rules alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:Role"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:Role")]) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py index f39db6bd30..0db54ce08e 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py @@ -60,8 +60,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' + __props__['kind'] = 'RoleBinding' __props__['metadata'] = metadata if role_ref is None: raise TypeError("Missing required property 'role_ref'") diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py index 78ad5b100d..5ef646170f 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'RoleBindingList' __props__['metadata'] = metadata super(RoleBindingList, __self__).__init__( 'kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBindingList', diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py index 6c2b1e5051..b7edcc10b8 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'RoleList' __props__['metadata'] = metadata super(RoleList, __self__).__init__( 'kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleList', diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py index 018232c3f2..6cc4ab3734 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py @@ -61,8 +61,8 @@ def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_vers __props__ = dict() __props__['aggregation_rule'] = aggregation_rule - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' + __props__['kind'] = 'ClusterRole' __props__['metadata'] = metadata __props__['rules'] = rules alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRole"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole")]) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py index 031043b41f..f11be2fbac 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py @@ -60,8 +60,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' + __props__['kind'] = 'ClusterRoleBinding' __props__['metadata'] = metadata if role_ref is None: raise TypeError("Missing required property 'role_ref'") diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py index 2f928dcc96..34dc66aaba 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ClusterRoleBindingList' __props__['metadata'] = metadata super(ClusterRoleBindingList, __self__).__init__( 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBindingList', diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py index b31a911f66..2471d985a5 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'ClusterRoleList' __props__['metadata'] = metadata super(ClusterRoleList, __self__).__init__( 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleList', diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py index 98567196fa..a60355a204 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' + __props__['kind'] = 'Role' __props__['metadata'] = metadata __props__['rules'] = rules alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:Role"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:Role")]) diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py index cce5f921da..02ead8d445 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py @@ -60,8 +60,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' + __props__['kind'] = 'RoleBinding' __props__['metadata'] = metadata if role_ref is None: raise TypeError("Missing required property 'role_ref'") diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py index 2c69c899a5..4d667fb22b 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'RoleBindingList' __props__['metadata'] = metadata super(RoleBindingList, __self__).__init__( 'kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBindingList', diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py index bc3f7cd9c3..430ec71d28 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'RoleList' __props__['metadata'] = metadata super(RoleList, __self__).__init__( 'kubernetes:rbac.authorization.k8s.io/v1beta1:RoleList', diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py index d2cba23a35..70b01be4af 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py @@ -70,10 +70,10 @@ def __init__(__self__, resource_name, opts=None, api_version=None, description=N raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'scheduling.k8s.io/v1' __props__['description'] = description __props__['global_default'] = global_default - __props__['kind'] = kind + __props__['kind'] = 'PriorityClass' __props__['metadata'] = metadata __props__['preemption_policy'] = preemption_policy if value is None: diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py index 58d7bee930..e092668fd4 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'scheduling.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'PriorityClassList' __props__['metadata'] = metadata super(PriorityClassList, __self__).__init__( 'kubernetes:scheduling.k8s.io/v1:PriorityClassList', diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py index daab662fb1..963366ab54 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py @@ -70,10 +70,10 @@ def __init__(__self__, resource_name, opts=None, api_version=None, description=N raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'scheduling.k8s.io/v1alpha1' __props__['description'] = description __props__['global_default'] = global_default - __props__['kind'] = kind + __props__['kind'] = 'PriorityClass' __props__['metadata'] = metadata __props__['preemption_policy'] = preemption_policy if value is None: diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py index 38e4ecb28f..0724f2b85d 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'scheduling.k8s.io/v1alpha1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'PriorityClassList' __props__['metadata'] = metadata super(PriorityClassList, __self__).__init__( 'kubernetes:scheduling.k8s.io/v1alpha1:PriorityClassList', diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py index 7eb540354e..3ed23631ed 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py @@ -70,10 +70,10 @@ def __init__(__self__, resource_name, opts=None, api_version=None, description=N raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'scheduling.k8s.io/v1beta1' __props__['description'] = description __props__['global_default'] = global_default - __props__['kind'] = kind + __props__['kind'] = 'PriorityClass' __props__['metadata'] = metadata __props__['preemption_policy'] = preemption_policy if value is None: diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py index e3aa0e6e6f..f8ce6cf840 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'scheduling.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'PriorityClassList' __props__['metadata'] = metadata super(PriorityClassList, __self__).__init__( 'kubernetes:scheduling.k8s.io/v1beta1:PriorityClassList', diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py index 79669b7fbd..2a159a0399 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py @@ -47,8 +47,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'settings.k8s.io/v1alpha1' + __props__['kind'] = 'PodPreset' __props__['metadata'] = metadata __props__['spec'] = spec super(PodPreset, __self__).__init__( diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py index 7f7be35cdf..0c3361815b 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'settings.k8s.io/v1alpha1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'PodPresetList' __props__['metadata'] = metadata super(PodPresetList, __self__).__init__( 'kubernetes:settings.k8s.io/v1alpha1:PodPresetList', diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py index 9470d62cbc..8b27bd047b 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'storage.k8s.io/v1' + __props__['kind'] = 'CSIDriver' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py index bd92106a89..42d8f4b5d7 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'storage.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'CSIDriverList' __props__['metadata'] = metadata super(CSIDriverList, __self__).__init__( 'kubernetes:storage.k8s.io/v1:CSIDriverList', diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py index 246dafef20..20b513cd6a 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'storage.k8s.io/v1' + __props__['kind'] = 'CSINode' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py b/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py index 987d3649e9..128a51955f 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'storage.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'CSINodeList' __props__['metadata'] = metadata super(CSINodeList, __self__).__init__( 'kubernetes:storage.k8s.io/v1:CSINodeList', diff --git a/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py b/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py index f758a56637..87986f28a9 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py @@ -89,8 +89,8 @@ def __init__(__self__, resource_name, opts=None, allow_volume_expansion=None, al __props__['allow_volume_expansion'] = allow_volume_expansion __props__['allowed_topologies'] = allowed_topologies - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'storage.k8s.io/v1' + __props__['kind'] = 'StorageClass' __props__['metadata'] = metadata __props__['mount_options'] = mount_options __props__['parameters'] = parameters diff --git a/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py b/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py index cbef048fde..acd2729045 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'storage.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'StorageClassList' __props__['metadata'] = metadata super(StorageClassList, __self__).__init__( 'kubernetes:storage.k8s.io/v1:StorageClassList', diff --git a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py index b9cc07046d..9f4a2d000f 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py @@ -61,8 +61,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'storage.k8s.io/v1' + __props__['kind'] = 'VolumeAttachment' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py index 5272a1d443..977a95b40d 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'storage.k8s.io/v1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'VolumeAttachmentList' __props__['metadata'] = metadata super(VolumeAttachmentList, __self__).__init__( 'kubernetes:storage.k8s.io/v1:VolumeAttachmentList', diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py index 0e0c39ccad..6b9f74bae4 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py @@ -61,8 +61,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'storage.k8s.io/v1alpha1' + __props__['kind'] = 'VolumeAttachment' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py index 0323ae4443..3d24e2ad84 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'storage.k8s.io/v1alpha1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'VolumeAttachmentList' __props__['metadata'] = metadata super(VolumeAttachmentList, __self__).__init__( 'kubernetes:storage.k8s.io/v1alpha1:VolumeAttachmentList', diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py index e471471a15..e5b1537b57 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py @@ -55,8 +55,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'storage.k8s.io/v1beta1' + __props__['kind'] = 'CSIDriver' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py index 1ab65b8f2a..e7496f14fb 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'storage.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'CSIDriverList' __props__['metadata'] = metadata super(CSIDriverList, __self__).__init__( 'kubernetes:storage.k8s.io/v1beta1:CSIDriverList', diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py index 3d3a6db50c..fdc0f3f2f2 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py @@ -60,8 +60,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'storage.k8s.io/v1beta1' + __props__['kind'] = 'CSINode' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py index 1ad53653bb..6ca17bdaa8 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'storage.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'CSINodeList' __props__['metadata'] = metadata super(CSINodeList, __self__).__init__( 'kubernetes:storage.k8s.io/v1beta1:CSINodeList', diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py index 11fc06508c..1af2f64808 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py @@ -89,8 +89,8 @@ def __init__(__self__, resource_name, opts=None, allow_volume_expansion=None, al __props__['allow_volume_expansion'] = allow_volume_expansion __props__['allowed_topologies'] = allowed_topologies - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'storage.k8s.io/v1beta1' + __props__['kind'] = 'StorageClass' __props__['metadata'] = metadata __props__['mount_options'] = mount_options __props__['parameters'] = parameters diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py index fd9ceab384..af772a5d57 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'storage.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'StorageClassList' __props__['metadata'] = metadata super(StorageClassList, __self__).__init__( 'kubernetes:storage.k8s.io/v1beta1:StorageClassList', diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py index 28204e9812..66efb6ac36 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py @@ -61,8 +61,8 @@ def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, me raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version - __props__['kind'] = kind + __props__['api_version'] = 'storage.k8s.io/v1beta1' + __props__['kind'] = 'VolumeAttachment' __props__['metadata'] = metadata if spec is None: raise TypeError("Missing required property 'spec'") diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py index 693259fcbf..34c9f71159 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py @@ -55,11 +55,11 @@ def __init__(__self__, resource_name, opts=None, api_version=None, items=None, k raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['api_version'] = api_version + __props__['api_version'] = 'storage.k8s.io/v1beta1' if items is None: raise TypeError("Missing required property 'items'") __props__['items'] = items - __props__['kind'] = kind + __props__['kind'] = 'VolumeAttachmentList' __props__['metadata'] = metadata super(VolumeAttachmentList, __self__).__init__( 'kubernetes:storage.k8s.io/v1beta1:VolumeAttachmentList', diff --git a/sdk/python/pulumi_kubernetes/tables.py b/sdk/python/pulumi_kubernetes/tables.py index 9dedcce8fe..634022cc4b 100644 --- a/sdk/python/pulumi_kubernetes/tables.py +++ b/sdk/python/pulumi_kubernetes/tables.py @@ -13,6 +13,7 @@ "additional_printer_columns": "additionalPrinterColumns", "additional_properties": "additionalProperties", "address_type": "addressType", + "admission_review_versions": "admissionReviewVersions", "aggregation_rule": "aggregationRule", "all_of": "allOf", "allow_privilege_escalation": "allowPrivilegeEscalation", @@ -27,35 +28,51 @@ "allowed_unsafe_sysctls": "allowedUnsafeSysctls", "any_of": "anyOf", "api_group": "apiGroup", + "api_groups": "apiGroups", "api_version": "apiVersion", + "api_versions": "apiVersions", + "app_protocol": "appProtocol", "assured_concurrency_shares": "assuredConcurrencyShares", "attach_error": "attachError", "attach_required": "attachRequired", "attachment_metadata": "attachmentMetadata", "automount_service_account_token": "automountServiceAccountToken", "available_replicas": "availableReplicas", + "average_utilization": "averageUtilization", + "average_value": "averageValue", "aws_elastic_block_store": "awsElasticBlockStore", "azure_disk": "azureDisk", "azure_file": "azureFile", "backoff_limit": "backoffLimit", "binary_data": "binaryData", + "block_owner_deletion": "blockOwnerDeletion", "boot_id": "bootID", "bound_object_ref": "boundObjectRef", + "build_date": "buildDate", "ca_bundle": "caBundle", "caching_mode": "cachingMode", "chap_auth_discovery": "chapAuthDiscovery", "chap_auth_session": "chapAuthSession", + "claim_name": "claimName", "claim_ref": "claimRef", + "client_cidr": "clientCIDR", "client_config": "clientConfig", "client_ip": "clientIP", "cluster_ip": "clusterIP", "cluster_name": "clusterName", "cluster_role_selectors": "clusterRoleSelectors", + "cluster_scope": "clusterScope", "collision_count": "collisionCount", "completion_time": "completionTime", "concurrency_policy": "concurrencyPolicy", + "condition_type": "conditionType", "config_map": "configMap", + "config_map_key_ref": "configMapKeyRef", + "config_map_ref": "configMapRef", "config_source": "configSource", + "container_id": "containerID", + "container_name": "containerName", + "container_port": "containerPort", "container_runtime_version": "containerRuntimeVersion", "container_statuses": "containerStatuses", "continue_": "continue", @@ -63,29 +80,37 @@ "controller_publish_secret_ref": "controllerPublishSecretRef", "conversion_review_versions": "conversionReviewVersions", "creation_timestamp": "creationTimestamp", + "current_average_utilization": "currentAverageUtilization", + "current_average_value": "currentAverageValue", "current_cpu_utilization_percentage": "currentCPUUtilizationPercentage", "current_healthy": "currentHealthy", "current_metrics": "currentMetrics", "current_number_scheduled": "currentNumberScheduled", "current_replicas": "currentReplicas", "current_revision": "currentRevision", + "current_value": "currentValue", "daemon_endpoints": "daemonEndpoints", "data_source": "dataSource", "dataset_name": "datasetName", "dataset_uuid": "datasetUUID", "default_add_capabilities": "defaultAddCapabilities", "default_allow_privilege_escalation": "defaultAllowPrivilegeEscalation", + "default_mode": "defaultMode", + "default_request": "defaultRequest", "default_runtime_class_name": "defaultRuntimeClassName", + "delete_options": "deleteOptions", "deletion_grace_period_seconds": "deletionGracePeriodSeconds", "deletion_timestamp": "deletionTimestamp", "deprecated_count": "deprecatedCount", "deprecated_first_timestamp": "deprecatedFirstTimestamp", "deprecated_last_timestamp": "deprecatedLastTimestamp", "deprecated_source": "deprecatedSource", + "described_object": "describedObject", "desired_healthy": "desiredHealthy", "desired_number_scheduled": "desiredNumberScheduled", "desired_replicas": "desiredReplicas", "detach_error": "detachError", + "device_path": "devicePath", "disk_name": "diskName", "disk_uri": "diskURI", "disrupted_pods": "disruptedPods", @@ -93,6 +118,9 @@ "distinguisher_method": "distinguisherMethod", "dns_config": "dnsConfig", "dns_policy": "dnsPolicy", + "downward_api": "downwardAPI", + "dry_run": "dryRun", + "empty_dir": "emptyDir", "enable_service_links": "enableServiceLinks", "endpoints_namespace": "endpointsNamespace", "env_from": "envFrom", @@ -100,8 +128,11 @@ "ephemeral_containers": "ephemeralContainers", "evaluation_error": "evaluationError", "event_time": "eventTime", + "except_": "except", "exclusive_maximum": "exclusiveMaximum", "exclusive_minimum": "exclusiveMinimum", + "exec_": "exec", + "exit_code": "exitCode", "expected_pods": "expectedPods", "expiration_seconds": "expirationSeconds", "expiration_timestamp": "expirationTimestamp", @@ -111,20 +142,34 @@ "external_name": "externalName", "external_traffic_policy": "externalTrafficPolicy", "failed_jobs_history_limit": "failedJobsHistoryLimit", + "failure_policy": "failurePolicy", + "failure_threshold": "failureThreshold", "field_path": "fieldPath", + "field_ref": "fieldRef", + "fields_type": "fieldsType", + "fields_v1": "fieldsV1", + "finished_at": "finishedAt", "first_timestamp": "firstTimestamp", "flex_volume": "flexVolume", "forbidden_sysctls": "forbiddenSysctls", + "from_": "from", "fs_group": "fsGroup", "fs_group_change_policy": "fsGroupChangePolicy", "fs_type": "fsType", "fully_labeled_replicas": "fullyLabeledReplicas", "gce_persistent_disk": "gcePersistentDisk", "generate_name": "generateName", + "git_commit": "gitCommit", + "git_repo": "gitRepo", + "git_tree_state": "gitTreeState", + "git_version": "gitVersion", "global_default": "globalDefault", "gmsa_credential_spec": "gmsaCredentialSpec", "gmsa_credential_spec_name": "gmsaCredentialSpecName", + "go_version": "goVersion", + "grace_period_seconds": "gracePeriodSeconds", "group_priority_minimum": "groupPriorityMinimum", + "group_version": "groupVersion", "hand_size": "handSize", "health_check_node_port": "healthCheckNodePort", "holder_identity": "holderIdentity", @@ -134,33 +179,48 @@ "host_network": "hostNetwork", "host_path": "hostPath", "host_pid": "hostPID", + "host_port": "hostPort", "host_ports": "hostPorts", + "http_get": "httpGet", + "http_headers": "httpHeaders", + "image_id": "imageID", + "image_pull_policy": "imagePullPolicy", "image_pull_secrets": "imagePullSecrets", "ingress_class_name": "ingressClassName", "init_container_statuses": "initContainerStatuses", "init_containers": "initContainers", + "initial_delay_seconds": "initialDelaySeconds", "initiator_name": "initiatorName", "inline_volume_spec": "inlineVolumeSpec", "insecure_skip_tls_verify": "insecureSkipTLSVerify", "involved_object": "involvedObject", + "ip_block": "ipBlock", "ip_family": "ipFamily", "iscsi_interface": "iscsiInterface", "job_template": "jobTemplate", + "json_path": "JSONPath", "kernel_version": "kernelVersion", "kube_proxy_version": "kubeProxyVersion", "kubelet_config_key": "kubeletConfigKey", "kubelet_endpoint": "kubeletEndpoint", "kubelet_version": "kubeletVersion", + "label_selector": "labelSelector", "label_selector_path": "labelSelectorPath", + "last_heartbeat_time": "lastHeartbeatTime", "last_known_good": "lastKnownGood", "last_observed_time": "lastObservedTime", + "last_probe_time": "lastProbeTime", "last_scale_time": "lastScaleTime", "last_schedule_time": "lastScheduleTime", + "last_state": "lastState", "last_timestamp": "lastTimestamp", + "last_transition_time": "lastTransitionTime", + "last_update_time": "lastUpdateTime", "lease_duration_seconds": "leaseDurationSeconds", "lease_transitions": "leaseTransitions", "limit_response": "limitResponse", "list_kind": "listKind", + "liveness_probe": "livenessProbe", "load_balancer": "loadBalancer", "load_balancer_ip": "loadBalancerIP", "load_balancer_source_ranges": "loadBalancerSourceRanges", @@ -168,14 +228,21 @@ "managed_fields": "managedFields", "manual_selector": "manualSelector", "match_expressions": "matchExpressions", + "match_fields": "matchFields", + "match_label_expressions": "matchLabelExpressions", "match_labels": "matchLabels", + "match_policy": "matchPolicy", "matching_precedence": "matchingPrecedence", "max_items": "maxItems", "max_length": "maxLength", + "max_limit_request_ratio": "maxLimitRequestRatio", "max_properties": "maxProperties", "max_replicas": "maxReplicas", + "max_skew": "maxSkew", "max_surge": "maxSurge", "max_unavailable": "maxUnavailable", + "metric_name": "metricName", + "metric_selector": "metricSelector", "min_available": "minAvailable", "min_items": "minItems", "min_length": "minLength", @@ -183,10 +250,15 @@ "min_ready_seconds": "minReadySeconds", "min_replicas": "minReplicas", "mount_options": "mountOptions", + "mount_path": "mountPath", + "mount_propagation": "mountPropagation", "multiple_of": "multipleOf", + "namespace_selector": "namespaceSelector", "node_affinity": "nodeAffinity", + "node_id": "nodeID", "node_info": "nodeInfo", "node_name": "nodeName", + "node_port": "nodePort", "node_publish_secret_ref": "nodePublishSecretRef", "node_selector": "nodeSelector", "node_selector_terms": "nodeSelectorTerms", @@ -194,23 +266,33 @@ "nominated_node_name": "nominatedNodeName", "non_resource_attributes": "nonResourceAttributes", "non_resource_rules": "nonResourceRules", + "non_resource_ur_ls": "nonResourceURLs", + "not_": "not", + "not_ready_addresses": "notReadyAddresses", "number_available": "numberAvailable", "number_misscheduled": "numberMisscheduled", "number_ready": "numberReady", "number_unavailable": "numberUnavailable", + "object_selector": "objectSelector", "observed_generation": "observedGeneration", "one_of": "oneOf", "open_apiv3_schema": "openAPIV3Schema", "operating_system": "operatingSystem", + "orphan_dependents": "orphanDependents", "os_image": "osImage", "owner_references": "ownerReferences", + "path_prefix": "pathPrefix", + "path_type": "pathType", "pattern_properties": "patternProperties", "pd_id": "pdID", "pd_name": "pdName", + "period_seconds": "periodSeconds", + "persistent_volume_claim": "persistentVolumeClaim", "persistent_volume_name": "persistentVolumeName", "persistent_volume_reclaim_policy": "persistentVolumeReclaimPolicy", "photon_persistent_disk": "photonPersistentDisk", "pod_affinity": "podAffinity", + "pod_affinity_term": "podAffinityTerm", "pod_anti_affinity": "podAntiAffinity", "pod_cid_rs": "podCIDRs", "pod_cidr": "podCIDR", @@ -221,14 +303,18 @@ "pod_management_policy": "podManagementPolicy", "pod_selector": "podSelector", "policy_types": "policyTypes", - "port": "Port", "portworx_volume": "portworxVolume", + "post_start": "postStart", + "pre_stop": "preStop", "preemption_policy": "preemptionPolicy", "preferred_during_scheduling_ignored_during_execution": "preferredDuringSchedulingIgnoredDuringExecution", + "preferred_version": "preferredVersion", "preserve_unknown_fields": "preserveUnknownFields", "priority_class_name": "priorityClassName", "priority_level_configuration": "priorityLevelConfiguration", + "proc_mount": "procMount", "progress_deadline_seconds": "progressDeadlineSeconds", + "propagation_policy": "propagationPolicy", "protection_domain": "protectionDomain", "provider_id": "providerID", "publish_not_ready_addresses": "publishNotReadyAddresses", @@ -237,8 +323,10 @@ "read_only": "readOnly", "read_only_root_filesystem": "readOnlyRootFilesystem", "readiness_gates": "readinessGates", + "readiness_probe": "readinessProbe", "ready_replicas": "readyReplicas", "reclaim_policy": "reclaimPolicy", + "reinvocation_policy": "reinvocationPolicy", "remaining_item_count": "remainingItemCount", "renew_time": "renewTime", "reporting_component": "reportingComponent", @@ -247,8 +335,11 @@ "required_drop_capabilities": "requiredDropCapabilities", "required_during_scheduling_ignored_during_execution": "requiredDuringSchedulingIgnoredDuringExecution", "resource_attributes": "resourceAttributes", + "resource_field_ref": "resourceFieldRef", + "resource_names": "resourceNames", "resource_rules": "resourceRules", "resource_version": "resourceVersion", + "restart_count": "restartCount", "restart_policy": "restartPolicy", "retry_after_seconds": "retryAfterSeconds", "revision_history_limit": "revisionHistoryLimit", @@ -267,18 +358,23 @@ "scale_target_ref": "scaleTargetRef", "scale_up": "scaleUp", "scheduler_name": "schedulerName", + "scope_name": "scopeName", "scope_selector": "scopeSelector", "se_linux": "seLinux", "se_linux_options": "seLinuxOptions", "secret_file": "secretFile", + "secret_key_ref": "secretKeyRef", "secret_name": "secretName", "secret_namespace": "secretNamespace", "secret_ref": "secretRef", "security_context": "securityContext", "select_policy": "selectPolicy", "self_link": "selfLink", + "server_address": "serverAddress", + "server_address_by_client_cid_rs": "serverAddressByClientCIDRs", "service_account": "serviceAccount", "service_account_name": "serviceAccountName", + "service_account_token": "serviceAccountToken", "service_name": "serviceName", "service_port": "servicePort", "session_affinity": "sessionAffinity", @@ -286,29 +382,53 @@ "share_name": "shareName", "share_process_namespace": "shareProcessNamespace", "short_names": "shortNames", + "side_effects": "sideEffects", "signer_name": "signerName", + "singular_name": "singularName", + "size_bytes": "sizeBytes", + "size_limit": "sizeLimit", "spec_replicas_path": "specReplicasPath", "ssl_enabled": "sslEnabled", "stabilization_window_seconds": "stabilizationWindowSeconds", "start_time": "startTime", + "started_at": "startedAt", "starting_deadline_seconds": "startingDeadlineSeconds", + "startup_probe": "startupProbe", "status_replicas_path": "statusReplicasPath", + "stdin_once": "stdinOnce", "storage_class_name": "storageClassName", "storage_mode": "storageMode", "storage_policy_id": "storagePolicyID", "storage_policy_name": "storagePolicyName", "storage_pool": "storagePool", + "storage_version_hash": "storageVersionHash", "stored_versions": "storedVersions", "string_data": "stringData", + "sub_path": "subPath", + "sub_path_expr": "subPathExpr", + "success_threshold": "successThreshold", "successful_jobs_history_limit": "successfulJobsHistoryLimit", "supplemental_groups": "supplementalGroups", "system_uuid": "systemUUID", + "target_average_utilization": "targetAverageUtilization", + "target_average_value": "targetAverageValue", + "target_container_name": "targetContainerName", "target_cpu_utilization_percentage": "targetCPUUtilizationPercentage", + "target_port": "targetPort", "target_portal": "targetPortal", + "target_ref": "targetRef", + "target_selector": "targetSelector", + "target_value": "targetValue", "target_ww_ns": "targetWWNs", + "tcp_socket": "tcpSocket", "template_generation": "templateGeneration", "termination_grace_period_seconds": "terminationGracePeriodSeconds", + "termination_message_path": "terminationMessagePath", + "termination_message_policy": "terminationMessagePolicy", + "time_added": "timeAdded", "timeout_seconds": "timeoutSeconds", + "toleration_seconds": "tolerationSeconds", + "topology_key": "topologyKey", "topology_keys": "topologyKeys", "topology_spread_constraints": "topologySpreadConstraints", "ttl_seconds_after_finished": "ttlSecondsAfterFinished", @@ -316,12 +436,15 @@ "unique_items": "uniqueItems", "update_revision": "updateRevision", "update_strategy": "updateStrategy", + "updated_annotations": "updatedAnnotations", "updated_number_scheduled": "updatedNumberScheduled", "updated_replicas": "updatedReplicas", + "value_from": "valueFrom", "version_priority": "versionPriority", "volume_attributes": "volumeAttributes", "volume_binding_mode": "volumeBindingMode", "volume_claim_templates": "volumeClaimTemplates", + "volume_devices": "volumeDevices", "volume_handle": "volumeHandle", "volume_id": "volumeID", "volume_lifecycle_modes": "volumeLifecycleModes", @@ -334,7 +457,9 @@ "volumes_in_use": "volumesInUse", "vsphere_volume": "vsphereVolume", "webhook_client_config": "webhookClientConfig", + "when_unsatisfiable": "whenUnsatisfiable", "windows_options": "windowsOptions", + "working_dir": "workingDir", } _CAMEL_TO_SNAKE_CASE_TABLE = { @@ -348,6 +473,7 @@ "additionalPrinterColumns": "additional_printer_columns", "additionalProperties": "additional_properties", "addressType": "address_type", + "admissionReviewVersions": "admission_review_versions", "aggregationRule": "aggregation_rule", "allOf": "all_of", "allowPrivilegeEscalation": "allow_privilege_escalation", @@ -362,35 +488,51 @@ "allowedUnsafeSysctls": "allowed_unsafe_sysctls", "anyOf": "any_of", "apiGroup": "api_group", + "apiGroups": "api_groups", "apiVersion": "api_version", + "apiVersions": "api_versions", + "appProtocol": "app_protocol", "assuredConcurrencyShares": "assured_concurrency_shares", "attachError": "attach_error", "attachRequired": "attach_required", "attachmentMetadata": "attachment_metadata", "automountServiceAccountToken": "automount_service_account_token", "availableReplicas": "available_replicas", + "averageUtilization": "average_utilization", + "averageValue": "average_value", "awsElasticBlockStore": "aws_elastic_block_store", "azureDisk": "azure_disk", "azureFile": "azure_file", "backoffLimit": "backoff_limit", "binaryData": "binary_data", + "blockOwnerDeletion": "block_owner_deletion", "bootID": "boot_id", "boundObjectRef": "bound_object_ref", + "buildDate": "build_date", "caBundle": "ca_bundle", "cachingMode": "caching_mode", "chapAuthDiscovery": "chap_auth_discovery", "chapAuthSession": "chap_auth_session", + "claimName": "claim_name", "claimRef": "claim_ref", + "clientCIDR": "client_cidr", "clientConfig": "client_config", "clientIP": "client_ip", "clusterIP": "cluster_ip", "clusterName": "cluster_name", "clusterRoleSelectors": "cluster_role_selectors", + "clusterScope": "cluster_scope", "collisionCount": "collision_count", "completionTime": "completion_time", "concurrencyPolicy": "concurrency_policy", + "conditionType": "condition_type", "configMap": "config_map", + "configMapKeyRef": "config_map_key_ref", + "configMapRef": "config_map_ref", "configSource": "config_source", + "containerID": "container_id", + "containerName": "container_name", + "containerPort": "container_port", "containerRuntimeVersion": "container_runtime_version", "containerStatuses": "container_statuses", "continue": "continue_", @@ -398,29 +540,37 @@ "controllerPublishSecretRef": "controller_publish_secret_ref", "conversionReviewVersions": "conversion_review_versions", "creationTimestamp": "creation_timestamp", + "currentAverageUtilization": "current_average_utilization", + "currentAverageValue": "current_average_value", "currentCPUUtilizationPercentage": "current_cpu_utilization_percentage", "currentHealthy": "current_healthy", "currentMetrics": "current_metrics", "currentNumberScheduled": "current_number_scheduled", "currentReplicas": "current_replicas", "currentRevision": "current_revision", + "currentValue": "current_value", "daemonEndpoints": "daemon_endpoints", "dataSource": "data_source", "datasetName": "dataset_name", "datasetUUID": "dataset_uuid", "defaultAddCapabilities": "default_add_capabilities", "defaultAllowPrivilegeEscalation": "default_allow_privilege_escalation", + "defaultMode": "default_mode", + "defaultRequest": "default_request", "defaultRuntimeClassName": "default_runtime_class_name", + "deleteOptions": "delete_options", "deletionGracePeriodSeconds": "deletion_grace_period_seconds", "deletionTimestamp": "deletion_timestamp", "deprecatedCount": "deprecated_count", "deprecatedFirstTimestamp": "deprecated_first_timestamp", "deprecatedLastTimestamp": "deprecated_last_timestamp", "deprecatedSource": "deprecated_source", + "describedObject": "described_object", "desiredHealthy": "desired_healthy", "desiredNumberScheduled": "desired_number_scheduled", "desiredReplicas": "desired_replicas", "detachError": "detach_error", + "devicePath": "device_path", "diskName": "disk_name", "diskURI": "disk_uri", "disruptedPods": "disrupted_pods", @@ -428,6 +578,9 @@ "distinguisherMethod": "distinguisher_method", "dnsConfig": "dns_config", "dnsPolicy": "dns_policy", + "downwardAPI": "downward_api", + "dryRun": "dry_run", + "emptyDir": "empty_dir", "enableServiceLinks": "enable_service_links", "endpointsNamespace": "endpoints_namespace", "envFrom": "env_from", @@ -435,8 +588,11 @@ "ephemeralContainers": "ephemeral_containers", "evaluationError": "evaluation_error", "eventTime": "event_time", + "except": "except_", "exclusiveMaximum": "exclusive_maximum", "exclusiveMinimum": "exclusive_minimum", + "exec": "exec_", + "exitCode": "exit_code", "expectedPods": "expected_pods", "expirationSeconds": "expiration_seconds", "expirationTimestamp": "expiration_timestamp", @@ -446,20 +602,34 @@ "externalName": "external_name", "externalTrafficPolicy": "external_traffic_policy", "failedJobsHistoryLimit": "failed_jobs_history_limit", + "failurePolicy": "failure_policy", + "failureThreshold": "failure_threshold", "fieldPath": "field_path", + "fieldRef": "field_ref", + "fieldsType": "fields_type", + "fieldsV1": "fields_v1", + "finishedAt": "finished_at", "firstTimestamp": "first_timestamp", "flexVolume": "flex_volume", "forbiddenSysctls": "forbidden_sysctls", + "from": "from_", "fsGroup": "fs_group", "fsGroupChangePolicy": "fs_group_change_policy", "fsType": "fs_type", "fullyLabeledReplicas": "fully_labeled_replicas", "gcePersistentDisk": "gce_persistent_disk", "generateName": "generate_name", + "gitCommit": "git_commit", + "gitRepo": "git_repo", + "gitTreeState": "git_tree_state", + "gitVersion": "git_version", "globalDefault": "global_default", "gmsaCredentialSpec": "gmsa_credential_spec", "gmsaCredentialSpecName": "gmsa_credential_spec_name", + "goVersion": "go_version", + "gracePeriodSeconds": "grace_period_seconds", "groupPriorityMinimum": "group_priority_minimum", + "groupVersion": "group_version", "handSize": "hand_size", "healthCheckNodePort": "health_check_node_port", "holderIdentity": "holder_identity", @@ -469,33 +639,48 @@ "hostNetwork": "host_network", "hostPath": "host_path", "hostPID": "host_pid", + "hostPort": "host_port", "hostPorts": "host_ports", + "httpGet": "http_get", + "httpHeaders": "http_headers", + "imageID": "image_id", + "imagePullPolicy": "image_pull_policy", "imagePullSecrets": "image_pull_secrets", "ingressClassName": "ingress_class_name", "initContainerStatuses": "init_container_statuses", "initContainers": "init_containers", + "initialDelaySeconds": "initial_delay_seconds", "initiatorName": "initiator_name", "inlineVolumeSpec": "inline_volume_spec", "insecureSkipTLSVerify": "insecure_skip_tls_verify", "involvedObject": "involved_object", + "ipBlock": "ip_block", "ipFamily": "ip_family", "iscsiInterface": "iscsi_interface", "jobTemplate": "job_template", + "JSONPath": "json_path", "kernelVersion": "kernel_version", "kubeProxyVersion": "kube_proxy_version", "kubeletConfigKey": "kubelet_config_key", "kubeletEndpoint": "kubelet_endpoint", "kubeletVersion": "kubelet_version", + "labelSelector": "label_selector", "labelSelectorPath": "label_selector_path", + "lastHeartbeatTime": "last_heartbeat_time", "lastKnownGood": "last_known_good", "lastObservedTime": "last_observed_time", + "lastProbeTime": "last_probe_time", "lastScaleTime": "last_scale_time", "lastScheduleTime": "last_schedule_time", + "lastState": "last_state", "lastTimestamp": "last_timestamp", + "lastTransitionTime": "last_transition_time", + "lastUpdateTime": "last_update_time", "leaseDurationSeconds": "lease_duration_seconds", "leaseTransitions": "lease_transitions", "limitResponse": "limit_response", "listKind": "list_kind", + "livenessProbe": "liveness_probe", "loadBalancer": "load_balancer", "loadBalancerIP": "load_balancer_ip", "loadBalancerSourceRanges": "load_balancer_source_ranges", @@ -503,14 +688,21 @@ "managedFields": "managed_fields", "manualSelector": "manual_selector", "matchExpressions": "match_expressions", + "matchFields": "match_fields", + "matchLabelExpressions": "match_label_expressions", "matchLabels": "match_labels", + "matchPolicy": "match_policy", "matchingPrecedence": "matching_precedence", "maxItems": "max_items", "maxLength": "max_length", + "maxLimitRequestRatio": "max_limit_request_ratio", "maxProperties": "max_properties", "maxReplicas": "max_replicas", + "maxSkew": "max_skew", "maxSurge": "max_surge", "maxUnavailable": "max_unavailable", + "metricName": "metric_name", + "metricSelector": "metric_selector", "minAvailable": "min_available", "minItems": "min_items", "minLength": "min_length", @@ -518,10 +710,15 @@ "minReadySeconds": "min_ready_seconds", "minReplicas": "min_replicas", "mountOptions": "mount_options", + "mountPath": "mount_path", + "mountPropagation": "mount_propagation", "multipleOf": "multiple_of", + "namespaceSelector": "namespace_selector", "nodeAffinity": "node_affinity", + "nodeID": "node_id", "nodeInfo": "node_info", "nodeName": "node_name", + "nodePort": "node_port", "nodePublishSecretRef": "node_publish_secret_ref", "nodeSelector": "node_selector", "nodeSelectorTerms": "node_selector_terms", @@ -529,23 +726,33 @@ "nominatedNodeName": "nominated_node_name", "nonResourceAttributes": "non_resource_attributes", "nonResourceRules": "non_resource_rules", + "nonResourceURLs": "non_resource_ur_ls", + "not": "not_", + "notReadyAddresses": "not_ready_addresses", "numberAvailable": "number_available", "numberMisscheduled": "number_misscheduled", "numberReady": "number_ready", "numberUnavailable": "number_unavailable", + "objectSelector": "object_selector", "observedGeneration": "observed_generation", "oneOf": "one_of", "openAPIV3Schema": "open_apiv3_schema", "operatingSystem": "operating_system", + "orphanDependents": "orphan_dependents", "osImage": "os_image", "ownerReferences": "owner_references", + "pathPrefix": "path_prefix", + "pathType": "path_type", "patternProperties": "pattern_properties", "pdID": "pd_id", "pdName": "pd_name", + "periodSeconds": "period_seconds", + "persistentVolumeClaim": "persistent_volume_claim", "persistentVolumeName": "persistent_volume_name", "persistentVolumeReclaimPolicy": "persistent_volume_reclaim_policy", "photonPersistentDisk": "photon_persistent_disk", "podAffinity": "pod_affinity", + "podAffinityTerm": "pod_affinity_term", "podAntiAffinity": "pod_anti_affinity", "podCIDRs": "pod_cid_rs", "podCIDR": "pod_cidr", @@ -556,14 +763,18 @@ "podManagementPolicy": "pod_management_policy", "podSelector": "pod_selector", "policyTypes": "policy_types", - "Port": "port", "portworxVolume": "portworx_volume", + "postStart": "post_start", + "preStop": "pre_stop", "preemptionPolicy": "preemption_policy", "preferredDuringSchedulingIgnoredDuringExecution": "preferred_during_scheduling_ignored_during_execution", + "preferredVersion": "preferred_version", "preserveUnknownFields": "preserve_unknown_fields", "priorityClassName": "priority_class_name", "priorityLevelConfiguration": "priority_level_configuration", + "procMount": "proc_mount", "progressDeadlineSeconds": "progress_deadline_seconds", + "propagationPolicy": "propagation_policy", "protectionDomain": "protection_domain", "providerID": "provider_id", "publishNotReadyAddresses": "publish_not_ready_addresses", @@ -572,8 +783,10 @@ "readOnly": "read_only", "readOnlyRootFilesystem": "read_only_root_filesystem", "readinessGates": "readiness_gates", + "readinessProbe": "readiness_probe", "readyReplicas": "ready_replicas", "reclaimPolicy": "reclaim_policy", + "reinvocationPolicy": "reinvocation_policy", "remainingItemCount": "remaining_item_count", "renewTime": "renew_time", "reportingComponent": "reporting_component", @@ -582,8 +795,11 @@ "requiredDropCapabilities": "required_drop_capabilities", "requiredDuringSchedulingIgnoredDuringExecution": "required_during_scheduling_ignored_during_execution", "resourceAttributes": "resource_attributes", + "resourceFieldRef": "resource_field_ref", + "resourceNames": "resource_names", "resourceRules": "resource_rules", "resourceVersion": "resource_version", + "restartCount": "restart_count", "restartPolicy": "restart_policy", "retryAfterSeconds": "retry_after_seconds", "revisionHistoryLimit": "revision_history_limit", @@ -602,18 +818,23 @@ "scaleTargetRef": "scale_target_ref", "scaleUp": "scale_up", "schedulerName": "scheduler_name", + "scopeName": "scope_name", "scopeSelector": "scope_selector", "seLinux": "se_linux", "seLinuxOptions": "se_linux_options", "secretFile": "secret_file", + "secretKeyRef": "secret_key_ref", "secretName": "secret_name", "secretNamespace": "secret_namespace", "secretRef": "secret_ref", "securityContext": "security_context", "selectPolicy": "select_policy", "selfLink": "self_link", + "serverAddress": "server_address", + "serverAddressByClientCIDRs": "server_address_by_client_cid_rs", "serviceAccount": "service_account", "serviceAccountName": "service_account_name", + "serviceAccountToken": "service_account_token", "serviceName": "service_name", "servicePort": "service_port", "sessionAffinity": "session_affinity", @@ -621,29 +842,53 @@ "shareName": "share_name", "shareProcessNamespace": "share_process_namespace", "shortNames": "short_names", + "sideEffects": "side_effects", "signerName": "signer_name", + "singularName": "singular_name", + "sizeBytes": "size_bytes", + "sizeLimit": "size_limit", "specReplicasPath": "spec_replicas_path", "sslEnabled": "ssl_enabled", "stabilizationWindowSeconds": "stabilization_window_seconds", "startTime": "start_time", + "startedAt": "started_at", "startingDeadlineSeconds": "starting_deadline_seconds", + "startupProbe": "startup_probe", "statusReplicasPath": "status_replicas_path", + "stdinOnce": "stdin_once", "storageClassName": "storage_class_name", "storageMode": "storage_mode", "storagePolicyID": "storage_policy_id", "storagePolicyName": "storage_policy_name", "storagePool": "storage_pool", + "storageVersionHash": "storage_version_hash", "storedVersions": "stored_versions", "stringData": "string_data", + "subPath": "sub_path", + "subPathExpr": "sub_path_expr", + "successThreshold": "success_threshold", "successfulJobsHistoryLimit": "successful_jobs_history_limit", "supplementalGroups": "supplemental_groups", "systemUUID": "system_uuid", + "targetAverageUtilization": "target_average_utilization", + "targetAverageValue": "target_average_value", + "targetContainerName": "target_container_name", "targetCPUUtilizationPercentage": "target_cpu_utilization_percentage", + "targetPort": "target_port", "targetPortal": "target_portal", + "targetRef": "target_ref", + "targetSelector": "target_selector", + "targetValue": "target_value", "targetWWNs": "target_ww_ns", + "tcpSocket": "tcp_socket", "templateGeneration": "template_generation", "terminationGracePeriodSeconds": "termination_grace_period_seconds", + "terminationMessagePath": "termination_message_path", + "terminationMessagePolicy": "termination_message_policy", + "timeAdded": "time_added", "timeoutSeconds": "timeout_seconds", + "tolerationSeconds": "toleration_seconds", + "topologyKey": "topology_key", "topologyKeys": "topology_keys", "topologySpreadConstraints": "topology_spread_constraints", "ttlSecondsAfterFinished": "ttl_seconds_after_finished", @@ -651,12 +896,15 @@ "uniqueItems": "unique_items", "updateRevision": "update_revision", "updateStrategy": "update_strategy", + "updatedAnnotations": "updated_annotations", "updatedNumberScheduled": "updated_number_scheduled", "updatedReplicas": "updated_replicas", + "valueFrom": "value_from", "versionPriority": "version_priority", "volumeAttributes": "volume_attributes", "volumeBindingMode": "volume_binding_mode", "volumeClaimTemplates": "volume_claim_templates", + "volumeDevices": "volume_devices", "volumeHandle": "volume_handle", "volumeID": "volume_id", "volumeLifecycleModes": "volume_lifecycle_modes", @@ -669,5 +917,7 @@ "volumesInUse": "volumes_in_use", "vsphereVolume": "vsphere_volume", "webhookClientConfig": "webhook_client_config", + "whenUnsatisfiable": "when_unsatisfiable", "windowsOptions": "windows_options", + "workingDir": "working_dir", } diff --git a/sdk/python/pulumi_kubernetes/yaml.py b/sdk/python/pulumi_kubernetes/yaml.py index 743795c6ba..23d289b759 100644 --- a/sdk/python/pulumi_kubernetes/yaml.py +++ b/sdk/python/pulumi_kubernetes/yaml.py @@ -70,10 +70,10 @@ def __init__(self, name, file_id, opts=None, transformations=None, resource_pref self.register_outputs({"resources": self.resources}) def translate_output_property(self, prop: str) -> str: - return tables._CASING_FORWARD_TABLE.get(prop) or prop + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop def translate_input_property(self, prop: str) -> str: - return tables._CASING_BACKWARD_TABLE.get(prop) or prop + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop def get_resource(self, group_version_kind, name, namespace=None) -> pulumi.Output[pulumi.CustomResource]: """ @@ -175,7 +175,7 @@ def _parse_yaml_object( # Convert obj keys to Python casing for key in list(obj.keys()): - new_key = tables._CASING_FORWARD_TABLE.get(key) or key + new_key = tables._CAMEL_TO_SNAKE_CASE_TABLE.get(key) or key if new_key != key: obj[new_key] = obj.pop(key) From 60bea636368510b442b6615842fd4d01511d32c5 Mon Sep 17 00:00:00 2001 From: komal Date: Mon, 22 Jun 2020 12:11:34 -0700 Subject: [PATCH 14/25] update pulumi version --- .../pulumi_kubernetes.egg-info/PKG-INFO | 238 +++++++++++++++ .../pulumi_kubernetes.egg-info/SOURCES.txt | 279 ++++++++++++++++++ .../dependency_links.txt | 1 + .../pulumi_kubernetes.egg-info/not-zip-safe | 1 + .../pulumi_kubernetes.egg-info/requires.txt | 5 + .../pulumi_kubernetes.egg-info/top_level.txt | 1 + 6 files changed, 525 insertions(+) create mode 100644 sdk/python/pulumi_kubernetes.egg-info/PKG-INFO create mode 100644 sdk/python/pulumi_kubernetes.egg-info/SOURCES.txt create mode 100644 sdk/python/pulumi_kubernetes.egg-info/dependency_links.txt create mode 100644 sdk/python/pulumi_kubernetes.egg-info/not-zip-safe create mode 100644 sdk/python/pulumi_kubernetes.egg-info/requires.txt create mode 100644 sdk/python/pulumi_kubernetes.egg-info/top_level.txt diff --git a/sdk/python/pulumi_kubernetes.egg-info/PKG-INFO b/sdk/python/pulumi_kubernetes.egg-info/PKG-INFO new file mode 100644 index 0000000000..7b45f71340 --- /dev/null +++ b/sdk/python/pulumi_kubernetes.egg-info/PKG-INFO @@ -0,0 +1,238 @@ +Metadata-Version: 2.1 +Name: pulumi-kubernetes +Version: -VERSION- +Summary: A Pulumi package for creating and managing Kubernetes resources. +Home-page: https://pulumi.com +License: Apache-2.0 +Project-URL: Repository, https://github.com/pulumi/pulumi-kubernetes +Description: [![Build Status](https://travis-ci.com/pulumi/pulumi-kubernetes.svg?token=eHg7Zp5zdDDJfTjY8ejq&branch=master)](https://travis-ci.com/pulumi/pulumi-kubernetes) + [![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) + [![NPM version](https://badge.fury.io/js/%40pulumi%2Fkubernetes.svg)](https://www.npmjs.com/package/@pulumi/kubernetes) + [![Python version](https://badge.fury.io/py/pulumi-kubernetes.svg)](https://pypi.org/project/pulumi-kubernetes/) + [![GoDoc](https://godoc.org/github.com/pulumi/pulumi-kubernetes?status.svg)](https://godoc.org/github.com/pulumi/pulumi-kubernetes) + [![License](https://img.shields.io/github/license/pulumi/pulumi-kubernetes)](https://github.com/pulumi/pulumi-kubernetes/blob/master/LICENSE) + + # Pulumi Kubernetes Resource Provider + + The Kubernetes resource provider for Pulumi lets you create, deploy, and manage Kubernetes API resources and workloads in a running cluster. For a streamlined Pulumi walkthrough, including language runtime installation and Kubernetes configuration, click "Get Started" below. +
+

+ + + +

+
+ + * [Introduction](#introduction) + * [Kubernetes API Version Support](#kubernetes-api-version-support) + * [How does API support for Kubernetes work?](#how-does-api-support-for-kubernetes-work) + * [References](#references) + * [Prerequisites](#prerequisites) + * [Installing](#installing) + * [Quick Examples](#quick-examples) + * [Deploying a YAML Manifest](#deploying-a-yaml-manifest) + * [Deploying a Helm Chart](#deploying-a-helm-chart) + * [Deploying a Workload using the Resource API](#deploying-a-workload-using-the-resource-api) + * [Contributing](#contributing) + * [Code of Conduct](#code-of-conduct) + + ## Introduction + + `pulumi-kubernetes` provides an SDK to create any of the API resources + available in Kubernetes. + + This includes the resources you know and love, such as: + - Deployments + - ReplicaSets + - ConfigMaps + - Secrets + - Jobs etc. + + #### Kubernetes API Version Support + + The `pulumi-kubernetes` SDK closely tracks the latest upstream release, and provides access + to the full API surface, including deprecated endpoints. + The SDK API is 100% compatible with the Kubernetes API, and is + schematically identical to what Kubernetes users expect. + + We support Kubernetes clusters with version >=1.9.0. + + #### How does API support for Kubernetes work? + + Pulumi’s Kubernetes SDK is manufactured by automatically wrapping our + library functionality around the Kubernetes resource [OpenAPI + spec](https://github.com/kubernetes/kubernetes/tree/master/api/openapi-spec) as soon as a + new version is released! Ultimately, this means that Pulumi users do not have + to learn a new Kubernetes API model, nor wait long to work with the latest + available versions. + + > Note: Pulumi also supports alpha and beta APIs. + + Visit the [FAQ](https://www.pulumi.com/docs/reference/clouds/kubernetes/faq/) + for more details. + + ## References + + * [Reference Documentation](https://www.pulumi.com/docs/reference/clouds/kubernetes/) + * API Documentation + * [Node.js API](https://pulumi.io/reference/pkg/nodejs/@pulumi/kubernetes) + * [Python API](https://www.pulumi.com/docs/reference/pkg/python/pulumi_kubernetes/) + * [All Examples](./examples) + * [Tutorials](https://www.pulumi.com/docs/reference/tutorials/kubernetes/) + + ## Prerequisites + + 1. [Install Pulumi](https://www.pulumi.com/docs/get-started/kubernetes/install-pulumi/). + 1. Install a language runtime such as [Node.js](https://nodejs.org/en/download), [Python](https://www.python.org/downloads/) or [.NET](https://dotnet.microsoft.com/download/dotnet-core/3.0). + 1. Install a package manager + * For Node.js, use [NPM](https://www.npmjs.com/get-npm) or [Yarn](https://yarnpkg.com/lang/en/docs/install). + * For Python, use [pip](https://pip.pypa.io/en/stable/installing/). + * For .NET, use Nuget which is integrated with the `dotnet` CLI. + 1. Have access to a running Kubernetes cluster + * If `kubectl` already works for your running cluster, Pulumi respects and uses this configuration. + * If you do not have a cluster already running and available, we encourage you to + explore Pulumi's SDKs for AWS EKS, Azure AKS, and GCP GKE. Visit the + [reference docs](https://www.pulumi.com/docs/reference/clouds/kubernetes/) for more details. + 1. [Install `kubectl`](https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl). + + ## Installing + + This package is available in JavaScript/TypeScript for use with Node.js, as well as in Python and .NET. + + For Node.js use either `npm` or `yarn`: + + `npm`: + + ```bash + npm install @pulumi/kubernetes + ``` + + `yarn`: + + ```bash + yarn add @pulumi/kubernetes + ``` + + For Python use `pip`: + + ```bash + pip install pulumi-kubernetes + ``` + + For .NET, dependencies will be automatically installed as part of your Pulumi deployments using `dotnet build`. + + ## Quick Examples + + The following examples demonstrate how to work with `pulumi-kubernetes` in + a couple of ways. + + Examples may include the creation of an AWS EKS cluster, although an EKS cluster + is **not** required to use `pulumi/kubernetes`. It is simply used to ensure + we have access to a running Kubernetes cluster to deploy resources and workloads into. + + ### Deploying a YAML Manifest + + This example deploys resources from a YAML manifest file path, using the + transient, default `kubeconfig` credentials on the local machine, just as `kubectl` does. + + ```typescript + import * as k8s as "@pulumi/kubernetes"; + + const myApp = new k8s.yaml.ConfigFile("app", { + file: "app.yaml" + }); + ``` + + ### Deploying a Helm Chart + + This example creates an EKS cluster with [`pulumi/eks`](https://github.com/pulumi/pulumi-eks), + and then deploys a Helm chart from the stable repo using the + `kubeconfig` credentials from the cluster's [Pulumi provider](https://www.pulumi.com/docs/reference/programming-model/#providers). + + ```typescript + import * as eks from "@pulumi/eks"; + import * as k8s from "@pulumi/kubernetes"; + + // Create an EKS cluster. + const cluster = new eks.Cluster("my-cluster"); + + // Deploy Wordpress into our cluster. + const wordpress = new k8s.helm.v2.Chart("wordpress", { + repo: "stable", + chart: "wordpress", + values: { + wordpressBlogName: "My Cool Kubernetes Blog!", + }, + }, { providers: { "kubernetes": cluster.provider } }); + + // Export the cluster's kubeconfig. + export const kubeconfig = cluster.kubeconfig; + ``` + + ### Deploying a Workload using the Resource API + + This example creates a EKS cluster with [`pulumi/eks`](https://github.com/pulumi/pulumi-eks), + and then deploys an NGINX Deployment and Service using the SDK resource API, and the + `kubeconfig` credentials from the cluster's [Pulumi provider](https://www.pulumi.com/docs/reference/programming-model/#providers). + + ```typescript + import * as eks from "@pulumi/eks"; + import * as k8s from "@pulumi/kubernetes"; + + // Create an EKS cluster with the default configuration. + const cluster = new eks.Cluster("my-cluster"); + + // Create a NGINX Deployment and Service. + const appName = "my-app"; + const appLabels = { appClass: appName }; + const deployment = new k8s.apps.v1.Deployment(`${appName}-dep`, { + metadata: { labels: appLabels }, + spec: { + replicas: 2, + selector: { matchLabels: appLabels }, + template: { + metadata: { labels: appLabels }, + spec: { + containers: [{ + name: appName, + image: "nginx", + ports: [{ name: "http", containerPort: 80 }] + }], + } + } + }, + }, { provider: cluster.provider }); + + const service = new k8s.core.v1.Service(`${appName}-svc`, { + metadata: { labels: appLabels }, + spec: { + type: "LoadBalancer", + ports: [{ port: 80, targetPort: "http" }], + selector: appLabels, + }, + }, { provider: cluster.provider }); + + // Export the URL for the load balanced service. + export const url = service.status.loadBalancer.ingress[0].hostname; + + // Export the cluster's kubeconfig. + export const kubeconfig = cluster.kubeconfig; + ``` + + ## Contributing + + If you are interested in contributing, please see the [contributing docs][contributing]. + + ## Code of Conduct + + You can read the code of conduct [here][code-of-conduct]. + + [pulumi-kubernetes]: https://github.com/pulumi/pulumi-kubernetes + [contributing]: CONTRIBUTING.md + [code-of-conduct]: CODE-OF-CONDUCT.md + [workload-example]: #deploying-a-workload-on-aws-eks + [how-pulumi-works]: https://www.pulumi.com/docs/intro/concepts/how-pulumi-works + +Keywords: pulumi kubernetes +Platform: UNKNOWN +Description-Content-Type: text/markdown diff --git a/sdk/python/pulumi_kubernetes.egg-info/SOURCES.txt b/sdk/python/pulumi_kubernetes.egg-info/SOURCES.txt new file mode 100644 index 0000000000..6d0ebe6a26 --- /dev/null +++ b/sdk/python/pulumi_kubernetes.egg-info/SOURCES.txt @@ -0,0 +1,279 @@ +README.md +setup.py +pulumi_kubernetes/__init__.py +pulumi_kubernetes/provider.py +pulumi_kubernetes/tables.py +pulumi_kubernetes/utilities.py +pulumi_kubernetes/version.py +pulumi_kubernetes/yaml.py +pulumi_kubernetes.egg-info/PKG-INFO +pulumi_kubernetes.egg-info/SOURCES.txt +pulumi_kubernetes.egg-info/dependency_links.txt +pulumi_kubernetes.egg-info/not-zip-safe +pulumi_kubernetes.egg-info/requires.txt +pulumi_kubernetes.egg-info/top_level.txt +pulumi_kubernetes/admissionregistration/__init__.py +pulumi_kubernetes/admissionregistration/v1/__init__.py +pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py +pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py +pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py +pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py +pulumi_kubernetes/admissionregistration/v1beta1/__init__.py +pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py +pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py +pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py +pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py +pulumi_kubernetes/apiextensions/__init__.py +pulumi_kubernetes/apiextensions/custom_resource.py +pulumi_kubernetes/apiextensions/v1/__init__.py +pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py +pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py +pulumi_kubernetes/apiextensions/v1beta1/__init__.py +pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py +pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py +pulumi_kubernetes/apiregistration/__init__.py +pulumi_kubernetes/apiregistration/v1/__init__.py +pulumi_kubernetes/apiregistration/v1/api_service.py +pulumi_kubernetes/apiregistration/v1/api_service_list.py +pulumi_kubernetes/apiregistration/v1beta1/__init__.py +pulumi_kubernetes/apiregistration/v1beta1/api_service.py +pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py +pulumi_kubernetes/apps/__init__.py +pulumi_kubernetes/apps/v1/__init__.py +pulumi_kubernetes/apps/v1/controller_revision.py +pulumi_kubernetes/apps/v1/controller_revision_list.py +pulumi_kubernetes/apps/v1/daemon_set.py +pulumi_kubernetes/apps/v1/daemon_set_list.py +pulumi_kubernetes/apps/v1/deployment.py +pulumi_kubernetes/apps/v1/deployment_list.py +pulumi_kubernetes/apps/v1/replica_set.py +pulumi_kubernetes/apps/v1/replica_set_list.py +pulumi_kubernetes/apps/v1/stateful_set.py +pulumi_kubernetes/apps/v1/stateful_set_list.py +pulumi_kubernetes/apps/v1beta1/__init__.py +pulumi_kubernetes/apps/v1beta1/controller_revision.py +pulumi_kubernetes/apps/v1beta1/controller_revision_list.py +pulumi_kubernetes/apps/v1beta1/deployment.py +pulumi_kubernetes/apps/v1beta1/deployment_list.py +pulumi_kubernetes/apps/v1beta1/stateful_set.py +pulumi_kubernetes/apps/v1beta1/stateful_set_list.py +pulumi_kubernetes/apps/v1beta2/__init__.py +pulumi_kubernetes/apps/v1beta2/controller_revision.py +pulumi_kubernetes/apps/v1beta2/controller_revision_list.py +pulumi_kubernetes/apps/v1beta2/daemon_set.py +pulumi_kubernetes/apps/v1beta2/daemon_set_list.py +pulumi_kubernetes/apps/v1beta2/deployment.py +pulumi_kubernetes/apps/v1beta2/deployment_list.py +pulumi_kubernetes/apps/v1beta2/replica_set.py +pulumi_kubernetes/apps/v1beta2/replica_set_list.py +pulumi_kubernetes/apps/v1beta2/stateful_set.py +pulumi_kubernetes/apps/v1beta2/stateful_set_list.py +pulumi_kubernetes/auditregistration/__init__.py +pulumi_kubernetes/auditregistration/v1alpha1/__init__.py +pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py +pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py +pulumi_kubernetes/authentication/__init__.py +pulumi_kubernetes/authentication/v1/__init__.py +pulumi_kubernetes/authentication/v1/token_request.py +pulumi_kubernetes/authentication/v1/token_review.py +pulumi_kubernetes/authentication/v1beta1/__init__.py +pulumi_kubernetes/authentication/v1beta1/token_review.py +pulumi_kubernetes/authorization/__init__.py +pulumi_kubernetes/authorization/v1/__init__.py +pulumi_kubernetes/authorization/v1/local_subject_access_review.py +pulumi_kubernetes/authorization/v1/self_subject_access_review.py +pulumi_kubernetes/authorization/v1/self_subject_rules_review.py +pulumi_kubernetes/authorization/v1/subject_access_review.py +pulumi_kubernetes/authorization/v1beta1/__init__.py +pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py +pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py +pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py +pulumi_kubernetes/authorization/v1beta1/subject_access_review.py +pulumi_kubernetes/autoscaling/__init__.py +pulumi_kubernetes/autoscaling/v1/__init__.py +pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py +pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py +pulumi_kubernetes/autoscaling/v2beta1/__init__.py +pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py +pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py +pulumi_kubernetes/autoscaling/v2beta2/__init__.py +pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py +pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py +pulumi_kubernetes/batch/__init__.py +pulumi_kubernetes/batch/v1/__init__.py +pulumi_kubernetes/batch/v1/job.py +pulumi_kubernetes/batch/v1/job_list.py +pulumi_kubernetes/batch/v1beta1/__init__.py +pulumi_kubernetes/batch/v1beta1/cron_job.py +pulumi_kubernetes/batch/v1beta1/cron_job_list.py +pulumi_kubernetes/batch/v2alpha1/__init__.py +pulumi_kubernetes/batch/v2alpha1/cron_job.py +pulumi_kubernetes/batch/v2alpha1/cron_job_list.py +pulumi_kubernetes/certificates/__init__.py +pulumi_kubernetes/certificates/v1beta1/__init__.py +pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py +pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py +pulumi_kubernetes/coordination/__init__.py +pulumi_kubernetes/coordination/v1/__init__.py +pulumi_kubernetes/coordination/v1/lease.py +pulumi_kubernetes/coordination/v1/lease_list.py +pulumi_kubernetes/coordination/v1beta1/__init__.py +pulumi_kubernetes/coordination/v1beta1/lease.py +pulumi_kubernetes/coordination/v1beta1/lease_list.py +pulumi_kubernetes/core/__init__.py +pulumi_kubernetes/core/v1/__init__.py +pulumi_kubernetes/core/v1/binding.py +pulumi_kubernetes/core/v1/component_status.py +pulumi_kubernetes/core/v1/component_status_list.py +pulumi_kubernetes/core/v1/config_map.py +pulumi_kubernetes/core/v1/config_map_list.py +pulumi_kubernetes/core/v1/endpoints.py +pulumi_kubernetes/core/v1/endpoints_list.py +pulumi_kubernetes/core/v1/event.py +pulumi_kubernetes/core/v1/event_list.py +pulumi_kubernetes/core/v1/limit_range.py +pulumi_kubernetes/core/v1/limit_range_list.py +pulumi_kubernetes/core/v1/namespace.py +pulumi_kubernetes/core/v1/namespace_list.py +pulumi_kubernetes/core/v1/node.py +pulumi_kubernetes/core/v1/node_list.py +pulumi_kubernetes/core/v1/persistent_volume.py +pulumi_kubernetes/core/v1/persistent_volume_claim.py +pulumi_kubernetes/core/v1/persistent_volume_claim_list.py +pulumi_kubernetes/core/v1/persistent_volume_list.py +pulumi_kubernetes/core/v1/pod.py +pulumi_kubernetes/core/v1/pod_list.py +pulumi_kubernetes/core/v1/pod_template.py +pulumi_kubernetes/core/v1/pod_template_list.py +pulumi_kubernetes/core/v1/replication_controller.py +pulumi_kubernetes/core/v1/replication_controller_list.py +pulumi_kubernetes/core/v1/resource_quota.py +pulumi_kubernetes/core/v1/resource_quota_list.py +pulumi_kubernetes/core/v1/secret.py +pulumi_kubernetes/core/v1/secret_list.py +pulumi_kubernetes/core/v1/service.py +pulumi_kubernetes/core/v1/service_account.py +pulumi_kubernetes/core/v1/service_account_list.py +pulumi_kubernetes/core/v1/service_list.py +pulumi_kubernetes/discovery/__init__.py +pulumi_kubernetes/discovery/v1beta1/__init__.py +pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py +pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py +pulumi_kubernetes/events/__init__.py +pulumi_kubernetes/events/v1beta1/__init__.py +pulumi_kubernetes/events/v1beta1/event.py +pulumi_kubernetes/events/v1beta1/event_list.py +pulumi_kubernetes/extensions/__init__.py +pulumi_kubernetes/extensions/v1beta1/__init__.py +pulumi_kubernetes/extensions/v1beta1/daemon_set.py +pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py +pulumi_kubernetes/extensions/v1beta1/deployment.py +pulumi_kubernetes/extensions/v1beta1/deployment_list.py +pulumi_kubernetes/extensions/v1beta1/ingress.py +pulumi_kubernetes/extensions/v1beta1/ingress_list.py +pulumi_kubernetes/extensions/v1beta1/network_policy.py +pulumi_kubernetes/extensions/v1beta1/network_policy_list.py +pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py +pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py +pulumi_kubernetes/extensions/v1beta1/replica_set.py +pulumi_kubernetes/extensions/v1beta1/replica_set_list.py +pulumi_kubernetes/flowcontrol/__init__.py +pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py +pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py +pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py +pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py +pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py +pulumi_kubernetes/helm/__init__.py +pulumi_kubernetes/helm/v2/__init__.py +pulumi_kubernetes/helm/v2/helm.py +pulumi_kubernetes/helm/v3/__init__.py +pulumi_kubernetes/helm/v3/helm.py +pulumi_kubernetes/meta/__init__.py +pulumi_kubernetes/meta/v1/__init__.py +pulumi_kubernetes/meta/v1/status.py +pulumi_kubernetes/networking/__init__.py +pulumi_kubernetes/networking/v1/__init__.py +pulumi_kubernetes/networking/v1/network_policy.py +pulumi_kubernetes/networking/v1/network_policy_list.py +pulumi_kubernetes/networking/v1beta1/__init__.py +pulumi_kubernetes/networking/v1beta1/ingress.py +pulumi_kubernetes/networking/v1beta1/ingress_class.py +pulumi_kubernetes/networking/v1beta1/ingress_class_list.py +pulumi_kubernetes/networking/v1beta1/ingress_list.py +pulumi_kubernetes/node/__init__.py +pulumi_kubernetes/node/v1alpha1/__init__.py +pulumi_kubernetes/node/v1alpha1/runtime_class.py +pulumi_kubernetes/node/v1alpha1/runtime_class_list.py +pulumi_kubernetes/node/v1beta1/__init__.py +pulumi_kubernetes/node/v1beta1/runtime_class.py +pulumi_kubernetes/node/v1beta1/runtime_class_list.py +pulumi_kubernetes/policy/__init__.py +pulumi_kubernetes/policy/v1beta1/__init__.py +pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py +pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py +pulumi_kubernetes/policy/v1beta1/pod_security_policy.py +pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py +pulumi_kubernetes/rbac/__init__.py +pulumi_kubernetes/rbac/v1/__init__.py +pulumi_kubernetes/rbac/v1/cluster_role.py +pulumi_kubernetes/rbac/v1/cluster_role_binding.py +pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py +pulumi_kubernetes/rbac/v1/cluster_role_list.py +pulumi_kubernetes/rbac/v1/role.py +pulumi_kubernetes/rbac/v1/role_binding.py +pulumi_kubernetes/rbac/v1/role_binding_list.py +pulumi_kubernetes/rbac/v1/role_list.py +pulumi_kubernetes/rbac/v1alpha1/__init__.py +pulumi_kubernetes/rbac/v1alpha1/cluster_role.py +pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py +pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py +pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py +pulumi_kubernetes/rbac/v1alpha1/role.py +pulumi_kubernetes/rbac/v1alpha1/role_binding.py +pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py +pulumi_kubernetes/rbac/v1alpha1/role_list.py +pulumi_kubernetes/rbac/v1beta1/__init__.py +pulumi_kubernetes/rbac/v1beta1/cluster_role.py +pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py +pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py +pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py +pulumi_kubernetes/rbac/v1beta1/role.py +pulumi_kubernetes/rbac/v1beta1/role_binding.py +pulumi_kubernetes/rbac/v1beta1/role_binding_list.py +pulumi_kubernetes/rbac/v1beta1/role_list.py +pulumi_kubernetes/scheduling/__init__.py +pulumi_kubernetes/scheduling/v1/__init__.py +pulumi_kubernetes/scheduling/v1/priority_class.py +pulumi_kubernetes/scheduling/v1/priority_class_list.py +pulumi_kubernetes/scheduling/v1alpha1/__init__.py +pulumi_kubernetes/scheduling/v1alpha1/priority_class.py +pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py +pulumi_kubernetes/scheduling/v1beta1/__init__.py +pulumi_kubernetes/scheduling/v1beta1/priority_class.py +pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py +pulumi_kubernetes/settings/__init__.py +pulumi_kubernetes/settings/v1alpha1/__init__.py +pulumi_kubernetes/settings/v1alpha1/pod_preset.py +pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py +pulumi_kubernetes/storage/__init__.py +pulumi_kubernetes/storage/v1/__init__.py +pulumi_kubernetes/storage/v1/csi_driver.py +pulumi_kubernetes/storage/v1/csi_driver_list.py +pulumi_kubernetes/storage/v1/csi_node.py +pulumi_kubernetes/storage/v1/csi_node_list.py +pulumi_kubernetes/storage/v1/storage_class.py +pulumi_kubernetes/storage/v1/storage_class_list.py +pulumi_kubernetes/storage/v1/volume_attachment.py +pulumi_kubernetes/storage/v1/volume_attachment_list.py +pulumi_kubernetes/storage/v1alpha1/__init__.py +pulumi_kubernetes/storage/v1alpha1/volume_attachment.py +pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py +pulumi_kubernetes/storage/v1beta1/__init__.py +pulumi_kubernetes/storage/v1beta1/csi_driver.py +pulumi_kubernetes/storage/v1beta1/csi_driver_list.py +pulumi_kubernetes/storage/v1beta1/csi_node.py +pulumi_kubernetes/storage/v1beta1/csi_node_list.py +pulumi_kubernetes/storage/v1beta1/storage_class.py +pulumi_kubernetes/storage/v1beta1/storage_class_list.py +pulumi_kubernetes/storage/v1beta1/volume_attachment.py +pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py \ No newline at end of file diff --git a/sdk/python/pulumi_kubernetes.egg-info/dependency_links.txt b/sdk/python/pulumi_kubernetes.egg-info/dependency_links.txt new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/sdk/python/pulumi_kubernetes.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/sdk/python/pulumi_kubernetes.egg-info/not-zip-safe b/sdk/python/pulumi_kubernetes.egg-info/not-zip-safe new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/sdk/python/pulumi_kubernetes.egg-info/not-zip-safe @@ -0,0 +1 @@ + diff --git a/sdk/python/pulumi_kubernetes.egg-info/requires.txt b/sdk/python/pulumi_kubernetes.egg-info/requires.txt new file mode 100644 index 0000000000..fb38b50f94 --- /dev/null +++ b/sdk/python/pulumi_kubernetes.egg-info/requires.txt @@ -0,0 +1,5 @@ +parver>=0.2.1 +pulumi<3.0.0,>=2.0.0 +pyyaml<5.2,>=5.1 +requests<2.22.0,>=2.21.0 +semver>=2.8.1 diff --git a/sdk/python/pulumi_kubernetes.egg-info/top_level.txt b/sdk/python/pulumi_kubernetes.egg-info/top_level.txt new file mode 100644 index 0000000000..9ea4922324 --- /dev/null +++ b/sdk/python/pulumi_kubernetes.egg-info/top_level.txt @@ -0,0 +1 @@ +pulumi_kubernetes From ade6d64d2879c575ae9b28b8ec781ea5dce458bf Mon Sep 17 00:00:00 2001 From: komal Date: Mon, 22 Jun 2020 19:56:09 -0700 Subject: [PATCH 15/25] Retain CamelCase naming to keep backwards compatibility. --- provider/cmd/pulumi-gen-kubernetes/main.go | 8 +- .../{custom_resource.py => CustomResource.py} | 0 sdk/python/pulumi_kubernetes/__init__.py | 38 ++++++-- .../admissionregistration/__init__.py | 8 +- ...ion.py => MutatingWebhookConfiguration.py} | 0 ...py => MutatingWebhookConfigurationList.py} | 0 ...n.py => ValidatingWebhookConfiguration.py} | 0 ... => ValidatingWebhookConfigurationList.py} | 0 .../admissionregistration/v1/__init__.py | 8 +- ...ion.py => MutatingWebhookConfiguration.py} | 0 ...py => MutatingWebhookConfigurationList.py} | 0 ...n.py => ValidatingWebhookConfiguration.py} | 0 ... => ValidatingWebhookConfigurationList.py} | 0 .../admissionregistration/v1beta1/__init__.py | 8 +- .../apiextensions/__init__.py | 13 ++- .../apiextensions/custom_resource.py | 93 ------------------- ...inition.py => CustomResourceDefinition.py} | 0 ...ist.py => CustomResourceDefinitionList.py} | 0 .../apiextensions/v1/__init__.py | 4 +- ...inition.py => CustomResourceDefinition.py} | 0 ...ist.py => CustomResourceDefinitionList.py} | 0 .../apiextensions/v1beta1/__init__.py | 4 +- .../apiregistration/__init__.py | 8 +- .../v1/{api_service.py => APIService.py} | 0 ...{api_service_list.py => APIServiceList.py} | 0 .../apiregistration/v1/__init__.py | 4 +- .../v1beta1/{api_service.py => APIService.py} | 0 ...{api_service_list.py => APIServiceList.py} | 0 .../apiregistration/v1beta1/__init__.py | 4 +- sdk/python/pulumi_kubernetes/apps/__init__.py | 9 +- ...ller_revision.py => ControllerRevision.py} | 0 ...sion_list.py => ControllerRevisionList.py} | 0 .../apps/v1/{daemon_set.py => DaemonSet.py} | 0 .../{daemon_set_list.py => DaemonSetList.py} | 0 .../{deployment_list.py => DeploymentList.py} | 0 .../apps/v1/{replica_set.py => ReplicaSet.py} | 0 ...{replica_set_list.py => ReplicaSetList.py} | 0 .../v1/{stateful_set.py => StatefulSet.py} | 0 ...tateful_set_list.py => StatefulSetList.py} | 0 .../pulumi_kubernetes/apps/v1/__init__.py | 20 ++-- ...ller_revision.py => ControllerRevision.py} | 0 ...sion_list.py => ControllerRevisionList.py} | 0 .../{deployment_list.py => DeploymentList.py} | 0 .../{stateful_set.py => StatefulSet.py} | 0 ...tateful_set_list.py => StatefulSetList.py} | 0 .../apps/v1beta1/__init__.py | 12 +-- ...ller_revision.py => ControllerRevision.py} | 0 ...sion_list.py => ControllerRevisionList.py} | 0 .../v1beta2/{daemon_set.py => DaemonSet.py} | 0 .../{daemon_set_list.py => DaemonSetList.py} | 0 .../{deployment_list.py => DeploymentList.py} | 0 .../v1beta2/{replica_set.py => ReplicaSet.py} | 0 ...{replica_set_list.py => ReplicaSetList.py} | 0 .../{stateful_set.py => StatefulSet.py} | 0 ...tateful_set_list.py => StatefulSetList.py} | 0 .../apps/v1beta2/__init__.py | 20 ++-- .../auditregistration/__init__.py | 7 +- .../v1alpha1/{audit_sink.py => AuditSink.py} | 0 .../{audit_sink_list.py => AuditSinkList.py} | 0 .../auditregistration/v1alpha1/__init__.py | 4 +- .../authentication/__init__.py | 8 +- .../v1/{token_request.py => TokenRequest.py} | 0 .../v1/{token_review.py => TokenReview.py} | 0 .../authentication/v1/__init__.py | 4 +- .../{token_review.py => TokenReview.py} | 0 .../authentication/v1beta1/__init__.py | 2 +- .../authorization/__init__.py | 8 +- ..._review.py => LocalSubjectAccessReview.py} | 0 ...s_review.py => SelfSubjectAccessReview.py} | 0 ...es_review.py => SelfSubjectRulesReview.py} | 0 ...ccess_review.py => SubjectAccessReview.py} | 0 .../authorization/v1/__init__.py | 8 +- ..._review.py => LocalSubjectAccessReview.py} | 0 ...s_review.py => SelfSubjectAccessReview.py} | 0 ...es_review.py => SelfSubjectRulesReview.py} | 0 ...ccess_review.py => SubjectAccessReview.py} | 0 .../authorization/v1beta1/__init__.py | 8 +- .../pulumi_kubernetes/autoscaling/__init__.py | 9 +- ...toscaler.py => HorizontalPodAutoscaler.py} | 0 ...list.py => HorizontalPodAutoscalerList.py} | 0 .../autoscaling/v1/__init__.py | 4 +- ...toscaler.py => HorizontalPodAutoscaler.py} | 0 ...list.py => HorizontalPodAutoscalerList.py} | 0 .../autoscaling/v2beta1/__init__.py | 4 +- ...toscaler.py => HorizontalPodAutoscaler.py} | 0 ...list.py => HorizontalPodAutoscalerList.py} | 0 .../autoscaling/v2beta2/__init__.py | 4 +- .../pulumi_kubernetes/batch/__init__.py | 9 +- .../batch/v1/{job_list.py => JobList.py} | 0 .../pulumi_kubernetes/batch/v1/__init__.py | 4 +- .../batch/v1beta1/{cron_job.py => CronJob.py} | 0 .../{cron_job_list.py => CronJobList.py} | 0 .../batch/v1beta1/__init__.py | 4 +- .../v2alpha1/{cron_job.py => CronJob.py} | 0 .../{cron_job_list.py => CronJobList.py} | 0 .../batch/v2alpha1/__init__.py | 4 +- .../certificates/__init__.py | 7 +- ...equest.py => CertificateSigningRequest.py} | 0 ...st.py => CertificateSigningRequestList.py} | 0 .../certificates/v1beta1/__init__.py | 4 +- .../coordination/__init__.py | 8 +- .../v1/{lease_list.py => LeaseList.py} | 0 .../coordination/v1/__init__.py | 4 +- .../v1beta1/{lease_list.py => LeaseList.py} | 0 .../coordination/v1beta1/__init__.py | 4 +- sdk/python/pulumi_kubernetes/core/__init__.py | 7 +- ...component_status.py => ComponentStatus.py} | 0 ..._status_list.py => ComponentStatusList.py} | 0 .../core/v1/{config_map.py => ConfigMap.py} | 0 .../{config_map_list.py => ConfigMapList.py} | 0 .../{endpoints_list.py => EndpointsList.py} | 0 .../core/v1/{event_list.py => EventList.py} | 0 .../core/v1/{limit_range.py => LimitRange.py} | 0 ...{limit_range_list.py => LimitRangeList.py} | 0 .../{namespace_list.py => NamespaceList.py} | 0 .../core/v1/{node_list.py => NodeList.py} | 0 ...rsistent_volume.py => PersistentVolume.py} | 0 ...lume_claim.py => PersistentVolumeClaim.py} | 0 ...m_list.py => PersistentVolumeClaimList.py} | 0 ...volume_list.py => PersistentVolumeList.py} | 0 .../core/v1/{pod_list.py => PodList.py} | 0 .../v1/{pod_template.py => PodTemplate.py} | 0 ...od_template_list.py => PodTemplateList.py} | 0 ...controller.py => ReplicationController.py} | 0 ...r_list.py => ReplicationControllerList.py} | 0 .../{resource_quota.py => ResourceQuota.py} | 0 ...rce_quota_list.py => ResourceQuotaList.py} | 0 .../core/v1/{secret_list.py => SecretList.py} | 0 .../{service_account.py => ServiceAccount.py} | 0 ..._account_list.py => ServiceAccountList.py} | 0 .../v1/{service_list.py => ServiceList.py} | 0 .../pulumi_kubernetes/core/v1/__init__.py | 66 ++++++------- .../pulumi_kubernetes/discovery/__init__.py | 7 +- .../{endpoint_slice.py => EndpointSlice.py} | 0 ...int_slice_list.py => EndpointSliceList.py} | 0 .../discovery/v1beta1/__init__.py | 4 +- .../pulumi_kubernetes/events/__init__.py | 7 +- .../v1beta1/{event_list.py => EventList.py} | 0 .../events/v1beta1/__init__.py | 4 +- .../pulumi_kubernetes/extensions/__init__.py | 7 +- .../v1beta1/{daemon_set.py => DaemonSet.py} | 0 .../{daemon_set_list.py => DaemonSetList.py} | 0 .../{deployment_list.py => DeploymentList.py} | 0 .../{ingress_list.py => IngressList.py} | 0 .../{network_policy.py => NetworkPolicy.py} | 0 ...rk_policy_list.py => NetworkPolicyList.py} | 0 ...ecurity_policy.py => PodSecurityPolicy.py} | 0 ...olicy_list.py => PodSecurityPolicyList.py} | 0 .../v1beta1/{replica_set.py => ReplicaSet.py} | 0 ...{replica_set_list.py => ReplicaSetList.py} | 0 .../extensions/v1beta1/__init__.py | 24 ++--- .../pulumi_kubernetes/flowcontrol/__init__.py | 7 +- .../{flow_schema.py => FlowSchema.py} | 0 ...{flow_schema_list.py => FlowSchemaList.py} | 0 ...ation.py => PriorityLevelConfiguration.py} | 0 ...t.py => PriorityLevelConfigurationList.py} | 0 .../flowcontrol/v1alpha1/__init__.py | 8 +- sdk/python/pulumi_kubernetes/helm/__init__.py | 8 +- sdk/python/pulumi_kubernetes/meta/__init__.py | 7 +- .../pulumi_kubernetes/meta/v1/__init__.py | 2 +- .../pulumi_kubernetes/networking/__init__.py | 8 +- .../{network_policy.py => NetworkPolicy.py} | 0 ...rk_policy_list.py => NetworkPolicyList.py} | 0 .../networking/v1/__init__.py | 4 +- .../{ingress_class.py => IngressClass.py} | 0 ...ress_class_list.py => IngressClassList.py} | 0 .../{ingress_list.py => IngressList.py} | 0 .../networking/v1beta1/__init__.py | 8 +- sdk/python/pulumi_kubernetes/node/__init__.py | 8 +- .../{runtime_class.py => RuntimeClass.py} | 0 ...time_class_list.py => RuntimeClassList.py} | 0 .../node/v1alpha1/__init__.py | 4 +- .../{runtime_class.py => RuntimeClass.py} | 0 ...time_class_list.py => RuntimeClassList.py} | 0 .../node/v1beta1/__init__.py | 4 +- .../pulumi_kubernetes/policy/__init__.py | 7 +- ...ption_budget.py => PodDisruptionBudget.py} | 0 ...get_list.py => PodDisruptionBudgetList.py} | 0 ...ecurity_policy.py => PodSecurityPolicy.py} | 0 ...olicy_list.py => PodSecurityPolicyList.py} | 0 .../policy/v1beta1/__init__.py | 8 +- sdk/python/pulumi_kubernetes/rbac/__init__.py | 9 +- .../v1/{cluster_role.py => ClusterRole.py} | 0 ..._role_binding.py => ClusterRoleBinding.py} | 0 ...ding_list.py => ClusterRoleBindingList.py} | 0 ...luster_role_list.py => ClusterRoleList.py} | 0 .../v1/{role_binding.py => RoleBinding.py} | 0 ...ole_binding_list.py => RoleBindingList.py} | 0 .../rbac/v1/{role_list.py => RoleList.py} | 0 .../pulumi_kubernetes/rbac/v1/__init__.py | 16 ++-- .../{cluster_role.py => ClusterRole.py} | 0 ..._role_binding.py => ClusterRoleBinding.py} | 0 ...ding_list.py => ClusterRoleBindingList.py} | 0 ...luster_role_list.py => ClusterRoleList.py} | 0 .../{role_binding.py => RoleBinding.py} | 0 ...ole_binding_list.py => RoleBindingList.py} | 0 .../v1alpha1/{role_list.py => RoleList.py} | 0 .../rbac/v1alpha1/__init__.py | 16 ++-- .../{cluster_role.py => ClusterRole.py} | 0 ..._role_binding.py => ClusterRoleBinding.py} | 0 ...ding_list.py => ClusterRoleBindingList.py} | 0 ...luster_role_list.py => ClusterRoleList.py} | 0 .../{role_binding.py => RoleBinding.py} | 0 ...ole_binding_list.py => RoleBindingList.py} | 0 .../v1beta1/{role_list.py => RoleList.py} | 0 .../rbac/v1beta1/__init__.py | 16 ++-- .../pulumi_kubernetes/scheduling/__init__.py | 9 +- .../{priority_class.py => PriorityClass.py} | 0 ...ity_class_list.py => PriorityClassList.py} | 0 .../scheduling/v1/__init__.py | 4 +- .../{priority_class.py => PriorityClass.py} | 0 ...ity_class_list.py => PriorityClassList.py} | 0 .../scheduling/v1alpha1/__init__.py | 4 +- .../{priority_class.py => PriorityClass.py} | 0 ...ity_class_list.py => PriorityClassList.py} | 0 .../scheduling/v1beta1/__init__.py | 4 +- .../pulumi_kubernetes/settings/__init__.py | 7 +- .../v1alpha1/{pod_preset.py => PodPreset.py} | 0 .../{pod_preset_list.py => PodPresetList.py} | 0 .../settings/v1alpha1/__init__.py | 4 +- .../pulumi_kubernetes/storage/__init__.py | 9 +- .../v1/{csi_driver.py => CSIDriver.py} | 0 .../{csi_driver_list.py => CSIDriverList.py} | 0 .../storage/v1/{csi_node.py => CSINode.py} | 0 .../v1/{csi_node_list.py => CSINodeList.py} | 0 .../v1/{storage_class.py => StorageClass.py} | 0 ...rage_class_list.py => StorageClassList.py} | 0 ...lume_attachment.py => VolumeAttachment.py} | 0 ...chment_list.py => VolumeAttachmentList.py} | 0 .../pulumi_kubernetes/storage/v1/__init__.py | 16 ++-- ...lume_attachment.py => VolumeAttachment.py} | 0 ...chment_list.py => VolumeAttachmentList.py} | 0 .../storage/v1alpha1/__init__.py | 4 +- .../v1beta1/{csi_driver.py => CSIDriver.py} | 0 .../{csi_driver_list.py => CSIDriverList.py} | 0 .../v1beta1/{csi_node.py => CSINode.py} | 0 .../{csi_node_list.py => CSINodeList.py} | 0 .../{storage_class.py => StorageClass.py} | 0 ...rage_class_list.py => StorageClassList.py} | 0 ...lume_attachment.py => VolumeAttachment.py} | 0 ...chment_list.py => VolumeAttachmentList.py} | 0 .../storage/v1beta1/__init__.py | 16 ++-- 242 files changed, 375 insertions(+), 347 deletions(-) rename provider/pkg/gen/python-templates/apiextensions/{custom_resource.py => CustomResource.py} (100%) rename sdk/python/pulumi_kubernetes/admissionregistration/v1/{mutating_webhook_configuration.py => MutatingWebhookConfiguration.py} (100%) rename sdk/python/pulumi_kubernetes/admissionregistration/v1/{mutating_webhook_configuration_list.py => MutatingWebhookConfigurationList.py} (100%) rename sdk/python/pulumi_kubernetes/admissionregistration/v1/{validating_webhook_configuration.py => ValidatingWebhookConfiguration.py} (100%) rename sdk/python/pulumi_kubernetes/admissionregistration/v1/{validating_webhook_configuration_list.py => ValidatingWebhookConfigurationList.py} (100%) rename sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/{mutating_webhook_configuration.py => MutatingWebhookConfiguration.py} (100%) rename sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/{mutating_webhook_configuration_list.py => MutatingWebhookConfigurationList.py} (100%) rename sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/{validating_webhook_configuration.py => ValidatingWebhookConfiguration.py} (100%) rename sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/{validating_webhook_configuration_list.py => ValidatingWebhookConfigurationList.py} (100%) delete mode 100644 sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py rename sdk/python/pulumi_kubernetes/apiextensions/v1/{custom_resource_definition.py => CustomResourceDefinition.py} (100%) rename sdk/python/pulumi_kubernetes/apiextensions/v1/{custom_resource_definition_list.py => CustomResourceDefinitionList.py} (100%) rename sdk/python/pulumi_kubernetes/apiextensions/v1beta1/{custom_resource_definition.py => CustomResourceDefinition.py} (100%) rename sdk/python/pulumi_kubernetes/apiextensions/v1beta1/{custom_resource_definition_list.py => CustomResourceDefinitionList.py} (100%) rename sdk/python/pulumi_kubernetes/apiregistration/v1/{api_service.py => APIService.py} (100%) rename sdk/python/pulumi_kubernetes/apiregistration/v1/{api_service_list.py => APIServiceList.py} (100%) rename sdk/python/pulumi_kubernetes/apiregistration/v1beta1/{api_service.py => APIService.py} (100%) rename sdk/python/pulumi_kubernetes/apiregistration/v1beta1/{api_service_list.py => APIServiceList.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1/{controller_revision.py => ControllerRevision.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1/{controller_revision_list.py => ControllerRevisionList.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1/{daemon_set.py => DaemonSet.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1/{daemon_set_list.py => DaemonSetList.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1/{deployment_list.py => DeploymentList.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1/{replica_set.py => ReplicaSet.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1/{replica_set_list.py => ReplicaSetList.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1/{stateful_set.py => StatefulSet.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1/{stateful_set_list.py => StatefulSetList.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta1/{controller_revision.py => ControllerRevision.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta1/{controller_revision_list.py => ControllerRevisionList.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta1/{deployment_list.py => DeploymentList.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta1/{stateful_set.py => StatefulSet.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta1/{stateful_set_list.py => StatefulSetList.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta2/{controller_revision.py => ControllerRevision.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta2/{controller_revision_list.py => ControllerRevisionList.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta2/{daemon_set.py => DaemonSet.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta2/{daemon_set_list.py => DaemonSetList.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta2/{deployment_list.py => DeploymentList.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta2/{replica_set.py => ReplicaSet.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta2/{replica_set_list.py => ReplicaSetList.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta2/{stateful_set.py => StatefulSet.py} (100%) rename sdk/python/pulumi_kubernetes/apps/v1beta2/{stateful_set_list.py => StatefulSetList.py} (100%) rename sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/{audit_sink.py => AuditSink.py} (100%) rename sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/{audit_sink_list.py => AuditSinkList.py} (100%) rename sdk/python/pulumi_kubernetes/authentication/v1/{token_request.py => TokenRequest.py} (100%) rename sdk/python/pulumi_kubernetes/authentication/v1/{token_review.py => TokenReview.py} (100%) rename sdk/python/pulumi_kubernetes/authentication/v1beta1/{token_review.py => TokenReview.py} (100%) rename sdk/python/pulumi_kubernetes/authorization/v1/{local_subject_access_review.py => LocalSubjectAccessReview.py} (100%) rename sdk/python/pulumi_kubernetes/authorization/v1/{self_subject_access_review.py => SelfSubjectAccessReview.py} (100%) rename sdk/python/pulumi_kubernetes/authorization/v1/{self_subject_rules_review.py => SelfSubjectRulesReview.py} (100%) rename sdk/python/pulumi_kubernetes/authorization/v1/{subject_access_review.py => SubjectAccessReview.py} (100%) rename sdk/python/pulumi_kubernetes/authorization/v1beta1/{local_subject_access_review.py => LocalSubjectAccessReview.py} (100%) rename sdk/python/pulumi_kubernetes/authorization/v1beta1/{self_subject_access_review.py => SelfSubjectAccessReview.py} (100%) rename sdk/python/pulumi_kubernetes/authorization/v1beta1/{self_subject_rules_review.py => SelfSubjectRulesReview.py} (100%) rename sdk/python/pulumi_kubernetes/authorization/v1beta1/{subject_access_review.py => SubjectAccessReview.py} (100%) rename sdk/python/pulumi_kubernetes/autoscaling/v1/{horizontal_pod_autoscaler.py => HorizontalPodAutoscaler.py} (100%) rename sdk/python/pulumi_kubernetes/autoscaling/v1/{horizontal_pod_autoscaler_list.py => HorizontalPodAutoscalerList.py} (100%) rename sdk/python/pulumi_kubernetes/autoscaling/v2beta1/{horizontal_pod_autoscaler.py => HorizontalPodAutoscaler.py} (100%) rename sdk/python/pulumi_kubernetes/autoscaling/v2beta1/{horizontal_pod_autoscaler_list.py => HorizontalPodAutoscalerList.py} (100%) rename sdk/python/pulumi_kubernetes/autoscaling/v2beta2/{horizontal_pod_autoscaler.py => HorizontalPodAutoscaler.py} (100%) rename sdk/python/pulumi_kubernetes/autoscaling/v2beta2/{horizontal_pod_autoscaler_list.py => HorizontalPodAutoscalerList.py} (100%) rename sdk/python/pulumi_kubernetes/batch/v1/{job_list.py => JobList.py} (100%) rename sdk/python/pulumi_kubernetes/batch/v1beta1/{cron_job.py => CronJob.py} (100%) rename sdk/python/pulumi_kubernetes/batch/v1beta1/{cron_job_list.py => CronJobList.py} (100%) rename sdk/python/pulumi_kubernetes/batch/v2alpha1/{cron_job.py => CronJob.py} (100%) rename sdk/python/pulumi_kubernetes/batch/v2alpha1/{cron_job_list.py => CronJobList.py} (100%) rename sdk/python/pulumi_kubernetes/certificates/v1beta1/{certificate_signing_request.py => CertificateSigningRequest.py} (100%) rename sdk/python/pulumi_kubernetes/certificates/v1beta1/{certificate_signing_request_list.py => CertificateSigningRequestList.py} (100%) rename sdk/python/pulumi_kubernetes/coordination/v1/{lease_list.py => LeaseList.py} (100%) rename sdk/python/pulumi_kubernetes/coordination/v1beta1/{lease_list.py => LeaseList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{component_status.py => ComponentStatus.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{component_status_list.py => ComponentStatusList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{config_map.py => ConfigMap.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{config_map_list.py => ConfigMapList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{endpoints_list.py => EndpointsList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{event_list.py => EventList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{limit_range.py => LimitRange.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{limit_range_list.py => LimitRangeList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{namespace_list.py => NamespaceList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{node_list.py => NodeList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{persistent_volume.py => PersistentVolume.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{persistent_volume_claim.py => PersistentVolumeClaim.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{persistent_volume_claim_list.py => PersistentVolumeClaimList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{persistent_volume_list.py => PersistentVolumeList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{pod_list.py => PodList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{pod_template.py => PodTemplate.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{pod_template_list.py => PodTemplateList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{replication_controller.py => ReplicationController.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{replication_controller_list.py => ReplicationControllerList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{resource_quota.py => ResourceQuota.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{resource_quota_list.py => ResourceQuotaList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{secret_list.py => SecretList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{service_account.py => ServiceAccount.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{service_account_list.py => ServiceAccountList.py} (100%) rename sdk/python/pulumi_kubernetes/core/v1/{service_list.py => ServiceList.py} (100%) rename sdk/python/pulumi_kubernetes/discovery/v1beta1/{endpoint_slice.py => EndpointSlice.py} (100%) rename sdk/python/pulumi_kubernetes/discovery/v1beta1/{endpoint_slice_list.py => EndpointSliceList.py} (100%) rename sdk/python/pulumi_kubernetes/events/v1beta1/{event_list.py => EventList.py} (100%) rename sdk/python/pulumi_kubernetes/extensions/v1beta1/{daemon_set.py => DaemonSet.py} (100%) rename sdk/python/pulumi_kubernetes/extensions/v1beta1/{daemon_set_list.py => DaemonSetList.py} (100%) rename sdk/python/pulumi_kubernetes/extensions/v1beta1/{deployment_list.py => DeploymentList.py} (100%) rename sdk/python/pulumi_kubernetes/extensions/v1beta1/{ingress_list.py => IngressList.py} (100%) rename sdk/python/pulumi_kubernetes/extensions/v1beta1/{network_policy.py => NetworkPolicy.py} (100%) rename sdk/python/pulumi_kubernetes/extensions/v1beta1/{network_policy_list.py => NetworkPolicyList.py} (100%) rename sdk/python/pulumi_kubernetes/extensions/v1beta1/{pod_security_policy.py => PodSecurityPolicy.py} (100%) rename sdk/python/pulumi_kubernetes/extensions/v1beta1/{pod_security_policy_list.py => PodSecurityPolicyList.py} (100%) rename sdk/python/pulumi_kubernetes/extensions/v1beta1/{replica_set.py => ReplicaSet.py} (100%) rename sdk/python/pulumi_kubernetes/extensions/v1beta1/{replica_set_list.py => ReplicaSetList.py} (100%) rename sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/{flow_schema.py => FlowSchema.py} (100%) rename sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/{flow_schema_list.py => FlowSchemaList.py} (100%) rename sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/{priority_level_configuration.py => PriorityLevelConfiguration.py} (100%) rename sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/{priority_level_configuration_list.py => PriorityLevelConfigurationList.py} (100%) rename sdk/python/pulumi_kubernetes/networking/v1/{network_policy.py => NetworkPolicy.py} (100%) rename sdk/python/pulumi_kubernetes/networking/v1/{network_policy_list.py => NetworkPolicyList.py} (100%) rename sdk/python/pulumi_kubernetes/networking/v1beta1/{ingress_class.py => IngressClass.py} (100%) rename sdk/python/pulumi_kubernetes/networking/v1beta1/{ingress_class_list.py => IngressClassList.py} (100%) rename sdk/python/pulumi_kubernetes/networking/v1beta1/{ingress_list.py => IngressList.py} (100%) rename sdk/python/pulumi_kubernetes/node/v1alpha1/{runtime_class.py => RuntimeClass.py} (100%) rename sdk/python/pulumi_kubernetes/node/v1alpha1/{runtime_class_list.py => RuntimeClassList.py} (100%) rename sdk/python/pulumi_kubernetes/node/v1beta1/{runtime_class.py => RuntimeClass.py} (100%) rename sdk/python/pulumi_kubernetes/node/v1beta1/{runtime_class_list.py => RuntimeClassList.py} (100%) rename sdk/python/pulumi_kubernetes/policy/v1beta1/{pod_disruption_budget.py => PodDisruptionBudget.py} (100%) rename sdk/python/pulumi_kubernetes/policy/v1beta1/{pod_disruption_budget_list.py => PodDisruptionBudgetList.py} (100%) rename sdk/python/pulumi_kubernetes/policy/v1beta1/{pod_security_policy.py => PodSecurityPolicy.py} (100%) rename sdk/python/pulumi_kubernetes/policy/v1beta1/{pod_security_policy_list.py => PodSecurityPolicyList.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1/{cluster_role.py => ClusterRole.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1/{cluster_role_binding.py => ClusterRoleBinding.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1/{cluster_role_binding_list.py => ClusterRoleBindingList.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1/{cluster_role_list.py => ClusterRoleList.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1/{role_binding.py => RoleBinding.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1/{role_binding_list.py => RoleBindingList.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1/{role_list.py => RoleList.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1alpha1/{cluster_role.py => ClusterRole.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1alpha1/{cluster_role_binding.py => ClusterRoleBinding.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1alpha1/{cluster_role_binding_list.py => ClusterRoleBindingList.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1alpha1/{cluster_role_list.py => ClusterRoleList.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1alpha1/{role_binding.py => RoleBinding.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1alpha1/{role_binding_list.py => RoleBindingList.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1alpha1/{role_list.py => RoleList.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1beta1/{cluster_role.py => ClusterRole.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1beta1/{cluster_role_binding.py => ClusterRoleBinding.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1beta1/{cluster_role_binding_list.py => ClusterRoleBindingList.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1beta1/{cluster_role_list.py => ClusterRoleList.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1beta1/{role_binding.py => RoleBinding.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1beta1/{role_binding_list.py => RoleBindingList.py} (100%) rename sdk/python/pulumi_kubernetes/rbac/v1beta1/{role_list.py => RoleList.py} (100%) rename sdk/python/pulumi_kubernetes/scheduling/v1/{priority_class.py => PriorityClass.py} (100%) rename sdk/python/pulumi_kubernetes/scheduling/v1/{priority_class_list.py => PriorityClassList.py} (100%) rename sdk/python/pulumi_kubernetes/scheduling/v1alpha1/{priority_class.py => PriorityClass.py} (100%) rename sdk/python/pulumi_kubernetes/scheduling/v1alpha1/{priority_class_list.py => PriorityClassList.py} (100%) rename sdk/python/pulumi_kubernetes/scheduling/v1beta1/{priority_class.py => PriorityClass.py} (100%) rename sdk/python/pulumi_kubernetes/scheduling/v1beta1/{priority_class_list.py => PriorityClassList.py} (100%) rename sdk/python/pulumi_kubernetes/settings/v1alpha1/{pod_preset.py => PodPreset.py} (100%) rename sdk/python/pulumi_kubernetes/settings/v1alpha1/{pod_preset_list.py => PodPresetList.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1/{csi_driver.py => CSIDriver.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1/{csi_driver_list.py => CSIDriverList.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1/{csi_node.py => CSINode.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1/{csi_node_list.py => CSINodeList.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1/{storage_class.py => StorageClass.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1/{storage_class_list.py => StorageClassList.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1/{volume_attachment.py => VolumeAttachment.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1/{volume_attachment_list.py => VolumeAttachmentList.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1alpha1/{volume_attachment.py => VolumeAttachment.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1alpha1/{volume_attachment_list.py => VolumeAttachmentList.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1beta1/{csi_driver.py => CSIDriver.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1beta1/{csi_driver_list.py => CSIDriverList.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1beta1/{csi_node.py => CSINode.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1beta1/{csi_node_list.py => CSINodeList.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1beta1/{storage_class.py => StorageClass.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1beta1/{storage_class_list.py => StorageClassList.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1beta1/{volume_attachment.py => VolumeAttachment.py} (100%) rename sdk/python/pulumi_kubernetes/storage/v1beta1/{volume_attachment_list.py => VolumeAttachmentList.py} (100%) diff --git a/provider/cmd/pulumi-gen-kubernetes/main.go b/provider/cmd/pulumi-gen-kubernetes/main.go index 509d738b6f..6c1ab8c20a 100644 --- a/provider/cmd/pulumi-gen-kubernetes/main.go +++ b/provider/cmd/pulumi-gen-kubernetes/main.go @@ -194,10 +194,10 @@ func writePythonClient(pkg *schema.Package, outdir string, templateDir string) { }) overlays := map[string][]byte{ - "apiextensions/custom_resource.py": mustLoadFile(filepath.Join(templateDir, "apiextensions", "custom_resource.py")), - "helm/v2/helm.py": mustLoadFile(filepath.Join(templateDir, "helm", "v2", "helm.py")), - "helm/v3/helm.py": mustLoadFile(filepath.Join(templateDir, "helm", "v2", "helm.py")), // v3 support is currently identical to v2 - "yaml.py": mustRenderTemplate(filepath.Join(templateDir, "yaml", "yaml.tmpl"), templateResources), + "apiextensions/CustomResource.py": mustLoadFile(filepath.Join(templateDir, "apiextensions", "CustomResource.py")), + "helm/v2/helm.py": mustLoadFile(filepath.Join(templateDir, "helm", "v2", "helm.py")), + "helm/v3/helm.py": mustLoadFile(filepath.Join(templateDir, "helm", "v2", "helm.py")), // v3 support is currently identical to v2 + "yaml.py": mustRenderTemplate(filepath.Join(templateDir, "yaml", "yaml.tmpl"), templateResources), } files, err := pythongen.GeneratePackage("pulumigen", pkg, overlays) diff --git a/provider/pkg/gen/python-templates/apiextensions/custom_resource.py b/provider/pkg/gen/python-templates/apiextensions/CustomResource.py similarity index 100% rename from provider/pkg/gen/python-templates/apiextensions/custom_resource.py rename to provider/pkg/gen/python-templates/apiextensions/CustomResource.py diff --git a/sdk/python/pulumi_kubernetes/__init__.py b/sdk/python/pulumi_kubernetes/__init__.py index a3cb73b53b..065c486838 100644 --- a/sdk/python/pulumi_kubernetes/__init__.py +++ b/sdk/python/pulumi_kubernetes/__init__.py @@ -3,12 +3,38 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib -# Make subpackages available: -__all__ = ['admissionregistration', 'apiextensions', 'apiregistration', 'apps', 'auditregistration', 'authentication', 'authorization', 'autoscaling', 'batch', 'certificates', 'coordination', 'core', 'discovery', 'events', 'extensions', 'flowcontrol', 'helm', 'meta', 'networking', 'node', 'policy', 'rbac', 'scheduling', 'settings', 'storage'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') - # Export this package's modules as members: from .provider import * from .yaml import * + +# Make subpackages available: +submodules = [ + 'admissionregistration', + 'apiextensions', + 'apiregistration', + 'apps', + 'auditregistration', + 'authentication', + 'authorization', + 'autoscaling', + 'batch', + 'certificates', + 'coordination', + 'core', + 'discovery', + 'events', + 'extensions', + 'flowcontrol', + 'helm', + 'meta', + 'networking', + 'node', + 'policy', + 'rbac', + 'scheduling', + 'settings', + 'storage', +] +for pkg in submodules: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py index 4c1e851a21..9f26eec4ce 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +submodules = [ + 'v1', + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py similarity index 100% rename from sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py rename to sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py rename to sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py similarity index 100% rename from sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py rename to sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py rename to sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py index a10db0753b..88c4005809 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py @@ -3,7 +3,7 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .mutating_webhook_configuration import * -from .mutating_webhook_configuration_list import * -from .validating_webhook_configuration import * -from .validating_webhook_configuration_list import * +from .MutatingWebhookConfiguration import * +from .MutatingWebhookConfigurationList import * +from .ValidatingWebhookConfiguration import * +from .ValidatingWebhookConfigurationList import * diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py similarity index 100% rename from sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py rename to sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py rename to sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py similarity index 100% rename from sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py rename to sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py rename to sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py index a10db0753b..88c4005809 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py @@ -3,7 +3,7 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .mutating_webhook_configuration import * -from .mutating_webhook_configuration_list import * -from .validating_webhook_configuration import * -from .validating_webhook_configuration_list import * +from .MutatingWebhookConfiguration import * +from .MutatingWebhookConfigurationList import * +from .ValidatingWebhookConfiguration import * +from .ValidatingWebhookConfigurationList import * diff --git a/sdk/python/pulumi_kubernetes/apiextensions/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/__init__.py index a0299ee075..bb9dbd0b8f 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/__init__.py @@ -3,11 +3,14 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib +# Export this package's modules as members: +from .CustomResource import * + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +submodules = [ + 'v1', + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') - -# Export this package's modules as members: -from .custom_resource import * diff --git a/sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py b/sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py deleted file mode 100644 index 85dba0e1ca..0000000000 --- a/sdk/python/pulumi_kubernetes/apiextensions/custom_resource.py +++ /dev/null @@ -1,93 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings - -import pulumi -import pulumi.runtime -from pulumi import ResourceOptions - -from .. import tables -from ..utilities import get_version - - -class CustomResource(pulumi.CustomResource): - """ - CustomResource represents an instance of a CustomResourceDefinition (CRD). For example, the - CoreOS Prometheus operator exposes a CRD `monitoring.coreos.com/ServiceMonitor`; to - instantiate this as a Pulumi resource, one could call `new CustomResource`, passing the - `ServiceMonitor` resource definition as an argument. - """ - - def __init__(self, resource_name, api_version, kind, spec=None, metadata=None, opts=None, - __name__=None, __opts__=None): - """ - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param str api_version: The API version of the apiExtensions.CustomResource we - wish to select, as specified by the CustomResourceDefinition that defines it on the - API server. - :param str kind: The kind of the apiextensions.CustomResource we wish to select, - as specified by the CustomResourceDefinition that defines it on the API server. - :param pulumi.Input[Any] spec: Specification of the CustomResource. - :param Optional[pulumi.Input[Any]] metadata: Standard object metadata; More info: - https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = api_version - __props__['kind'] = kind - __props__['spec'] = spec - __props__['metadata'] = metadata - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(version=get_version())) - - super(CustomResource, self).__init__( - f"kubernetes:{api_version}:{kind}", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, api_version, kind, id, opts=None): - """ - Get the state of an existing `CustomResource` resource, as identified by `id`. - Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, - then (per Kubernetes convention) the ID becomes default/[name]. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param str api_version: The API version of the apiExtensions.CustomResource we - wish to select, as specified by the CustomResourceDefinition that defines it on the - API server. - :param str kind: The kind of the apiextensions.CustomResource we wish to select, - as specified by the CustomResourceDefinition that defines it on the API server. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form / or . - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CustomResource(resource_name=resource_name, api_version=api_version, kind=kind, opts=opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py rename to sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py rename to sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py index fbe44755c3..5c22c072a0 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .custom_resource_definition import * -from .custom_resource_definition_list import * +from .CustomResourceDefinition import * +from .CustomResourceDefinitionList import * diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py rename to sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py rename to sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py index fbe44755c3..5c22c072a0 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .custom_resource_definition import * -from .custom_resource_definition_list import * +from .CustomResourceDefinition import * +from .CustomResourceDefinitionList import * diff --git a/sdk/python/pulumi_kubernetes/apiregistration/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/__init__.py index 4c1e851a21..9f26eec4ce 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +submodules = [ + 'v1', + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apiregistration/v1/api_service.py rename to sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apiregistration/v1/api_service_list.py rename to sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py index db3b4deec8..631222d9d5 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .api_service import * -from .api_service_list import * +from .APIService import * +from .APIServiceList import * diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service.py rename to sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py rename to sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py index db3b4deec8..631222d9d5 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .api_service import * -from .api_service_list import * +from .APIService import * +from .APIServiceList import * diff --git a/sdk/python/pulumi_kubernetes/apps/__init__.py b/sdk/python/pulumi_kubernetes/apps/__init__.py index 3b707f2a5c..f02773ab18 100644 --- a/sdk/python/pulumi_kubernetes/apps/__init__.py +++ b/sdk/python/pulumi_kubernetes/apps/__init__.py @@ -3,8 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1', 'v1beta2'] -for pkg in __all__: +submodules = [ + 'v1', + 'v1beta1', + 'v1beta2', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1/controller_revision.py rename to sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1/controller_revision_list.py rename to sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1/daemon_set.py rename to sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1/daemon_set_list.py rename to sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1/deployment_list.py rename to sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1/replica_set.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1/replica_set.py rename to sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1/replica_set_list.py rename to sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1/stateful_set.py rename to sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1/stateful_set_list.py rename to sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1/__init__.py b/sdk/python/pulumi_kubernetes/apps/v1/__init__.py index 9f887a9f82..bd15244394 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/__init__.py @@ -3,13 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .controller_revision import * -from .controller_revision_list import * -from .daemon_set import * -from .daemon_set_list import * -from .deployment import * -from .deployment_list import * -from .replica_set import * -from .replica_set_list import * -from .stateful_set import * -from .stateful_set_list import * +from .ControllerRevision import * +from .ControllerRevisionList import * +from .DaemonSet import * +from .DaemonSetList import * +from .Deployment import * +from .DeploymentList import * +from .ReplicaSet import * +from .ReplicaSetList import * +from .StatefulSet import * +from .StatefulSetList import * diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision.py rename to sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta1/controller_revision_list.py rename to sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta1/deployment_list.py rename to sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set.py rename to sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta1/stateful_set_list.py rename to sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py index 75bdbdad55..2cd6cda286 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py @@ -3,9 +3,9 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .controller_revision import * -from .controller_revision_list import * -from .deployment import * -from .deployment_list import * -from .stateful_set import * -from .stateful_set_list import * +from .ControllerRevision import * +from .ControllerRevisionList import * +from .Deployment import * +from .DeploymentList import * +from .StatefulSet import * +from .StatefulSetList import * diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision.py rename to sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta2/controller_revision_list.py rename to sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set.py rename to sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta2/daemon_set_list.py rename to sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta2/deployment_list.py rename to sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set.py rename to sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta2/replica_set_list.py rename to sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set.py rename to sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/apps/v1beta2/stateful_set_list.py rename to sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py index 9f887a9f82..bd15244394 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py @@ -3,13 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .controller_revision import * -from .controller_revision_list import * -from .daemon_set import * -from .daemon_set_list import * -from .deployment import * -from .deployment_list import * -from .replica_set import * -from .replica_set_list import * -from .stateful_set import * -from .stateful_set_list import * +from .ControllerRevision import * +from .ControllerRevisionList import * +from .DaemonSet import * +from .DaemonSetList import * +from .Deployment import * +from .DeploymentList import * +from .ReplicaSet import * +from .ReplicaSetList import * +from .StatefulSet import * +from .StatefulSetList import * diff --git a/sdk/python/pulumi_kubernetes/auditregistration/__init__.py b/sdk/python/pulumi_kubernetes/auditregistration/__init__.py index d688fb9289..0c0f74f39f 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/__init__.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1alpha1'] -for pkg in __all__: +submodules = [ + 'v1alpha1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py similarity index 100% rename from sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py rename to sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py rename to sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py index f65b7fdb38..cbc631c4d8 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .audit_sink import * -from .audit_sink_list import * +from .AuditSink import * +from .AuditSinkList import * diff --git a/sdk/python/pulumi_kubernetes/authentication/__init__.py b/sdk/python/pulumi_kubernetes/authentication/__init__.py index 4c1e851a21..9f26eec4ce 100644 --- a/sdk/python/pulumi_kubernetes/authentication/__init__.py +++ b/sdk/python/pulumi_kubernetes/authentication/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +submodules = [ + 'v1', + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/token_request.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py similarity index 100% rename from sdk/python/pulumi_kubernetes/authentication/v1/token_request.py rename to sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/token_review.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py similarity index 100% rename from sdk/python/pulumi_kubernetes/authentication/v1/token_review.py rename to sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py b/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py index 2e812c99a7..4c19c0eef7 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .token_request import * -from .token_review import * +from .TokenRequest import * +from .TokenReview import * diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py similarity index 100% rename from sdk/python/pulumi_kubernetes/authentication/v1beta1/token_review.py rename to sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py index b015516238..969b776d63 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py @@ -3,4 +3,4 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .token_review import * +from .TokenReview import * diff --git a/sdk/python/pulumi_kubernetes/authorization/__init__.py b/sdk/python/pulumi_kubernetes/authorization/__init__.py index 4c1e851a21..9f26eec4ce 100644 --- a/sdk/python/pulumi_kubernetes/authorization/__init__.py +++ b/sdk/python/pulumi_kubernetes/authorization/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +submodules = [ + 'v1', + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py similarity index 100% rename from sdk/python/pulumi_kubernetes/authorization/v1/local_subject_access_review.py rename to sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py similarity index 100% rename from sdk/python/pulumi_kubernetes/authorization/v1/self_subject_access_review.py rename to sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py similarity index 100% rename from sdk/python/pulumi_kubernetes/authorization/v1/self_subject_rules_review.py rename to sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py similarity index 100% rename from sdk/python/pulumi_kubernetes/authorization/v1/subject_access_review.py rename to sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py b/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py index 0000a01b84..973ca34da2 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py @@ -3,7 +3,7 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .local_subject_access_review import * -from .self_subject_access_review import * -from .self_subject_rules_review import * -from .subject_access_review import * +from .LocalSubjectAccessReview import * +from .SelfSubjectAccessReview import * +from .SelfSubjectRulesReview import * +from .SubjectAccessReview import * diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py similarity index 100% rename from sdk/python/pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py rename to sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py similarity index 100% rename from sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py rename to sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py similarity index 100% rename from sdk/python/pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py rename to sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py similarity index 100% rename from sdk/python/pulumi_kubernetes/authorization/v1beta1/subject_access_review.py rename to sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py index 0000a01b84..973ca34da2 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py @@ -3,7 +3,7 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .local_subject_access_review import * -from .self_subject_access_review import * -from .self_subject_rules_review import * -from .subject_access_review import * +from .LocalSubjectAccessReview import * +from .SelfSubjectAccessReview import * +from .SelfSubjectRulesReview import * +from .SubjectAccessReview import * diff --git a/sdk/python/pulumi_kubernetes/autoscaling/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/__init__.py index aadeed7f52..c888982716 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/__init__.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/__init__.py @@ -3,8 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v2beta1', 'v2beta2'] -for pkg in __all__: +submodules = [ + 'v1', + 'v2beta1', + 'v2beta2', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py similarity index 100% rename from sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py rename to sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py rename to sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py index e36ca54496..3057ccbec9 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .horizontal_pod_autoscaler import * -from .horizontal_pod_autoscaler_list import * +from .HorizontalPodAutoscaler import * +from .HorizontalPodAutoscalerList import * diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py similarity index 100% rename from sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py rename to sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py rename to sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py index e36ca54496..3057ccbec9 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .horizontal_pod_autoscaler import * -from .horizontal_pod_autoscaler_list import * +from .HorizontalPodAutoscaler import * +from .HorizontalPodAutoscalerList import * diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py similarity index 100% rename from sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py rename to sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py rename to sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py index e36ca54496..3057ccbec9 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .horizontal_pod_autoscaler import * -from .horizontal_pod_autoscaler_list import * +from .HorizontalPodAutoscaler import * +from .HorizontalPodAutoscalerList import * diff --git a/sdk/python/pulumi_kubernetes/batch/__init__.py b/sdk/python/pulumi_kubernetes/batch/__init__.py index 11842b0e79..c42df35e27 100644 --- a/sdk/python/pulumi_kubernetes/batch/__init__.py +++ b/sdk/python/pulumi_kubernetes/batch/__init__.py @@ -3,8 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1', 'v2alpha1'] -for pkg in __all__: +submodules = [ + 'v1', + 'v1beta1', + 'v2alpha1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/batch/v1/job_list.py b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/batch/v1/job_list.py rename to sdk/python/pulumi_kubernetes/batch/v1/JobList.py diff --git a/sdk/python/pulumi_kubernetes/batch/v1/__init__.py b/sdk/python/pulumi_kubernetes/batch/v1/__init__.py index 44134015e1..4ab151b0e7 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .job import * -from .job_list import * +from .Job import * +from .JobList import * diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py similarity index 100% rename from sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job.py rename to sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/batch/v1beta1/cron_job_list.py rename to sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py index 0648063ee2..28944acdc0 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .cron_job import * -from .cron_job_list import * +from .CronJob import * +from .CronJobList import * diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py similarity index 100% rename from sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job.py rename to sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/batch/v2alpha1/cron_job_list.py rename to sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py index 0648063ee2..28944acdc0 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .cron_job import * -from .cron_job_list import * +from .CronJob import * +from .CronJobList import * diff --git a/sdk/python/pulumi_kubernetes/certificates/__init__.py b/sdk/python/pulumi_kubernetes/certificates/__init__.py index a311e81ad2..9bd041a38e 100644 --- a/sdk/python/pulumi_kubernetes/certificates/__init__.py +++ b/sdk/python/pulumi_kubernetes/certificates/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: +submodules = [ + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py similarity index 100% rename from sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py rename to sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py rename to sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py index 5811653ffd..85e0e2e398 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .certificate_signing_request import * -from .certificate_signing_request_list import * +from .CertificateSigningRequest import * +from .CertificateSigningRequestList import * diff --git a/sdk/python/pulumi_kubernetes/coordination/__init__.py b/sdk/python/pulumi_kubernetes/coordination/__init__.py index 4c1e851a21..9f26eec4ce 100644 --- a/sdk/python/pulumi_kubernetes/coordination/__init__.py +++ b/sdk/python/pulumi_kubernetes/coordination/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +submodules = [ + 'v1', + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/coordination/v1/lease_list.py rename to sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py b/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py index 8c72d39e4c..80fc5a5b17 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .lease import * -from .lease_list import * +from .Lease import * +from .LeaseList import * diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/coordination/v1beta1/lease_list.py rename to sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py index 8c72d39e4c..80fc5a5b17 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .lease import * -from .lease_list import * +from .Lease import * +from .LeaseList import * diff --git a/sdk/python/pulumi_kubernetes/core/__init__.py b/sdk/python/pulumi_kubernetes/core/__init__.py index e2a396b5dc..26532f7195 100644 --- a/sdk/python/pulumi_kubernetes/core/__init__.py +++ b/sdk/python/pulumi_kubernetes/core/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1'] -for pkg in __all__: +submodules = [ + 'v1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/core/v1/component_status.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/component_status.py rename to sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/component_status_list.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/component_status_list.py rename to sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/config_map.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/config_map.py rename to sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/config_map_list.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/config_map_list.py rename to sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/endpoints_list.py rename to sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/event_list.py b/sdk/python/pulumi_kubernetes/core/v1/EventList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/event_list.py rename to sdk/python/pulumi_kubernetes/core/v1/EventList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/limit_range.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/limit_range.py rename to sdk/python/pulumi_kubernetes/core/v1/LimitRange.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/limit_range_list.py rename to sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/namespace_list.py b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/namespace_list.py rename to sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/node_list.py b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/node_list.py rename to sdk/python/pulumi_kubernetes/core/v1/NodeList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/persistent_volume.py rename to sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim.py rename to sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/persistent_volume_claim_list.py rename to sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/persistent_volume_list.py rename to sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_list.py b/sdk/python/pulumi_kubernetes/core/v1/PodList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/pod_list.py rename to sdk/python/pulumi_kubernetes/core/v1/PodList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_template.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/pod_template.py rename to sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/pod_template_list.py rename to sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/replication_controller.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/replication_controller.py rename to sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/replication_controller_list.py rename to sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/resource_quota.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/resource_quota.py rename to sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/resource_quota_list.py rename to sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/secret_list.py b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/secret_list.py rename to sdk/python/pulumi_kubernetes/core/v1/SecretList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_account.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/service_account.py rename to sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_account_list.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/service_account_list.py rename to sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/service_list.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/core/v1/service_list.py rename to sdk/python/pulumi_kubernetes/core/v1/ServiceList.py diff --git a/sdk/python/pulumi_kubernetes/core/v1/__init__.py b/sdk/python/pulumi_kubernetes/core/v1/__init__.py index 49b1c9913a..04ee08a182 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/core/v1/__init__.py @@ -3,36 +3,36 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .binding import * -from .component_status import * -from .component_status_list import * -from .config_map import * -from .config_map_list import * -from .endpoints import * -from .endpoints_list import * -from .event import * -from .event_list import * -from .limit_range import * -from .limit_range_list import * -from .namespace import * -from .namespace_list import * -from .node import * -from .node_list import * -from .persistent_volume import * -from .persistent_volume_claim import * -from .persistent_volume_claim_list import * -from .persistent_volume_list import * -from .pod import * -from .pod_list import * -from .pod_template import * -from .pod_template_list import * -from .replication_controller import * -from .replication_controller_list import * -from .resource_quota import * -from .resource_quota_list import * -from .secret import * -from .secret_list import * -from .service import * -from .service_account import * -from .service_account_list import * -from .service_list import * +from .Binding import * +from .ComponentStatus import * +from .ComponentStatusList import * +from .ConfigMap import * +from .ConfigMapList import * +from .Endpoints import * +from .EndpointsList import * +from .Event import * +from .EventList import * +from .LimitRange import * +from .LimitRangeList import * +from .Namespace import * +from .NamespaceList import * +from .Node import * +from .NodeList import * +from .PersistentVolume import * +from .PersistentVolumeClaim import * +from .PersistentVolumeClaimList import * +from .PersistentVolumeList import * +from .Pod import * +from .PodList import * +from .PodTemplate import * +from .PodTemplateList import * +from .ReplicationController import * +from .ReplicationControllerList import * +from .ResourceQuota import * +from .ResourceQuotaList import * +from .Secret import * +from .SecretList import * +from .Service import * +from .ServiceAccount import * +from .ServiceAccountList import * +from .ServiceList import * diff --git a/sdk/python/pulumi_kubernetes/discovery/__init__.py b/sdk/python/pulumi_kubernetes/discovery/__init__.py index a311e81ad2..9bd041a38e 100644 --- a/sdk/python/pulumi_kubernetes/discovery/__init__.py +++ b/sdk/python/pulumi_kubernetes/discovery/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: +submodules = [ + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py similarity index 100% rename from sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py rename to sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py rename to sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py index 89d95aa3ee..d69646b079 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .endpoint_slice import * -from .endpoint_slice_list import * +from .EndpointSlice import * +from .EndpointSliceList import * diff --git a/sdk/python/pulumi_kubernetes/events/__init__.py b/sdk/python/pulumi_kubernetes/events/__init__.py index a311e81ad2..9bd041a38e 100644 --- a/sdk/python/pulumi_kubernetes/events/__init__.py +++ b/sdk/python/pulumi_kubernetes/events/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: +submodules = [ + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/events/v1beta1/event_list.py rename to sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py index 998e210a6d..da6c993426 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .event import * -from .event_list import * +from .Event import * +from .EventList import * diff --git a/sdk/python/pulumi_kubernetes/extensions/__init__.py b/sdk/python/pulumi_kubernetes/extensions/__init__.py index a311e81ad2..9bd041a38e 100644 --- a/sdk/python/pulumi_kubernetes/extensions/__init__.py +++ b/sdk/python/pulumi_kubernetes/extensions/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: +submodules = [ + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py similarity index 100% rename from sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set.py rename to sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py rename to sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment_list.py rename to sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress_list.py rename to sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py similarity index 100% rename from sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy.py rename to sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/extensions/v1beta1/network_policy_list.py rename to sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py similarity index 100% rename from sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py rename to sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py rename to sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py similarity index 100% rename from sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set.py rename to sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/extensions/v1beta1/replica_set_list.py rename to sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py index 87e0679ea8..44252ee76a 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py @@ -3,15 +3,15 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .daemon_set import * -from .daemon_set_list import * -from .deployment import * -from .deployment_list import * -from .ingress import * -from .ingress_list import * -from .network_policy import * -from .network_policy_list import * -from .pod_security_policy import * -from .pod_security_policy_list import * -from .replica_set import * -from .replica_set_list import * +from .DaemonSet import * +from .DaemonSetList import * +from .Deployment import * +from .DeploymentList import * +from .Ingress import * +from .IngressList import * +from .NetworkPolicy import * +from .NetworkPolicyList import * +from .PodSecurityPolicy import * +from .PodSecurityPolicyList import * +from .ReplicaSet import * +from .ReplicaSetList import * diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py b/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py index d688fb9289..0c0f74f39f 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1alpha1'] -for pkg in __all__: +submodules = [ + 'v1alpha1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py similarity index 100% rename from sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py rename to sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py rename to sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py similarity index 100% rename from sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py rename to sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py rename to sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py index 9215eceb05..052ed3de86 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py @@ -3,7 +3,7 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .flow_schema import * -from .flow_schema_list import * -from .priority_level_configuration import * -from .priority_level_configuration_list import * +from .FlowSchema import * +from .FlowSchemaList import * +from .PriorityLevelConfiguration import * +from .PriorityLevelConfigurationList import * diff --git a/sdk/python/pulumi_kubernetes/helm/__init__.py b/sdk/python/pulumi_kubernetes/helm/__init__.py index 4c217c1e5c..c20e011f04 100644 --- a/sdk/python/pulumi_kubernetes/helm/__init__.py +++ b/sdk/python/pulumi_kubernetes/helm/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v2', 'v3'] -for pkg in __all__: +submodules = [ + 'v2', + 'v3', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/meta/__init__.py b/sdk/python/pulumi_kubernetes/meta/__init__.py index e2a396b5dc..26532f7195 100644 --- a/sdk/python/pulumi_kubernetes/meta/__init__.py +++ b/sdk/python/pulumi_kubernetes/meta/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1'] -for pkg in __all__: +submodules = [ + 'v1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/meta/v1/__init__.py b/sdk/python/pulumi_kubernetes/meta/v1/__init__.py index 019c986f0d..efd40f5ec2 100644 --- a/sdk/python/pulumi_kubernetes/meta/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/__init__.py @@ -3,4 +3,4 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .status import * +from .Status import * diff --git a/sdk/python/pulumi_kubernetes/networking/__init__.py b/sdk/python/pulumi_kubernetes/networking/__init__.py index 4c1e851a21..9f26eec4ce 100644 --- a/sdk/python/pulumi_kubernetes/networking/__init__.py +++ b/sdk/python/pulumi_kubernetes/networking/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +submodules = [ + 'v1', + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/networking/v1/network_policy.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py similarity index 100% rename from sdk/python/pulumi_kubernetes/networking/v1/network_policy.py rename to sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py diff --git a/sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/networking/v1/network_policy_list.py rename to sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py diff --git a/sdk/python/pulumi_kubernetes/networking/v1/__init__.py b/sdk/python/pulumi_kubernetes/networking/v1/__init__.py index 2e7b8c0546..2b70c0b4c0 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .network_policy import * -from .network_policy_list import * +from .NetworkPolicy import * +from .NetworkPolicyList import * diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py similarity index 100% rename from sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class.py rename to sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_class_list.py rename to sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/networking/v1beta1/ingress_list.py rename to sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py index f81395c0b7..b0f44db632 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py @@ -3,7 +3,7 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .ingress import * -from .ingress_class import * -from .ingress_class_list import * -from .ingress_list import * +from .Ingress import * +from .IngressClass import * +from .IngressClassList import * +from .IngressList import * diff --git a/sdk/python/pulumi_kubernetes/node/__init__.py b/sdk/python/pulumi_kubernetes/node/__init__.py index b7445a56eb..2cadee06ae 100644 --- a/sdk/python/pulumi_kubernetes/node/__init__.py +++ b/sdk/python/pulumi_kubernetes/node/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1alpha1', 'v1beta1'] -for pkg in __all__: +submodules = [ + 'v1alpha1', + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py similarity index 100% rename from sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class.py rename to sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/node/v1alpha1/runtime_class_list.py rename to sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py index 8d2beaf7cf..8d424b8363 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .runtime_class import * -from .runtime_class_list import * +from .RuntimeClass import * +from .RuntimeClassList import * diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py similarity index 100% rename from sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class.py rename to sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/node/v1beta1/runtime_class_list.py rename to sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py index 8d2beaf7cf..8d424b8363 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .runtime_class import * -from .runtime_class_list import * +from .RuntimeClass import * +from .RuntimeClassList import * diff --git a/sdk/python/pulumi_kubernetes/policy/__init__.py b/sdk/python/pulumi_kubernetes/policy/__init__.py index a311e81ad2..9bd041a38e 100644 --- a/sdk/python/pulumi_kubernetes/policy/__init__.py +++ b/sdk/python/pulumi_kubernetes/policy/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: +submodules = [ + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py similarity index 100% rename from sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py rename to sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py rename to sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py similarity index 100% rename from sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy.py rename to sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py rename to sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py index 4a81a60a30..1c30569dbe 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py @@ -3,7 +3,7 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .pod_disruption_budget import * -from .pod_disruption_budget_list import * -from .pod_security_policy import * -from .pod_security_policy_list import * +from .PodDisruptionBudget import * +from .PodDisruptionBudgetList import * +from .PodSecurityPolicy import * +from .PodSecurityPolicyList import * diff --git a/sdk/python/pulumi_kubernetes/rbac/__init__.py b/sdk/python/pulumi_kubernetes/rbac/__init__.py index 1f87cd7749..dbfb33adc4 100644 --- a/sdk/python/pulumi_kubernetes/rbac/__init__.py +++ b/sdk/python/pulumi_kubernetes/rbac/__init__.py @@ -3,8 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1alpha1', 'v1beta1'] -for pkg in __all__: +submodules = [ + 'v1', + 'v1alpha1', + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1/cluster_role.py rename to sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding.py rename to sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py rename to sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1/cluster_role_list.py rename to sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1/role_binding.py rename to sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1/role_binding_list.py rename to sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1/role_list.py rename to sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py b/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py index 3b8cf17e29..e86bf253d5 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py @@ -3,11 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .cluster_role import * -from .cluster_role_binding import * -from .cluster_role_binding_list import * -from .cluster_role_list import * -from .role import * -from .role_binding import * -from .role_binding_list import * -from .role_list import * +from .ClusterRole import * +from .ClusterRoleBinding import * +from .ClusterRoleBindingList import * +from .ClusterRoleList import * +from .Role import * +from .RoleBinding import * +from .RoleBindingList import * +from .RoleList import * diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role.py rename to sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py rename to sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py rename to sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py rename to sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding.py rename to sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py rename to sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1alpha1/role_list.py rename to sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py index 3b8cf17e29..e86bf253d5 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py @@ -3,11 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .cluster_role import * -from .cluster_role_binding import * -from .cluster_role_binding_list import * -from .cluster_role_list import * -from .role import * -from .role_binding import * -from .role_binding_list import * -from .role_list import * +from .ClusterRole import * +from .ClusterRoleBinding import * +from .ClusterRoleBindingList import * +from .ClusterRoleList import * +from .Role import * +from .RoleBinding import * +from .RoleBindingList import * +from .RoleList import * diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role.py rename to sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py rename to sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py rename to sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py rename to sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding.py rename to sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1beta1/role_binding_list.py rename to sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/rbac/v1beta1/role_list.py rename to sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py index 3b8cf17e29..e86bf253d5 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py @@ -3,11 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .cluster_role import * -from .cluster_role_binding import * -from .cluster_role_binding_list import * -from .cluster_role_list import * -from .role import * -from .role_binding import * -from .role_binding_list import * -from .role_list import * +from .ClusterRole import * +from .ClusterRoleBinding import * +from .ClusterRoleBindingList import * +from .ClusterRoleList import * +from .Role import * +from .RoleBinding import * +from .RoleBindingList import * +from .RoleList import * diff --git a/sdk/python/pulumi_kubernetes/scheduling/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/__init__.py index 1f87cd7749..dbfb33adc4 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/__init__.py +++ b/sdk/python/pulumi_kubernetes/scheduling/__init__.py @@ -3,8 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1alpha1', 'v1beta1'] -for pkg in __all__: +submodules = [ + 'v1', + 'v1alpha1', + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py similarity index 100% rename from sdk/python/pulumi_kubernetes/scheduling/v1/priority_class.py rename to sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/scheduling/v1/priority_class_list.py rename to sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py index dd8f584cce..db19940172 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .priority_class import * -from .priority_class_list import * +from .PriorityClass import * +from .PriorityClassList import * diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py similarity index 100% rename from sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class.py rename to sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py rename to sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py index dd8f584cce..db19940172 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .priority_class import * -from .priority_class_list import * +from .PriorityClass import * +from .PriorityClassList import * diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py similarity index 100% rename from sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class.py rename to sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py rename to sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py index dd8f584cce..db19940172 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .priority_class import * -from .priority_class_list import * +from .PriorityClass import * +from .PriorityClassList import * diff --git a/sdk/python/pulumi_kubernetes/settings/__init__.py b/sdk/python/pulumi_kubernetes/settings/__init__.py index d688fb9289..0c0f74f39f 100644 --- a/sdk/python/pulumi_kubernetes/settings/__init__.py +++ b/sdk/python/pulumi_kubernetes/settings/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1alpha1'] -for pkg in __all__: +submodules = [ + 'v1alpha1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py similarity index 100% rename from sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset.py rename to sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py rename to sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py index a658b6b1cf..c69aa08339 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .pod_preset import * -from .pod_preset_list import * +from .PodPreset import * +from .PodPresetList import * diff --git a/sdk/python/pulumi_kubernetes/storage/__init__.py b/sdk/python/pulumi_kubernetes/storage/__init__.py index 1f87cd7749..dbfb33adc4 100644 --- a/sdk/python/pulumi_kubernetes/storage/__init__.py +++ b/sdk/python/pulumi_kubernetes/storage/__init__.py @@ -3,8 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1alpha1', 'v1beta1'] -for pkg in __all__: +submodules = [ + 'v1', + 'v1alpha1', + 'v1beta1', +] +for pkg in submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1/csi_driver.py rename to sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1/csi_driver_list.py rename to sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_node.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1/csi_node.py rename to sdk/python/pulumi_kubernetes/storage/v1/CSINode.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1/csi_node_list.py rename to sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1/storage_class.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1/storage_class.py rename to sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1/storage_class_list.py rename to sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1/volume_attachment.py rename to sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1/volume_attachment_list.py rename to sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1/__init__.py b/sdk/python/pulumi_kubernetes/storage/v1/__init__.py index db2bfa6b9d..c245ce2669 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/__init__.py @@ -3,11 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .csi_driver import * -from .csi_driver_list import * -from .csi_node import * -from .csi_node_list import * -from .storage_class import * -from .storage_class_list import * -from .volume_attachment import * -from .volume_attachment_list import * +from .CSIDriver import * +from .CSIDriverList import * +from .CSINode import * +from .CSINodeList import * +from .StorageClass import * +from .StorageClassList import * +from .VolumeAttachment import * +from .VolumeAttachmentList import * diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment.py rename to sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py rename to sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py index 89b18aabba..9f5aca33a0 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py @@ -3,5 +3,5 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .volume_attachment import * -from .volume_attachment_list import * +from .VolumeAttachment import * +from .VolumeAttachmentList import * diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver.py rename to sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1beta1/csi_driver_list.py rename to sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node.py rename to sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1beta1/csi_node_list.py rename to sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class.py rename to sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1beta1/storage_class_list.py rename to sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment.py rename to sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py similarity index 100% rename from sdk/python/pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py rename to sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py index db2bfa6b9d..c245ce2669 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py @@ -3,11 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: -from .csi_driver import * -from .csi_driver_list import * -from .csi_node import * -from .csi_node_list import * -from .storage_class import * -from .storage_class_list import * -from .volume_attachment import * -from .volume_attachment_list import * +from .CSIDriver import * +from .CSIDriverList import * +from .CSINode import * +from .CSINodeList import * +from .StorageClass import * +from .StorageClassList import * +from .VolumeAttachment import * +from .VolumeAttachmentList import * From 7af55a4a4c257e7ed19bff4b0d66112ba1236e7b Mon Sep 17 00:00:00 2001 From: komal Date: Tue, 23 Jun 2020 12:30:55 -0700 Subject: [PATCH 16/25] Add missing file --- .../apiextensions/CustomResource.py | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py diff --git a/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py b/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py new file mode 100644 index 0000000000..85dba0e1ca --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py @@ -0,0 +1,93 @@ +# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings + +import pulumi +import pulumi.runtime +from pulumi import ResourceOptions + +from .. import tables +from ..utilities import get_version + + +class CustomResource(pulumi.CustomResource): + """ + CustomResource represents an instance of a CustomResourceDefinition (CRD). For example, the + CoreOS Prometheus operator exposes a CRD `monitoring.coreos.com/ServiceMonitor`; to + instantiate this as a Pulumi resource, one could call `new CustomResource`, passing the + `ServiceMonitor` resource definition as an argument. + """ + + def __init__(self, resource_name, api_version, kind, spec=None, metadata=None, opts=None, + __name__=None, __opts__=None): + """ + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param str api_version: The API version of the apiExtensions.CustomResource we + wish to select, as specified by the CustomResourceDefinition that defines it on the + API server. + :param str kind: The kind of the apiextensions.CustomResource we wish to select, + as specified by the CustomResourceDefinition that defines it on the API server. + :param pulumi.Input[Any] spec: Specification of the CustomResource. + :param Optional[pulumi.Input[Any]] metadata: Standard object metadata; More info: + https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if not resource_name: + raise TypeError('Missing resource name argument (for URN creation)') + if not isinstance(resource_name, str): + raise TypeError('Expected resource name to be a string') + if opts and not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + + __props__ = dict() + + __props__['apiVersion'] = api_version + __props__['kind'] = kind + __props__['spec'] = spec + __props__['metadata'] = metadata + + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(version=get_version())) + + super(CustomResource, self).__init__( + f"kubernetes:{api_version}:{kind}", + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, api_version, kind, id, opts=None): + """ + Get the state of an existing `CustomResource` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param str api_version: The API version of the apiExtensions.CustomResource we + wish to select, as specified by the CustomResourceDefinition that defines it on the + API server. + :param str kind: The kind of the apiextensions.CustomResource we wish to select, + as specified by the CustomResourceDefinition that defines it on the API server. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form / or . + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CustomResource(resource_name=resource_name, api_version=api_version, kind=kind, opts=opts) + + def translate_output_property(self, prop: str) -> str: + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop: str) -> str: + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop From 1015b1bf6b993ec18d7e78588a82b2149cd74733 Mon Sep 17 00:00:00 2001 From: komal Date: Tue, 23 Jun 2020 13:20:13 -0700 Subject: [PATCH 17/25] latest pulumi version --- sdk/python/pulumi_kubernetes/__init__.py | 38 +++---------------- .../admissionregistration/__init__.py | 8 +--- .../apiextensions/__init__.py | 13 +++---- .../apiregistration/__init__.py | 8 +--- sdk/python/pulumi_kubernetes/apps/__init__.py | 9 +---- .../auditregistration/__init__.py | 7 +--- .../authentication/__init__.py | 8 +--- .../authorization/__init__.py | 8 +--- .../pulumi_kubernetes/autoscaling/__init__.py | 9 +---- .../pulumi_kubernetes/batch/__init__.py | 9 +---- .../certificates/__init__.py | 7 +--- .../coordination/__init__.py | 8 +--- sdk/python/pulumi_kubernetes/core/__init__.py | 7 +--- .../pulumi_kubernetes/discovery/__init__.py | 7 +--- .../pulumi_kubernetes/events/__init__.py | 7 +--- .../pulumi_kubernetes/extensions/__init__.py | 7 +--- .../pulumi_kubernetes/flowcontrol/__init__.py | 7 +--- sdk/python/pulumi_kubernetes/helm/__init__.py | 8 +--- sdk/python/pulumi_kubernetes/meta/__init__.py | 7 +--- .../pulumi_kubernetes/networking/__init__.py | 8 +--- sdk/python/pulumi_kubernetes/node/__init__.py | 8 +--- .../pulumi_kubernetes/policy/__init__.py | 7 +--- sdk/python/pulumi_kubernetes/rbac/__init__.py | 9 +---- .../pulumi_kubernetes/scheduling/__init__.py | 9 +---- .../pulumi_kubernetes/settings/__init__.py | 7 +--- .../pulumi_kubernetes/storage/__init__.py | 9 +---- 26 files changed, 59 insertions(+), 180 deletions(-) diff --git a/sdk/python/pulumi_kubernetes/__init__.py b/sdk/python/pulumi_kubernetes/__init__.py index 065c486838..a3cb73b53b 100644 --- a/sdk/python/pulumi_kubernetes/__init__.py +++ b/sdk/python/pulumi_kubernetes/__init__.py @@ -3,38 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib -# Export this package's modules as members: -from .provider import * -from .yaml import * - # Make subpackages available: -submodules = [ - 'admissionregistration', - 'apiextensions', - 'apiregistration', - 'apps', - 'auditregistration', - 'authentication', - 'authorization', - 'autoscaling', - 'batch', - 'certificates', - 'coordination', - 'core', - 'discovery', - 'events', - 'extensions', - 'flowcontrol', - 'helm', - 'meta', - 'networking', - 'node', - 'policy', - 'rbac', - 'scheduling', - 'settings', - 'storage', -] -for pkg in submodules: +__all__ = ['admissionregistration', 'apiextensions', 'apiregistration', 'apps', 'auditregistration', 'authentication', 'authorization', 'autoscaling', 'batch', 'certificates', 'coordination', 'core', 'discovery', 'events', 'extensions', 'flowcontrol', 'helm', 'meta', 'networking', 'node', 'policy', 'rbac', 'scheduling', 'settings', 'storage'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') + +# Export this package's modules as members: +from .provider import * +from .yaml import * diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py index 9f26eec4ce..4c1e851a21 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py @@ -3,12 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/apiextensions/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/__init__.py index bb9dbd0b8f..c24be2a8a4 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/__init__.py @@ -3,14 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib -# Export this package's modules as members: -from .CustomResource import * - # Make subpackages available: -submodules = [ - 'v1', - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') + +# Export this package's modules as members: +from .CustomResource import * diff --git a/sdk/python/pulumi_kubernetes/apiregistration/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/__init__.py index 9f26eec4ce..4c1e851a21 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/__init__.py @@ -3,12 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/apps/__init__.py b/sdk/python/pulumi_kubernetes/apps/__init__.py index f02773ab18..3b707f2a5c 100644 --- a/sdk/python/pulumi_kubernetes/apps/__init__.py +++ b/sdk/python/pulumi_kubernetes/apps/__init__.py @@ -3,13 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', - 'v1beta1', - 'v1beta2', -] -for pkg in submodules: +__all__ = ['v1', 'v1beta1', 'v1beta2'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/auditregistration/__init__.py b/sdk/python/pulumi_kubernetes/auditregistration/__init__.py index 0c0f74f39f..d688fb9289 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/__init__.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/__init__.py @@ -3,11 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1alpha1', -] -for pkg in submodules: +__all__ = ['v1alpha1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/authentication/__init__.py b/sdk/python/pulumi_kubernetes/authentication/__init__.py index 9f26eec4ce..4c1e851a21 100644 --- a/sdk/python/pulumi_kubernetes/authentication/__init__.py +++ b/sdk/python/pulumi_kubernetes/authentication/__init__.py @@ -3,12 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/authorization/__init__.py b/sdk/python/pulumi_kubernetes/authorization/__init__.py index 9f26eec4ce..4c1e851a21 100644 --- a/sdk/python/pulumi_kubernetes/authorization/__init__.py +++ b/sdk/python/pulumi_kubernetes/authorization/__init__.py @@ -3,12 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/autoscaling/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/__init__.py index c888982716..aadeed7f52 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/__init__.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/__init__.py @@ -3,13 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', - 'v2beta1', - 'v2beta2', -] -for pkg in submodules: +__all__ = ['v1', 'v2beta1', 'v2beta2'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/batch/__init__.py b/sdk/python/pulumi_kubernetes/batch/__init__.py index c42df35e27..11842b0e79 100644 --- a/sdk/python/pulumi_kubernetes/batch/__init__.py +++ b/sdk/python/pulumi_kubernetes/batch/__init__.py @@ -3,13 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', - 'v1beta1', - 'v2alpha1', -] -for pkg in submodules: +__all__ = ['v1', 'v1beta1', 'v2alpha1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/certificates/__init__.py b/sdk/python/pulumi_kubernetes/certificates/__init__.py index 9bd041a38e..a311e81ad2 100644 --- a/sdk/python/pulumi_kubernetes/certificates/__init__.py +++ b/sdk/python/pulumi_kubernetes/certificates/__init__.py @@ -3,11 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/coordination/__init__.py b/sdk/python/pulumi_kubernetes/coordination/__init__.py index 9f26eec4ce..4c1e851a21 100644 --- a/sdk/python/pulumi_kubernetes/coordination/__init__.py +++ b/sdk/python/pulumi_kubernetes/coordination/__init__.py @@ -3,12 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/core/__init__.py b/sdk/python/pulumi_kubernetes/core/__init__.py index 26532f7195..e2a396b5dc 100644 --- a/sdk/python/pulumi_kubernetes/core/__init__.py +++ b/sdk/python/pulumi_kubernetes/core/__init__.py @@ -3,11 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', -] -for pkg in submodules: +__all__ = ['v1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/discovery/__init__.py b/sdk/python/pulumi_kubernetes/discovery/__init__.py index 9bd041a38e..a311e81ad2 100644 --- a/sdk/python/pulumi_kubernetes/discovery/__init__.py +++ b/sdk/python/pulumi_kubernetes/discovery/__init__.py @@ -3,11 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/events/__init__.py b/sdk/python/pulumi_kubernetes/events/__init__.py index 9bd041a38e..a311e81ad2 100644 --- a/sdk/python/pulumi_kubernetes/events/__init__.py +++ b/sdk/python/pulumi_kubernetes/events/__init__.py @@ -3,11 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/extensions/__init__.py b/sdk/python/pulumi_kubernetes/extensions/__init__.py index 9bd041a38e..a311e81ad2 100644 --- a/sdk/python/pulumi_kubernetes/extensions/__init__.py +++ b/sdk/python/pulumi_kubernetes/extensions/__init__.py @@ -3,11 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py b/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py index 0c0f74f39f..d688fb9289 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py @@ -3,11 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1alpha1', -] -for pkg in submodules: +__all__ = ['v1alpha1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/helm/__init__.py b/sdk/python/pulumi_kubernetes/helm/__init__.py index c20e011f04..4c217c1e5c 100644 --- a/sdk/python/pulumi_kubernetes/helm/__init__.py +++ b/sdk/python/pulumi_kubernetes/helm/__init__.py @@ -3,12 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v2', - 'v3', -] -for pkg in submodules: +__all__ = ['v2', 'v3'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/meta/__init__.py b/sdk/python/pulumi_kubernetes/meta/__init__.py index 26532f7195..e2a396b5dc 100644 --- a/sdk/python/pulumi_kubernetes/meta/__init__.py +++ b/sdk/python/pulumi_kubernetes/meta/__init__.py @@ -3,11 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', -] -for pkg in submodules: +__all__ = ['v1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/networking/__init__.py b/sdk/python/pulumi_kubernetes/networking/__init__.py index 9f26eec4ce..4c1e851a21 100644 --- a/sdk/python/pulumi_kubernetes/networking/__init__.py +++ b/sdk/python/pulumi_kubernetes/networking/__init__.py @@ -3,12 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/node/__init__.py b/sdk/python/pulumi_kubernetes/node/__init__.py index 2cadee06ae..b7445a56eb 100644 --- a/sdk/python/pulumi_kubernetes/node/__init__.py +++ b/sdk/python/pulumi_kubernetes/node/__init__.py @@ -3,12 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1alpha1', - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1alpha1', 'v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/policy/__init__.py b/sdk/python/pulumi_kubernetes/policy/__init__.py index 9bd041a38e..a311e81ad2 100644 --- a/sdk/python/pulumi_kubernetes/policy/__init__.py +++ b/sdk/python/pulumi_kubernetes/policy/__init__.py @@ -3,11 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/rbac/__init__.py b/sdk/python/pulumi_kubernetes/rbac/__init__.py index dbfb33adc4..1f87cd7749 100644 --- a/sdk/python/pulumi_kubernetes/rbac/__init__.py +++ b/sdk/python/pulumi_kubernetes/rbac/__init__.py @@ -3,13 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', - 'v1alpha1', - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1', 'v1alpha1', 'v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/scheduling/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/__init__.py index dbfb33adc4..1f87cd7749 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/__init__.py +++ b/sdk/python/pulumi_kubernetes/scheduling/__init__.py @@ -3,13 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', - 'v1alpha1', - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1', 'v1alpha1', 'v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/settings/__init__.py b/sdk/python/pulumi_kubernetes/settings/__init__.py index 0c0f74f39f..d688fb9289 100644 --- a/sdk/python/pulumi_kubernetes/settings/__init__.py +++ b/sdk/python/pulumi_kubernetes/settings/__init__.py @@ -3,11 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1alpha1', -] -for pkg in submodules: +__all__ = ['v1alpha1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/storage/__init__.py b/sdk/python/pulumi_kubernetes/storage/__init__.py index dbfb33adc4..1f87cd7749 100644 --- a/sdk/python/pulumi_kubernetes/storage/__init__.py +++ b/sdk/python/pulumi_kubernetes/storage/__init__.py @@ -3,13 +3,8 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib - # Make subpackages available: -submodules = [ - 'v1', - 'v1alpha1', - 'v1beta1', -] -for pkg in submodules: +__all__ = ['v1', 'v1alpha1', 'v1beta1'] +for pkg in __all__: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') From 5cdedfb5e65cd194631752841f5f8dad92e2255c Mon Sep 17 00:00:00 2001 From: komal Date: Tue, 23 Jun 2020 15:01:33 -0700 Subject: [PATCH 18/25] temp --- sdk/python/pulumi_kubernetes/__init__.py | 14 - .../admissionregistration/__init__.py | 10 - .../v1/MutatingWebhookConfiguration.py | 90 -- .../v1/MutatingWebhookConfigurationList.py | 90 -- .../v1/ValidatingWebhookConfiguration.py | 90 -- .../v1/ValidatingWebhookConfigurationList.py | 90 -- .../admissionregistration/v1/__init__.py | 9 - .../v1beta1/MutatingWebhookConfiguration.py | 90 -- .../MutatingWebhookConfigurationList.py | 90 -- .../v1beta1/ValidatingWebhookConfiguration.py | 90 -- .../ValidatingWebhookConfigurationList.py | 90 -- .../admissionregistration/v1beta1/__init__.py | 9 - .../apiextensions/CustomResource.py | 93 -- .../apiextensions/__init__.py | 13 - .../v1/CustomResourceDefinition.py | 93 -- .../v1/CustomResourceDefinitionList.py | 86 -- .../apiextensions/v1/__init__.py | 7 - .../v1beta1/CustomResourceDefinition.py | 93 -- .../v1beta1/CustomResourceDefinitionList.py | 86 -- .../apiextensions/v1beta1/__init__.py | 7 - .../apiregistration/__init__.py | 10 - .../apiregistration/v1/APIService.py | 91 -- .../apiregistration/v1/APIServiceList.py | 84 -- .../apiregistration/v1/__init__.py | 7 - .../apiregistration/v1beta1/APIService.py | 91 -- .../apiregistration/v1beta1/APIServiceList.py | 84 -- .../apiregistration/v1beta1/__init__.py | 7 - sdk/python/pulumi_kubernetes/apps/__init__.py | 10 - .../apps/v1/ControllerRevision.py | 98 -- .../apps/v1/ControllerRevisionList.py | 90 -- .../pulumi_kubernetes/apps/v1/DaemonSet.py | 95 -- .../apps/v1/DaemonSetList.py | 90 -- .../apps/v1/DeploymentList.py | 90 -- .../pulumi_kubernetes/apps/v1/ReplicaSet.py | 95 -- .../apps/v1/ReplicaSetList.py | 90 -- .../pulumi_kubernetes/apps/v1/StatefulSet.py | 107 -- .../apps/v1/StatefulSetList.py | 82 - .../pulumi_kubernetes/apps/v1/__init__.py | 15 - .../pulumi_kubernetes/apps/v1/deployment.py | 117 -- .../apps/v1beta1/ControllerRevision.py | 103 -- .../apps/v1beta1/ControllerRevisionList.py | 90 -- .../apps/v1beta1/DeploymentList.py | 90 -- .../apps/v1beta1/StatefulSet.py | 112 -- .../apps/v1beta1/StatefulSetList.py | 82 - .../apps/v1beta1/__init__.py | 11 - .../apps/v1beta1/deployment.py | 122 -- .../apps/v1beta2/ControllerRevision.py | 103 -- .../apps/v1beta2/ControllerRevisionList.py | 90 -- .../apps/v1beta2/DaemonSet.py | 100 -- .../apps/v1beta2/DaemonSetList.py | 90 -- .../apps/v1beta2/DeploymentList.py | 90 -- .../apps/v1beta2/ReplicaSet.py | 100 -- .../apps/v1beta2/ReplicaSetList.py | 90 -- .../apps/v1beta2/StatefulSet.py | 112 -- .../apps/v1beta2/StatefulSetList.py | 82 - .../apps/v1beta2/__init__.py | 15 - .../apps/v1beta2/deployment.py | 122 -- .../auditregistration/__init__.py | 10 - .../auditregistration/v1alpha1/AuditSink.py | 84 -- .../v1alpha1/AuditSinkList.py | 86 -- .../auditregistration/v1alpha1/__init__.py | 7 - .../authentication/__init__.py | 10 - .../authentication/v1/TokenRequest.py | 84 -- .../authentication/v1/TokenReview.py | 93 -- .../authentication/v1/__init__.py | 7 - .../authentication/v1beta1/TokenReview.py | 93 -- .../authentication/v1beta1/__init__.py | 6 - .../authorization/__init__.py | 10 - .../v1/LocalSubjectAccessReview.py | 93 -- .../v1/SelfSubjectAccessReview.py | 93 -- .../v1/SelfSubjectRulesReview.py | 93 -- .../authorization/v1/SubjectAccessReview.py | 93 -- .../authorization/v1/__init__.py | 9 - .../v1beta1/LocalSubjectAccessReview.py | 93 -- .../v1beta1/SelfSubjectAccessReview.py | 93 -- .../v1beta1/SelfSubjectRulesReview.py | 93 -- .../v1beta1/SubjectAccessReview.py | 93 -- .../authorization/v1beta1/__init__.py | 9 - .../pulumi_kubernetes/autoscaling/__init__.py | 10 - .../autoscaling/v1/HorizontalPodAutoscaler.py | 95 -- .../v1/HorizontalPodAutoscalerList.py | 90 -- .../autoscaling/v1/__init__.py | 7 - .../v2beta1/HorizontalPodAutoscaler.py | 95 -- .../v2beta1/HorizontalPodAutoscalerList.py | 90 -- .../autoscaling/v2beta1/__init__.py | 7 - .../v2beta2/HorizontalPodAutoscaler.py | 95 -- .../v2beta2/HorizontalPodAutoscalerList.py | 90 -- .../autoscaling/v2beta2/__init__.py | 7 - .../pulumi_kubernetes/batch/__init__.py | 10 - .../pulumi_kubernetes/batch/v1/JobList.py | 90 -- .../pulumi_kubernetes/batch/v1/__init__.py | 7 - sdk/python/pulumi_kubernetes/batch/v1/job.py | 108 -- .../batch/v1beta1/CronJob.py | 95 -- .../batch/v1beta1/CronJobList.py | 90 -- .../batch/v1beta1/__init__.py | 7 - .../batch/v2alpha1/CronJob.py | 95 -- .../batch/v2alpha1/CronJobList.py | 90 -- .../batch/v2alpha1/__init__.py | 7 - .../certificates/__init__.py | 10 - .../v1beta1/CertificateSigningRequest.py | 89 -- .../v1beta1/CertificateSigningRequestList.py | 81 - .../certificates/v1beta1/__init__.py | 7 - .../coordination/__init__.py | 10 - .../coordination/v1/LeaseList.py | 90 -- .../coordination/v1/__init__.py | 7 - .../coordination/v1/lease.py | 90 -- .../coordination/v1beta1/LeaseList.py | 90 -- .../coordination/v1beta1/__init__.py | 7 - .../coordination/v1beta1/lease.py | 90 -- sdk/python/pulumi_kubernetes/core/__init__.py | 10 - .../core/v1/ComponentStatus.py | 88 -- .../core/v1/ComponentStatusList.py | 90 -- .../pulumi_kubernetes/core/v1/ConfigMap.py | 100 -- .../core/v1/ConfigMapList.py | 90 -- .../core/v1/EndpointsList.py | 90 -- .../pulumi_kubernetes/core/v1/EventList.py | 90 -- .../pulumi_kubernetes/core/v1/LimitRange.py | 88 -- .../core/v1/LimitRangeList.py | 90 -- .../core/v1/NamespaceList.py | 90 -- .../pulumi_kubernetes/core/v1/NodeList.py | 90 -- .../core/v1/PersistentVolume.py | 93 -- .../core/v1/PersistentVolumeClaim.py | 93 -- .../core/v1/PersistentVolumeClaimList.py | 90 -- .../core/v1/PersistentVolumeList.py | 90 -- .../pulumi_kubernetes/core/v1/PodList.py | 90 -- .../pulumi_kubernetes/core/v1/PodTemplate.py | 88 -- .../core/v1/PodTemplateList.py | 90 -- .../core/v1/ReplicationController.py | 93 -- .../core/v1/ReplicationControllerList.py | 90 -- .../core/v1/ResourceQuota.py | 93 -- .../core/v1/ResourceQuotaList.py | 90 -- .../pulumi_kubernetes/core/v1/SecretList.py | 90 -- .../core/v1/ServiceAccount.py | 100 -- .../core/v1/ServiceAccountList.py | 90 -- .../pulumi_kubernetes/core/v1/ServiceList.py | 90 -- .../pulumi_kubernetes/core/v1/__init__.py | 38 - .../pulumi_kubernetes/core/v1/binding.py | 90 -- .../pulumi_kubernetes/core/v1/endpoints.py | 99 -- sdk/python/pulumi_kubernetes/core/v1/event.py | 172 --- .../pulumi_kubernetes/core/v1/namespace.py | 93 -- sdk/python/pulumi_kubernetes/core/v1/node.py | 93 -- sdk/python/pulumi_kubernetes/core/v1/pod.py | 108 -- .../pulumi_kubernetes/core/v1/secret.py | 116 -- .../pulumi_kubernetes/core/v1/service.py | 118 -- .../pulumi_kubernetes/discovery/__init__.py | 10 - .../discovery/v1beta1/EndpointSlice.py | 104 -- .../discovery/v1beta1/EndpointSliceList.py | 90 -- .../discovery/v1beta1/__init__.py | 7 - .../pulumi_kubernetes/events/__init__.py | 10 - .../events/v1beta1/EventList.py | 90 -- .../events/v1beta1/__init__.py | 7 - .../pulumi_kubernetes/events/v1beta1/event.py | 166 -- .../pulumi_kubernetes/extensions/__init__.py | 10 - .../extensions/v1beta1/DaemonSet.py | 100 -- .../extensions/v1beta1/DaemonSetList.py | 90 -- .../extensions/v1beta1/DeploymentList.py | 90 -- .../extensions/v1beta1/IngressList.py | 90 -- .../extensions/v1beta1/NetworkPolicy.py | 90 -- .../extensions/v1beta1/NetworkPolicyList.py | 90 -- .../extensions/v1beta1/PodSecurityPolicy.py | 90 -- .../v1beta1/PodSecurityPolicyList.py | 90 -- .../extensions/v1beta1/ReplicaSet.py | 100 -- .../extensions/v1beta1/ReplicaSetList.py | 90 -- .../extensions/v1beta1/__init__.py | 17 - .../extensions/v1beta1/deployment.py | 122 -- .../extensions/v1beta1/ingress.py | 114 -- .../pulumi_kubernetes/flowcontrol/__init__.py | 10 - .../flowcontrol/v1alpha1/FlowSchema.py | 93 -- .../flowcontrol/v1alpha1/FlowSchemaList.py | 90 -- .../v1alpha1/PriorityLevelConfiguration.py | 93 -- .../PriorityLevelConfigurationList.py | 90 -- .../flowcontrol/v1alpha1/__init__.py | 9 - sdk/python/pulumi_kubernetes/helm/__init__.py | 10 - .../pulumi_kubernetes/helm/v2/__init__.py | 6 - sdk/python/pulumi_kubernetes/helm/v2/helm.py | 502 ------ .../pulumi_kubernetes/helm/v3/__init__.py | 6 - sdk/python/pulumi_kubernetes/helm/v3/helm.py | 502 ------ sdk/python/pulumi_kubernetes/meta/__init__.py | 10 - .../pulumi_kubernetes/meta/v1/__init__.py | 6 - .../pulumi_kubernetes/meta/v1/status.py | 111 -- .../pulumi_kubernetes/networking/__init__.py | 10 - .../networking/v1/NetworkPolicy.py | 90 -- .../networking/v1/NetworkPolicyList.py | 90 -- .../networking/v1/__init__.py | 7 - .../networking/v1beta1/IngressClass.py | 88 -- .../networking/v1beta1/IngressClassList.py | 90 -- .../networking/v1beta1/IngressList.py | 90 -- .../networking/v1beta1/__init__.py | 9 - .../networking/v1beta1/ingress.py | 109 -- sdk/python/pulumi_kubernetes/node/__init__.py | 10 - .../node/v1alpha1/RuntimeClass.py | 92 -- .../node/v1alpha1/RuntimeClassList.py | 90 -- .../node/v1alpha1/__init__.py | 7 - .../node/v1beta1/RuntimeClass.py | 104 -- .../node/v1beta1/RuntimeClassList.py | 90 -- .../node/v1beta1/__init__.py | 7 - .../pulumi_kubernetes/policy/__init__.py | 10 - .../policy/v1beta1/PodDisruptionBudget.py | 89 -- .../policy/v1beta1/PodDisruptionBudgetList.py | 82 - .../policy/v1beta1/PodSecurityPolicy.py | 90 -- .../policy/v1beta1/PodSecurityPolicyList.py | 90 -- .../policy/v1beta1/__init__.py | 9 - sdk/python/pulumi_kubernetes/provider.py | 83 - sdk/python/pulumi_kubernetes/rbac/__init__.py | 10 - .../pulumi_kubernetes/rbac/v1/ClusterRole.py | 96 -- .../rbac/v1/ClusterRoleBinding.py | 98 -- .../rbac/v1/ClusterRoleBindingList.py | 90 -- .../rbac/v1/ClusterRoleList.py | 90 -- .../pulumi_kubernetes/rbac/v1/RoleBinding.py | 98 -- .../rbac/v1/RoleBindingList.py | 90 -- .../pulumi_kubernetes/rbac/v1/RoleList.py | 90 -- .../pulumi_kubernetes/rbac/v1/__init__.py | 13 - sdk/python/pulumi_kubernetes/rbac/v1/role.py | 90 -- .../rbac/v1alpha1/ClusterRole.py | 96 -- .../rbac/v1alpha1/ClusterRoleBinding.py | 98 -- .../rbac/v1alpha1/ClusterRoleBindingList.py | 90 -- .../rbac/v1alpha1/ClusterRoleList.py | 90 -- .../rbac/v1alpha1/RoleBinding.py | 98 -- .../rbac/v1alpha1/RoleBindingList.py | 90 -- .../rbac/v1alpha1/RoleList.py | 90 -- .../rbac/v1alpha1/__init__.py | 13 - .../pulumi_kubernetes/rbac/v1alpha1/role.py | 90 -- .../rbac/v1beta1/ClusterRole.py | 96 -- .../rbac/v1beta1/ClusterRoleBinding.py | 98 -- .../rbac/v1beta1/ClusterRoleBindingList.py | 90 -- .../rbac/v1beta1/ClusterRoleList.py | 90 -- .../rbac/v1beta1/RoleBinding.py | 98 -- .../rbac/v1beta1/RoleBindingList.py | 90 -- .../rbac/v1beta1/RoleList.py | 90 -- .../rbac/v1beta1/__init__.py | 13 - .../pulumi_kubernetes/rbac/v1beta1/role.py | 90 -- .../pulumi_kubernetes/scheduling/__init__.py | 10 - .../scheduling/v1/PriorityClass.py | 110 -- .../scheduling/v1/PriorityClassList.py | 90 -- .../scheduling/v1/__init__.py | 7 - .../scheduling/v1alpha1/PriorityClass.py | 110 -- .../scheduling/v1alpha1/PriorityClassList.py | 90 -- .../scheduling/v1alpha1/__init__.py | 7 - .../scheduling/v1beta1/PriorityClass.py | 110 -- .../scheduling/v1beta1/PriorityClassList.py | 90 -- .../scheduling/v1beta1/__init__.py | 7 - .../pulumi_kubernetes/settings/__init__.py | 10 - .../settings/v1alpha1/PodPreset.py | 80 - .../settings/v1alpha1/PodPresetList.py | 90 -- .../settings/v1alpha1/__init__.py | 7 - .../pulumi_kubernetes/storage/__init__.py | 10 - .../pulumi_kubernetes/storage/v1/CSIDriver.py | 92 -- .../storage/v1/CSIDriverList.py | 90 -- .../pulumi_kubernetes/storage/v1/CSINode.py | 92 -- .../storage/v1/CSINodeList.py | 90 -- .../storage/v1/StorageClass.py | 130 -- .../storage/v1/StorageClassList.py | 90 -- .../storage/v1/VolumeAttachment.py | 99 -- .../storage/v1/VolumeAttachmentList.py | 90 -- .../pulumi_kubernetes/storage/v1/__init__.py | 13 - .../storage/v1alpha1/VolumeAttachment.py | 99 -- .../storage/v1alpha1/VolumeAttachmentList.py | 90 -- .../storage/v1alpha1/__init__.py | 7 - .../storage/v1beta1/CSIDriver.py | 92 -- .../storage/v1beta1/CSIDriverList.py | 90 -- .../storage/v1beta1/CSINode.py | 97 -- .../storage/v1beta1/CSINodeList.py | 90 -- .../storage/v1beta1/StorageClass.py | 130 -- .../storage/v1beta1/StorageClassList.py | 90 -- .../storage/v1beta1/VolumeAttachment.py | 99 -- .../storage/v1beta1/VolumeAttachmentList.py | 90 -- .../storage/v1beta1/__init__.py | 13 - sdk/python/pulumi_kubernetes/tables.py | 923 ------------ sdk/python/pulumi_kubernetes/utilities.py | 83 - sdk/python/pulumi_kubernetes/version.py | 36 - sdk/python/pulumi_kubernetes/yaml.py | 1341 ----------------- 271 files changed, 22318 deletions(-) delete mode 100644 sdk/python/pulumi_kubernetes/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py delete mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py delete mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py delete mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py delete mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py delete mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py delete mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py delete mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py delete mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py delete mode 100644 sdk/python/pulumi_kubernetes/apiextensions/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py delete mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py delete mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py delete mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py delete mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/apiregistration/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py delete mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py delete mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py delete mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py delete mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1/deployment.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py delete mode 100644 sdk/python/pulumi_kubernetes/auditregistration/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py delete mode 100644 sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py delete mode 100644 sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/authentication/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py delete mode 100644 sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py delete mode 100644 sdk/python/pulumi_kubernetes/authentication/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py delete mode 100644 sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/authorization/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py delete mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py delete mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py delete mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py delete mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py delete mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py delete mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py delete mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py delete mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/autoscaling/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py delete mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py delete mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py delete mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py delete mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py delete mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py delete mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/batch/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/batch/v1/JobList.py delete mode 100644 sdk/python/pulumi_kubernetes/batch/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/batch/v1/job.py delete mode 100644 sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py delete mode 100644 sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py delete mode 100644 sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py delete mode 100644 sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py delete mode 100644 sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/certificates/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py delete mode 100644 sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py delete mode 100644 sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/coordination/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py delete mode 100644 sdk/python/pulumi_kubernetes/coordination/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/coordination/v1/lease.py delete mode 100644 sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py delete mode 100644 sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py delete mode 100644 sdk/python/pulumi_kubernetes/core/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/EventList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/LimitRange.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/NodeList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/PodList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/SecretList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/ServiceList.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/binding.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/endpoints.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/event.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/namespace.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/node.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/pod.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/secret.py delete mode 100644 sdk/python/pulumi_kubernetes/core/v1/service.py delete mode 100644 sdk/python/pulumi_kubernetes/discovery/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py delete mode 100644 sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py delete mode 100644 sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/events/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py delete mode 100644 sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/events/v1beta1/event.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py delete mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py delete mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py delete mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py delete mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py delete mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py delete mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/helm/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/helm/v2/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/helm/v2/helm.py delete mode 100644 sdk/python/pulumi_kubernetes/helm/v3/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/helm/v3/helm.py delete mode 100644 sdk/python/pulumi_kubernetes/meta/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/meta/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/meta/v1/status.py delete mode 100644 sdk/python/pulumi_kubernetes/networking/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py delete mode 100644 sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py delete mode 100644 sdk/python/pulumi_kubernetes/networking/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py delete mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py delete mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py delete mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py delete mode 100644 sdk/python/pulumi_kubernetes/node/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py delete mode 100644 sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py delete mode 100644 sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py delete mode 100644 sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py delete mode 100644 sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/policy/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py delete mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py delete mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py delete mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py delete mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/provider.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/role.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py delete mode 100644 sdk/python/pulumi_kubernetes/scheduling/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py delete mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py delete mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py delete mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py delete mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py delete mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py delete mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/settings/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py delete mode 100644 sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py delete mode 100644 sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1/CSINode.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py delete mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py delete mode 100644 sdk/python/pulumi_kubernetes/tables.py delete mode 100644 sdk/python/pulumi_kubernetes/utilities.py delete mode 100644 sdk/python/pulumi_kubernetes/version.py delete mode 100644 sdk/python/pulumi_kubernetes/yaml.py diff --git a/sdk/python/pulumi_kubernetes/__init__.py b/sdk/python/pulumi_kubernetes/__init__.py deleted file mode 100644 index a3cb73b53b..0000000000 --- a/sdk/python/pulumi_kubernetes/__init__.py +++ /dev/null @@ -1,14 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['admissionregistration', 'apiextensions', 'apiregistration', 'apps', 'auditregistration', 'authentication', 'authorization', 'autoscaling', 'batch', 'certificates', 'coordination', 'core', 'discovery', 'events', 'extensions', 'flowcontrol', 'helm', 'meta', 'networking', 'node', 'policy', 'rbac', 'scheduling', 'settings', 'storage'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') - -# Export this package's modules as members: -from .provider import * -from .yaml import * diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py deleted file mode 100644 index 4c1e851a21..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py deleted file mode 100644 index 8ba28082b8..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class MutatingWebhookConfiguration(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - """ - webhooks: pulumi.Output[list] - """ - Webhooks is a list of webhooks and the affected resources and operations. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): - """ - MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'admissionregistration.k8s.io/v1' - __props__['kind'] = 'MutatingWebhookConfiguration' - __props__['metadata'] = metadata - __props__['webhooks'] = webhooks - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(MutatingWebhookConfiguration, __self__).__init__( - 'kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing MutatingWebhookConfiguration resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return MutatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py deleted file mode 100644 index 4081595777..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class MutatingWebhookConfigurationList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of MutatingWebhookConfiguration. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of MutatingWebhookConfiguration. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'admissionregistration.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'MutatingWebhookConfigurationList' - __props__['metadata'] = metadata - super(MutatingWebhookConfigurationList, __self__).__init__( - 'kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing MutatingWebhookConfigurationList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return MutatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py deleted file mode 100644 index 87349534db..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ValidatingWebhookConfiguration(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - """ - webhooks: pulumi.Output[list] - """ - Webhooks is a list of webhooks and the affected resources and operations. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): - """ - ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'admissionregistration.k8s.io/v1' - __props__['kind'] = 'ValidatingWebhookConfiguration' - __props__['metadata'] = metadata - __props__['webhooks'] = webhooks - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ValidatingWebhookConfiguration, __self__).__init__( - 'kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ValidatingWebhookConfiguration resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ValidatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py deleted file mode 100644 index e3060a06ee..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ValidatingWebhookConfigurationList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of ValidatingWebhookConfiguration. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of ValidatingWebhookConfiguration. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'admissionregistration.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ValidatingWebhookConfigurationList' - __props__['metadata'] = metadata - super(ValidatingWebhookConfigurationList, __self__).__init__( - 'kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfigurationList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ValidatingWebhookConfigurationList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ValidatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py deleted file mode 100644 index 88c4005809..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .MutatingWebhookConfiguration import * -from .MutatingWebhookConfigurationList import * -from .ValidatingWebhookConfiguration import * -from .ValidatingWebhookConfigurationList import * diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py deleted file mode 100644 index dabe074309..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class MutatingWebhookConfiguration(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - """ - webhooks: pulumi.Output[list] - """ - Webhooks is a list of webhooks and the affected resources and operations. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): - """ - MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'admissionregistration.k8s.io/v1beta1' - __props__['kind'] = 'MutatingWebhookConfiguration' - __props__['metadata'] = metadata - __props__['webhooks'] = webhooks - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(MutatingWebhookConfiguration, __self__).__init__( - 'kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing MutatingWebhookConfiguration resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return MutatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py deleted file mode 100644 index 8949b4e97b..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class MutatingWebhookConfigurationList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of MutatingWebhookConfiguration. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of MutatingWebhookConfiguration. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'admissionregistration.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'MutatingWebhookConfigurationList' - __props__['metadata'] = metadata - super(MutatingWebhookConfigurationList, __self__).__init__( - 'kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfigurationList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing MutatingWebhookConfigurationList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return MutatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py deleted file mode 100644 index c7ff332e08..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ValidatingWebhookConfiguration(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - """ - webhooks: pulumi.Output[list] - """ - Webhooks is a list of webhooks and the affected resources and operations. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): - """ - ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. - :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'admissionregistration.k8s.io/v1beta1' - __props__['kind'] = 'ValidatingWebhookConfiguration' - __props__['metadata'] = metadata - __props__['webhooks'] = webhooks - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ValidatingWebhookConfiguration, __self__).__init__( - 'kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ValidatingWebhookConfiguration resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ValidatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py deleted file mode 100644 index 08fc93af4c..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ValidatingWebhookConfigurationList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of ValidatingWebhookConfiguration. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of ValidatingWebhookConfiguration. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'admissionregistration.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ValidatingWebhookConfigurationList' - __props__['metadata'] = metadata - super(ValidatingWebhookConfigurationList, __self__).__init__( - 'kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfigurationList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ValidatingWebhookConfigurationList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ValidatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py deleted file mode 100644 index 88c4005809..0000000000 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .MutatingWebhookConfiguration import * -from .MutatingWebhookConfigurationList import * -from .ValidatingWebhookConfiguration import * -from .ValidatingWebhookConfigurationList import * diff --git a/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py b/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py deleted file mode 100644 index 85dba0e1ca..0000000000 --- a/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py +++ /dev/null @@ -1,93 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings - -import pulumi -import pulumi.runtime -from pulumi import ResourceOptions - -from .. import tables -from ..utilities import get_version - - -class CustomResource(pulumi.CustomResource): - """ - CustomResource represents an instance of a CustomResourceDefinition (CRD). For example, the - CoreOS Prometheus operator exposes a CRD `monitoring.coreos.com/ServiceMonitor`; to - instantiate this as a Pulumi resource, one could call `new CustomResource`, passing the - `ServiceMonitor` resource definition as an argument. - """ - - def __init__(self, resource_name, api_version, kind, spec=None, metadata=None, opts=None, - __name__=None, __opts__=None): - """ - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param str api_version: The API version of the apiExtensions.CustomResource we - wish to select, as specified by the CustomResourceDefinition that defines it on the - API server. - :param str kind: The kind of the apiextensions.CustomResource we wish to select, - as specified by the CustomResourceDefinition that defines it on the API server. - :param pulumi.Input[Any] spec: Specification of the CustomResource. - :param Optional[pulumi.Input[Any]] metadata: Standard object metadata; More info: - https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if not resource_name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(resource_name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - __props__['apiVersion'] = api_version - __props__['kind'] = kind - __props__['spec'] = spec - __props__['metadata'] = metadata - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(version=get_version())) - - super(CustomResource, self).__init__( - f"kubernetes:{api_version}:{kind}", - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, api_version, kind, id, opts=None): - """ - Get the state of an existing `CustomResource` resource, as identified by `id`. - Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, - then (per Kubernetes convention) the ID becomes default/[name]. - - Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. - - :param str resource_name: _Unique_ name used to register this resource with Pulumi. - :param str api_version: The API version of the apiExtensions.CustomResource we - wish to select, as specified by the CustomResourceDefinition that defines it on the - API server. - :param str kind: The kind of the apiextensions.CustomResource we wish to select, - as specified by the CustomResourceDefinition that defines it on the API server. - :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. - Takes the form / or . - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - - opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - return CustomResource(resource_name=resource_name, api_version=api_version, kind=kind, opts=opts) - - def translate_output_property(self, prop: str) -> str: - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/__init__.py deleted file mode 100644 index c24be2a8a4..0000000000 --- a/sdk/python/pulumi_kubernetes/apiextensions/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') - -# Export this package's modules as members: -from .CustomResource import * diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py deleted file mode 100644 index 86d81d6137..0000000000 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CustomResourceDefinition(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - spec describes how the user wants the resources to appear - """ - status: pulumi.Output[dict] - """ - status indicates the actual state of the CustomResourceDefinition - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: spec describes how the user wants the resources to appear - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apiextensions.k8s.io/v1' - __props__['kind'] = 'CustomResourceDefinition' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(CustomResourceDefinition, __self__).__init__( - 'kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CustomResourceDefinition resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CustomResourceDefinition(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py deleted file mode 100644 index b3c83c5596..0000000000 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CustomResourceDefinitionList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items list individual CustomResourceDefinition objects - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - CustomResourceDefinitionList is a list of CustomResourceDefinition objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items list individual CustomResourceDefinition objects - :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 - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apiextensions.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'CustomResourceDefinitionList' - __props__['metadata'] = metadata - super(CustomResourceDefinitionList, __self__).__init__( - 'kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinitionList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CustomResourceDefinitionList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CustomResourceDefinitionList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py deleted file mode 100644 index 5c22c072a0..0000000000 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .CustomResourceDefinition import * -from .CustomResourceDefinitionList import * diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py deleted file mode 100644 index a80a815f7c..0000000000 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CustomResourceDefinition(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - spec describes how the user wants the resources to appear - """ - status: pulumi.Output[dict] - """ - status indicates the actual state of the CustomResourceDefinition - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. Deprecated in v1.16, planned for removal in v1.19. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: spec describes how the user wants the resources to appear - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apiextensions.k8s.io/v1beta1' - __props__['kind'] = 'CustomResourceDefinition' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(CustomResourceDefinition, __self__).__init__( - 'kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CustomResourceDefinition resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CustomResourceDefinition(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py deleted file mode 100644 index b000c8303e..0000000000 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CustomResourceDefinitionList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items list individual CustomResourceDefinition objects - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - CustomResourceDefinitionList is a list of CustomResourceDefinition objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items list individual CustomResourceDefinition objects - :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 - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apiextensions.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'CustomResourceDefinitionList' - __props__['metadata'] = metadata - super(CustomResourceDefinitionList, __self__).__init__( - 'kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinitionList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CustomResourceDefinitionList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CustomResourceDefinitionList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py deleted file mode 100644 index 5c22c072a0..0000000000 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .CustomResourceDefinition import * -from .CustomResourceDefinitionList import * diff --git a/sdk/python/pulumi_kubernetes/apiregistration/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/__init__.py deleted file mode 100644 index 4c1e851a21..0000000000 --- a/sdk/python/pulumi_kubernetes/apiregistration/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py deleted file mode 100644 index 587a280804..0000000000 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class APIService(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec contains information for locating and communicating with a server - """ - status: pulumi.Output[dict] - """ - Status contains derived information about an API server - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - APIService represents a server for a particular GroupVersion. Name must be "version.group". - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec contains information for locating and communicating with a server - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apiregistration.k8s.io/v1' - __props__['kind'] = 'APIService' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration.k8s.io/v1beta1:APIService"), pulumi.Alias(type_="kubernetes:apiregistration/v1beta1:APIService"), pulumi.Alias(type_="kubernetes:apiregistration/v1:APIService")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(APIService, __self__).__init__( - 'kubernetes:apiregistration.k8s.io/v1:APIService', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing APIService resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return APIService(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py deleted file mode 100644 index 71d1536a59..0000000000 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class APIServiceList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - APIServiceList is a list of APIService objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apiregistration.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'APIServiceList' - __props__['metadata'] = metadata - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration/v1:APIServiceList")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(APIServiceList, __self__).__init__( - 'kubernetes:apiregistration.k8s.io/v1:APIServiceList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing APIServiceList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return APIServiceList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py deleted file mode 100644 index 631222d9d5..0000000000 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .APIService import * -from .APIServiceList import * diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py deleted file mode 100644 index 30b7c0ea6e..0000000000 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class APIService(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec contains information for locating and communicating with a server - """ - status: pulumi.Output[dict] - """ - Status contains derived information about an API server - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - APIService represents a server for a particular GroupVersion. Name must be "version.group". - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec contains information for locating and communicating with a server - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apiregistration.k8s.io/v1beta1' - __props__['kind'] = 'APIService' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration.k8s.io/v1:APIService"), pulumi.Alias(type_="kubernetes:apiregistration/v1:APIService"), pulumi.Alias(type_="kubernetes:apiregistration/v1beta1:APIService")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(APIService, __self__).__init__( - 'kubernetes:apiregistration.k8s.io/v1beta1:APIService', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing APIService resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return APIService(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py deleted file mode 100644 index 08bb9e015f..0000000000 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class APIServiceList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - APIServiceList is a list of APIService objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apiregistration.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'APIServiceList' - __props__['metadata'] = metadata - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration/v1beta1:APIServiceList")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(APIServiceList, __self__).__init__( - 'kubernetes:apiregistration.k8s.io/v1beta1:APIServiceList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing APIServiceList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return APIServiceList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py deleted file mode 100644 index 631222d9d5..0000000000 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .APIService import * -from .APIServiceList import * diff --git a/sdk/python/pulumi_kubernetes/apps/__init__.py b/sdk/python/pulumi_kubernetes/apps/__init__.py deleted file mode 100644 index 3b707f2a5c..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1', 'v1beta1', 'v1beta2'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py deleted file mode 100644 index d4c0e721c6..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ControllerRevision(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - data: pulumi.Output[dict] - """ - Data is the serialized representation of the state. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - revision: pulumi.Output[float] - """ - Revision indicates the revision of the state represented by Data. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, data=None, kind=None, metadata=None, revision=None, __props__=None, __name__=None, __opts__=None): - """ - ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[dict] data: Data is the serialized representation of the state. - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[float] revision: Revision indicates the revision of the state represented by Data. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1' - __props__['data'] = data - __props__['kind'] = 'ControllerRevision' - __props__['metadata'] = metadata - if revision is None: - raise TypeError("Missing required property 'revision'") - __props__['revision'] = revision - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta1:ControllerRevision"), pulumi.Alias(type_="kubernetes:apps/v1beta2:ControllerRevision")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ControllerRevision, __self__).__init__( - 'kubernetes:apps/v1:ControllerRevision', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ControllerRevision resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ControllerRevision(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py deleted file mode 100644 index b3e722999f..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ControllerRevisionList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of ControllerRevisions - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ControllerRevisionList is a resource containing a list of ControllerRevision objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of ControllerRevisions - :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 - :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ControllerRevisionList' - __props__['metadata'] = metadata - super(ControllerRevisionList, __self__).__init__( - 'kubernetes:apps/v1:ControllerRevisionList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ControllerRevisionList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ControllerRevisionList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py deleted file mode 100644 index 9d5a67f8d3..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class DaemonSet(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - DaemonSet represents the configuration of a daemon set. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1' - __props__['kind'] = 'DaemonSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta2:DaemonSet"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:DaemonSet")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(DaemonSet, __self__).__init__( - 'kubernetes:apps/v1:DaemonSet', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing DaemonSet resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return DaemonSet(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py deleted file mode 100644 index d9f76c709a..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class DaemonSetList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - A list of daemon sets. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - DaemonSetList is a collection of daemon sets. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: A list of daemon sets. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'DaemonSetList' - __props__['metadata'] = metadata - super(DaemonSetList, __self__).__init__( - 'kubernetes:apps/v1:DaemonSetList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing DaemonSetList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return DaemonSetList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py deleted file mode 100644 index 0bbfba12ca..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class DeploymentList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of Deployments. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - DeploymentList is a list of Deployments. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of Deployments. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'DeploymentList' - __props__['metadata'] = metadata - super(DeploymentList, __self__).__init__( - 'kubernetes:apps/v1:DeploymentList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing DeploymentList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return DeploymentList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py deleted file mode 100644 index 4eefa1b616..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ReplicaSet(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - ReplicaSet ensures that a specified number of pod replicas are running at any given time. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1' - __props__['kind'] = 'ReplicaSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta2:ReplicaSet"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:ReplicaSet")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ReplicaSet, __self__).__init__( - 'kubernetes:apps/v1:ReplicaSet', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ReplicaSet resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ReplicaSet(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py deleted file mode 100644 index b5dca41ff3..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ReplicaSetList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ReplicaSetList is a collection of ReplicaSets. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ReplicaSetList' - __props__['metadata'] = metadata - super(ReplicaSetList, __self__).__init__( - 'kubernetes:apps/v1:ReplicaSetList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ReplicaSetList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ReplicaSetList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py deleted file mode 100644 index 3abe821688..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class StatefulSet(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec defines the desired identities of pods in this set. - """ - status: pulumi.Output[dict] - """ - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - StatefulSet represents a set of pods with consistent identities. Identities are defined as: - - Network: A single stable DNS and hostname. - - Storage: As many VolumeClaims as requested. - The StatefulSet guarantees that a given network identity will always map to the same storage identity. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', - and '.status.readyReplicas'. - 2. The value of '.status.updateRevision' matches '.status.currentRevision'. - - If the StatefulSet has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1' - __props__['kind'] = 'StatefulSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta1:StatefulSet"), pulumi.Alias(type_="kubernetes:apps/v1beta2:StatefulSet")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(StatefulSet, __self__).__init__( - 'kubernetes:apps/v1:StatefulSet', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing StatefulSet resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return StatefulSet(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py deleted file mode 100644 index b8c6122fc9..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class StatefulSetList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - StatefulSetList is a collection of StatefulSets. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'StatefulSetList' - __props__['metadata'] = metadata - super(StatefulSetList, __self__).__init__( - 'kubernetes:apps/v1:StatefulSetList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing StatefulSetList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return StatefulSetList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/__init__.py b/sdk/python/pulumi_kubernetes/apps/v1/__init__.py deleted file mode 100644 index bd15244394..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/__init__.py +++ /dev/null @@ -1,15 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .ControllerRevision import * -from .ControllerRevisionList import * -from .DaemonSet import * -from .DaemonSetList import * -from .Deployment import * -from .DeploymentList import * -from .ReplicaSet import * -from .ReplicaSetList import * -from .StatefulSet import * -from .StatefulSetList import * diff --git a/sdk/python/pulumi_kubernetes/apps/v1/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1/deployment.py deleted file mode 100644 index f0452ee490..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1/deployment.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Deployment(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata. - """ - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of the Deployment. - """ - status: pulumi.Output[dict] - """ - Most recently observed status of the Deployment. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Deployment enables declarative updates for Pods and ReplicaSets. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The Deployment has begun to be updated by the Deployment controller. If the current - generation of the Deployment is > 1, then this means that the current generation must - be different from the generation reported by the last outputs. - 2. There exists a ReplicaSet whose revision is equal to the current revision of the - Deployment. - 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' - member is set to 'True'. - 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type - 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is - 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, - because it doesn't do a rollout (i.e., it simply creates the Deployment and - corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. - - If the Deployment has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata. - :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1' - __props__['kind'] = 'Deployment' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta2:Deployment"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:Deployment")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(Deployment, __self__).__init__( - 'kubernetes:apps/v1:Deployment', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Deployment resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Deployment(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py deleted file mode 100644 index 3d157d5f4c..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - -warnings.warn("apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - -class ControllerRevision(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - data: pulumi.Output[dict] - """ - Data is the serialized representation of the state. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - revision: pulumi.Output[float] - """ - Revision indicates the revision of the state represented by Data. - """ - warnings.warn("apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - def __init__(__self__, resource_name, opts=None, api_version=None, data=None, kind=None, metadata=None, revision=None, __props__=None, __name__=None, __opts__=None): - """ - ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[dict] data: Data is the serialized representation of the state. - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[float] revision: Revision indicates the revision of the state represented by Data. - """ - pulumi.log.warn("ControllerRevision is deprecated: apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.") - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta1' - __props__['data'] = data - __props__['kind'] = 'ControllerRevision' - __props__['metadata'] = metadata - if revision is None: - raise TypeError("Missing required property 'revision'") - __props__['revision'] = revision - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:ControllerRevision"), pulumi.Alias(type_="kubernetes:apps/v1beta2:ControllerRevision")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ControllerRevision, __self__).__init__( - 'kubernetes:apps/v1beta1:ControllerRevision', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ControllerRevision resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ControllerRevision(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py deleted file mode 100644 index 31690b322d..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ControllerRevisionList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of ControllerRevisions - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ControllerRevisionList is a resource containing a list of ControllerRevision objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of ControllerRevisions - :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 - :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ControllerRevisionList' - __props__['metadata'] = metadata - super(ControllerRevisionList, __self__).__init__( - 'kubernetes:apps/v1beta1:ControllerRevisionList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ControllerRevisionList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ControllerRevisionList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py deleted file mode 100644 index 1220942044..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class DeploymentList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of Deployments. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - DeploymentList is a list of Deployments. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of Deployments. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'DeploymentList' - __props__['metadata'] = metadata - super(DeploymentList, __self__).__init__( - 'kubernetes:apps/v1beta1:DeploymentList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing DeploymentList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return DeploymentList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py deleted file mode 100644 index effe9c04e4..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - -warnings.warn("apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - -class StatefulSet(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec defines the desired identities of pods in this set. - """ - status: pulumi.Output[dict] - """ - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. - """ - warnings.warn("apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - StatefulSet represents a set of pods with consistent identities. Identities are defined as: - - Network: A single stable DNS and hostname. - - Storage: As many VolumeClaims as requested. - The StatefulSet guarantees that a given network identity will always map to the same storage identity. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', - and '.status.readyReplicas'. - 2. The value of '.status.updateRevision' matches '.status.currentRevision'. - - If the StatefulSet has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. - """ - pulumi.log.warn("StatefulSet is deprecated: apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.") - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta1' - __props__['kind'] = 'StatefulSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:StatefulSet"), pulumi.Alias(type_="kubernetes:apps/v1beta2:StatefulSet")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(StatefulSet, __self__).__init__( - 'kubernetes:apps/v1beta1:StatefulSet', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing StatefulSet resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return StatefulSet(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py deleted file mode 100644 index f42e8c8fae..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class StatefulSetList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - StatefulSetList is a collection of StatefulSets. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'StatefulSetList' - __props__['metadata'] = metadata - super(StatefulSetList, __self__).__init__( - 'kubernetes:apps/v1beta1:StatefulSetList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing StatefulSetList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return StatefulSetList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py deleted file mode 100644 index 2cd6cda286..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py +++ /dev/null @@ -1,11 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .ControllerRevision import * -from .ControllerRevisionList import * -from .Deployment import * -from .DeploymentList import * -from .StatefulSet import * -from .StatefulSetList import * diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py deleted file mode 100644 index ddd6ab78ac..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/deployment.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - -warnings.warn("apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - -class Deployment(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata. - """ - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of the Deployment. - """ - status: pulumi.Output[dict] - """ - Most recently observed status of the Deployment. - """ - warnings.warn("apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Deployment enables declarative updates for Pods and ReplicaSets. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The Deployment has begun to be updated by the Deployment controller. If the current - generation of the Deployment is > 1, then this means that the current generation must - be different from the generation reported by the last outputs. - 2. There exists a ReplicaSet whose revision is equal to the current revision of the - Deployment. - 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' - member is set to 'True'. - 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type - 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is - 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, - because it doesn't do a rollout (i.e., it simply creates the Deployment and - corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. - - If the Deployment has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata. - :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. - """ - pulumi.log.warn("Deployment is deprecated: apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.") - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta1' - __props__['kind'] = 'Deployment' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta2:Deployment"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:Deployment")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(Deployment, __self__).__init__( - 'kubernetes:apps/v1beta1:Deployment', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Deployment resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Deployment(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py deleted file mode 100644 index 207c85e9d5..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - -warnings.warn("apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - -class ControllerRevision(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - data: pulumi.Output[dict] - """ - Data is the serialized representation of the state. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - revision: pulumi.Output[float] - """ - Revision indicates the revision of the state represented by Data. - """ - warnings.warn("apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - def __init__(__self__, resource_name, opts=None, api_version=None, data=None, kind=None, metadata=None, revision=None, __props__=None, __name__=None, __opts__=None): - """ - ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[dict] data: Data is the serialized representation of the state. - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[float] revision: Revision indicates the revision of the state represented by Data. - """ - pulumi.log.warn("ControllerRevision is deprecated: apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.") - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta2' - __props__['data'] = data - __props__['kind'] = 'ControllerRevision' - __props__['metadata'] = metadata - if revision is None: - raise TypeError("Missing required property 'revision'") - __props__['revision'] = revision - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:ControllerRevision"), pulumi.Alias(type_="kubernetes:apps/v1beta1:ControllerRevision")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ControllerRevision, __self__).__init__( - 'kubernetes:apps/v1beta2:ControllerRevision', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ControllerRevision resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ControllerRevision(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py deleted file mode 100644 index fa39dea2f8..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ControllerRevisionList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of ControllerRevisions - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ControllerRevisionList is a resource containing a list of ControllerRevision objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of ControllerRevisions - :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 - :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta2' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ControllerRevisionList' - __props__['metadata'] = metadata - super(ControllerRevisionList, __self__).__init__( - 'kubernetes:apps/v1beta2:ControllerRevisionList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ControllerRevisionList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ControllerRevisionList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py deleted file mode 100644 index 23fa382a48..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - -warnings.warn("apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - -class DaemonSet(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - warnings.warn("apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - DaemonSet represents the configuration of a daemon set. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - pulumi.log.warn("DaemonSet is deprecated: apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.") - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta2' - __props__['kind'] = 'DaemonSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:DaemonSet"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:DaemonSet")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(DaemonSet, __self__).__init__( - 'kubernetes:apps/v1beta2:DaemonSet', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing DaemonSet resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return DaemonSet(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py deleted file mode 100644 index a365422731..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class DaemonSetList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - A list of daemon sets. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - DaemonSetList is a collection of daemon sets. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: A list of daemon sets. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta2' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'DaemonSetList' - __props__['metadata'] = metadata - super(DaemonSetList, __self__).__init__( - 'kubernetes:apps/v1beta2:DaemonSetList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing DaemonSetList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return DaemonSetList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py deleted file mode 100644 index 0150556744..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class DeploymentList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of Deployments. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - DeploymentList is a list of Deployments. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of Deployments. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta2' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'DeploymentList' - __props__['metadata'] = metadata - super(DeploymentList, __self__).__init__( - 'kubernetes:apps/v1beta2:DeploymentList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing DeploymentList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return DeploymentList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py deleted file mode 100644 index 0e6b878b5b..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - -warnings.warn("apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - -class ReplicaSet(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - warnings.warn("apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - ReplicaSet ensures that a specified number of pod replicas are running at any given time. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - pulumi.log.warn("ReplicaSet is deprecated: apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.") - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta2' - __props__['kind'] = 'ReplicaSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:ReplicaSet"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:ReplicaSet")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ReplicaSet, __self__).__init__( - 'kubernetes:apps/v1beta2:ReplicaSet', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ReplicaSet resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ReplicaSet(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py deleted file mode 100644 index 75e2b86140..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ReplicaSetList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ReplicaSetList is a collection of ReplicaSets. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta2' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ReplicaSetList' - __props__['metadata'] = metadata - super(ReplicaSetList, __self__).__init__( - 'kubernetes:apps/v1beta2:ReplicaSetList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ReplicaSetList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ReplicaSetList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py deleted file mode 100644 index 9bee56bddd..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - -warnings.warn("apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - -class StatefulSet(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec defines the desired identities of pods in this set. - """ - status: pulumi.Output[dict] - """ - Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. - """ - warnings.warn("apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - StatefulSet represents a set of pods with consistent identities. Identities are defined as: - - Network: A single stable DNS and hostname. - - Storage: As many VolumeClaims as requested. - The StatefulSet guarantees that a given network identity will always map to the same storage identity. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', - and '.status.readyReplicas'. - 2. The value of '.status.updateRevision' matches '.status.currentRevision'. - - If the StatefulSet has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. - """ - pulumi.log.warn("StatefulSet is deprecated: apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.") - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta2' - __props__['kind'] = 'StatefulSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:StatefulSet"), pulumi.Alias(type_="kubernetes:apps/v1beta1:StatefulSet")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(StatefulSet, __self__).__init__( - 'kubernetes:apps/v1beta2:StatefulSet', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing StatefulSet resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return StatefulSet(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py deleted file mode 100644 index 3329a4e28b..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class StatefulSetList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - StatefulSetList is a collection of StatefulSets. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta2' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'StatefulSetList' - __props__['metadata'] = metadata - super(StatefulSetList, __self__).__init__( - 'kubernetes:apps/v1beta2:StatefulSetList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing StatefulSetList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return StatefulSetList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py deleted file mode 100644 index bd15244394..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py +++ /dev/null @@ -1,15 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .ControllerRevision import * -from .ControllerRevisionList import * -from .DaemonSet import * -from .DaemonSetList import * -from .Deployment import * -from .DeploymentList import * -from .ReplicaSet import * -from .ReplicaSetList import * -from .StatefulSet import * -from .StatefulSetList import * diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py deleted file mode 100644 index a663c47fd0..0000000000 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/deployment.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - -warnings.warn("apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - -class Deployment(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata. - """ - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of the Deployment. - """ - status: pulumi.Output[dict] - """ - Most recently observed status of the Deployment. - """ - warnings.warn("apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Deployment enables declarative updates for Pods and ReplicaSets. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The Deployment has begun to be updated by the Deployment controller. If the current - generation of the Deployment is > 1, then this means that the current generation must - be different from the generation reported by the last outputs. - 2. There exists a ReplicaSet whose revision is equal to the current revision of the - Deployment. - 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' - member is set to 'True'. - 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type - 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is - 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, - because it doesn't do a rollout (i.e., it simply creates the Deployment and - corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. - - If the Deployment has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata. - :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. - """ - pulumi.log.warn("Deployment is deprecated: apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.") - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'apps/v1beta2' - __props__['kind'] = 'Deployment' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta1:Deployment"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:Deployment")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(Deployment, __self__).__init__( - 'kubernetes:apps/v1beta2:Deployment', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Deployment resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Deployment(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/auditregistration/__init__.py b/sdk/python/pulumi_kubernetes/auditregistration/__init__.py deleted file mode 100644 index d688fb9289..0000000000 --- a/sdk/python/pulumi_kubernetes/auditregistration/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1alpha1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py deleted file mode 100644 index dbaea019d9..0000000000 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class AuditSink(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec defines the audit configuration spec - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - AuditSink represents a cluster level audit sink - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec defines the audit configuration spec - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'auditregistration.k8s.io/v1alpha1' - __props__['kind'] = 'AuditSink' - __props__['metadata'] = metadata - __props__['spec'] = spec - super(AuditSink, __self__).__init__( - 'kubernetes:auditregistration.k8s.io/v1alpha1:AuditSink', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing AuditSink resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return AuditSink(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py deleted file mode 100644 index 935722c2e2..0000000000 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class AuditSinkList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of audit configurations. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - AuditSinkList is a list of AuditSink items. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of audit configurations. - :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 - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'auditregistration.k8s.io/v1alpha1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'AuditSinkList' - __props__['metadata'] = metadata - super(AuditSinkList, __self__).__init__( - 'kubernetes:auditregistration.k8s.io/v1alpha1:AuditSinkList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing AuditSinkList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return AuditSinkList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py deleted file mode 100644 index cbc631c4d8..0000000000 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .AuditSink import * -from .AuditSinkList import * diff --git a/sdk/python/pulumi_kubernetes/authentication/__init__.py b/sdk/python/pulumi_kubernetes/authentication/__init__.py deleted file mode 100644 index 4c1e851a21..0000000000 --- a/sdk/python/pulumi_kubernetes/authentication/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py deleted file mode 100644 index a9f8f84a88..0000000000 --- a/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class TokenRequest(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - status: pulumi.Output[dict] - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - TokenRequest requests a token for a given service account. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'authentication.k8s.io/v1' - __props__['kind'] = 'TokenRequest' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - super(TokenRequest, __self__).__init__( - 'kubernetes:authentication.k8s.io/v1:TokenRequest', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing TokenRequest resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return TokenRequest(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py deleted file mode 100644 index 264dfba630..0000000000 --- a/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class TokenReview(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated - """ - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request can be authenticated. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'authentication.k8s.io/v1' - __props__['kind'] = 'TokenReview' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authentication.k8s.io/v1beta1:TokenReview")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(TokenReview, __self__).__init__( - 'kubernetes:authentication.k8s.io/v1:TokenReview', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing TokenReview resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return TokenReview(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py b/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py deleted file mode 100644 index 4c19c0eef7..0000000000 --- a/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .TokenRequest import * -from .TokenReview import * diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py deleted file mode 100644 index 2d82b013cd..0000000000 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class TokenReview(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated - """ - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request can be authenticated. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'authentication.k8s.io/v1beta1' - __props__['kind'] = 'TokenReview' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authentication.k8s.io/v1:TokenReview")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(TokenReview, __self__).__init__( - 'kubernetes:authentication.k8s.io/v1beta1:TokenReview', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing TokenReview resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return TokenReview(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py deleted file mode 100644 index 969b776d63..0000000000 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .TokenReview import * diff --git a/sdk/python/pulumi_kubernetes/authorization/__init__.py b/sdk/python/pulumi_kubernetes/authorization/__init__.py deleted file mode 100644 index 4c1e851a21..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py deleted file mode 100644 index 3d4723fe2c..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class LocalSubjectAccessReview(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - """ - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request is allowed or not - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'authorization.k8s.io/v1' - __props__['kind'] = 'LocalSubjectAccessReview' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(LocalSubjectAccessReview, __self__).__init__( - 'kubernetes:authorization.k8s.io/v1:LocalSubjectAccessReview', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing LocalSubjectAccessReview resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return LocalSubjectAccessReview(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py deleted file mode 100644 index b9cd5606e1..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class SelfSubjectAccessReview(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated. user and groups must be empty - """ - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request is allowed or not - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. user and groups must be empty - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'authorization.k8s.io/v1' - __props__['kind'] = 'SelfSubjectAccessReview' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:SelfSubjectAccessReview")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(SelfSubjectAccessReview, __self__).__init__( - 'kubernetes:authorization.k8s.io/v1:SelfSubjectAccessReview', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing SelfSubjectAccessReview resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return SelfSubjectAccessReview(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py deleted file mode 100644 index 3cbd4ba4d7..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class SelfSubjectRulesReview(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated. - """ - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates the set of actions a user can perform. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'authorization.k8s.io/v1' - __props__['kind'] = 'SelfSubjectRulesReview' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:SelfSubjectRulesReview")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(SelfSubjectRulesReview, __self__).__init__( - 'kubernetes:authorization.k8s.io/v1:SelfSubjectRulesReview', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing SelfSubjectRulesReview resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return SelfSubjectRulesReview(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py deleted file mode 100644 index 86f7e14e98..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class SubjectAccessReview(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated - """ - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request is allowed or not - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - SubjectAccessReview checks whether or not a user or group can perform an action. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'authorization.k8s.io/v1' - __props__['kind'] = 'SubjectAccessReview' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:SubjectAccessReview")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(SubjectAccessReview, __self__).__init__( - 'kubernetes:authorization.k8s.io/v1:SubjectAccessReview', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing SubjectAccessReview resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return SubjectAccessReview(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py b/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py deleted file mode 100644 index 973ca34da2..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .LocalSubjectAccessReview import * -from .SelfSubjectAccessReview import * -from .SelfSubjectRulesReview import * -from .SubjectAccessReview import * diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py deleted file mode 100644 index 50f0413ae8..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class LocalSubjectAccessReview(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - """ - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request is allowed or not - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'authorization.k8s.io/v1beta1' - __props__['kind'] = 'LocalSubjectAccessReview' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:LocalSubjectAccessReview")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(LocalSubjectAccessReview, __self__).__init__( - 'kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing LocalSubjectAccessReview resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return LocalSubjectAccessReview(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py deleted file mode 100644 index 3bd29d571d..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class SelfSubjectAccessReview(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated. user and groups must be empty - """ - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request is allowed or not - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. user and groups must be empty - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'authorization.k8s.io/v1beta1' - __props__['kind'] = 'SelfSubjectAccessReview' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:SelfSubjectAccessReview")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(SelfSubjectAccessReview, __self__).__init__( - 'kubernetes:authorization.k8s.io/v1beta1:SelfSubjectAccessReview', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing SelfSubjectAccessReview resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return SelfSubjectAccessReview(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py deleted file mode 100644 index 1c7cd584bd..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class SelfSubjectRulesReview(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated. - """ - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates the set of actions a user can perform. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'authorization.k8s.io/v1beta1' - __props__['kind'] = 'SelfSubjectRulesReview' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:SelfSubjectRulesReview")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(SelfSubjectRulesReview, __self__).__init__( - 'kubernetes:authorization.k8s.io/v1beta1:SelfSubjectRulesReview', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing SelfSubjectRulesReview resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return SelfSubjectRulesReview(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py deleted file mode 100644 index e0fe3789c8..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class SubjectAccessReview(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Spec holds information about the request being evaluated - """ - status: pulumi.Output[dict] - """ - Status is filled in by the server and indicates whether the request is allowed or not - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - SubjectAccessReview checks whether or not a user or group can perform an action. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'authorization.k8s.io/v1beta1' - __props__['kind'] = 'SubjectAccessReview' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:SubjectAccessReview")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(SubjectAccessReview, __self__).__init__( - 'kubernetes:authorization.k8s.io/v1beta1:SubjectAccessReview', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing SubjectAccessReview resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return SubjectAccessReview(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py deleted file mode 100644 index 973ca34da2..0000000000 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .LocalSubjectAccessReview import * -from .SelfSubjectAccessReview import * -from .SelfSubjectRulesReview import * -from .SubjectAccessReview import * diff --git a/sdk/python/pulumi_kubernetes/autoscaling/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/__init__.py deleted file mode 100644 index aadeed7f52..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1', 'v2beta1', 'v2beta2'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py deleted file mode 100644 index bcce7eacb7..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class HorizontalPodAutoscaler(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - """ - status: pulumi.Output[dict] - """ - current information about the autoscaler. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - configuration of a horizontal pod autoscaler. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'autoscaling/v1' - __props__['kind'] = 'HorizontalPodAutoscaler' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler"), pulumi.Alias(type_="kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(HorizontalPodAutoscaler, __self__).__init__( - 'kubernetes:autoscaling/v1:HorizontalPodAutoscaler', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing HorizontalPodAutoscaler resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return HorizontalPodAutoscaler(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py deleted file mode 100644 index f5283e326a..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class HorizontalPodAutoscalerList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - list of horizontal pod autoscaler objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - list of horizontal pod autoscaler objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: list of horizontal pod autoscaler objects. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'autoscaling/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'HorizontalPodAutoscalerList' - __props__['metadata'] = metadata - super(HorizontalPodAutoscalerList, __self__).__init__( - 'kubernetes:autoscaling/v1:HorizontalPodAutoscalerList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing HorizontalPodAutoscalerList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return HorizontalPodAutoscalerList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py deleted file mode 100644 index 3057ccbec9..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .HorizontalPodAutoscaler import * -from .HorizontalPodAutoscalerList import * diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py deleted file mode 100644 index 4eb6d83829..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class HorizontalPodAutoscaler(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - """ - status: pulumi.Output[dict] - """ - status is the current information about the autoscaler. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'autoscaling/v2beta1' - __props__['kind'] = 'HorizontalPodAutoscaler' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:autoscaling/v1:HorizontalPodAutoscaler"), pulumi.Alias(type_="kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(HorizontalPodAutoscaler, __self__).__init__( - 'kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing HorizontalPodAutoscaler resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return HorizontalPodAutoscaler(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py deleted file mode 100644 index 5c28643f1f..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class HorizontalPodAutoscalerList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is the list of horizontal pod autoscaler objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - metadata is the standard list metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is the list of horizontal pod autoscaler objects. - :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 - :param pulumi.Input[dict] metadata: metadata is the standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'autoscaling/v2beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'HorizontalPodAutoscalerList' - __props__['metadata'] = metadata - super(HorizontalPodAutoscalerList, __self__).__init__( - 'kubernetes:autoscaling/v2beta1:HorizontalPodAutoscalerList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing HorizontalPodAutoscalerList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return HorizontalPodAutoscalerList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py deleted file mode 100644 index 3057ccbec9..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .HorizontalPodAutoscaler import * -from .HorizontalPodAutoscalerList import * diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py deleted file mode 100644 index bcca76ef69..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class HorizontalPodAutoscaler(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - """ - status: pulumi.Output[dict] - """ - status is the current information about the autoscaler. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'autoscaling/v2beta2' - __props__['kind'] = 'HorizontalPodAutoscaler' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:autoscaling/v1:HorizontalPodAutoscaler"), pulumi.Alias(type_="kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(HorizontalPodAutoscaler, __self__).__init__( - 'kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing HorizontalPodAutoscaler resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return HorizontalPodAutoscaler(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py deleted file mode 100644 index a6c8886421..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class HorizontalPodAutoscalerList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is the list of horizontal pod autoscaler objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - metadata is the standard list metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is the list of horizontal pod autoscaler objects. - :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 - :param pulumi.Input[dict] metadata: metadata is the standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'autoscaling/v2beta2' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'HorizontalPodAutoscalerList' - __props__['metadata'] = metadata - super(HorizontalPodAutoscalerList, __self__).__init__( - 'kubernetes:autoscaling/v2beta2:HorizontalPodAutoscalerList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing HorizontalPodAutoscalerList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return HorizontalPodAutoscalerList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py deleted file mode 100644 index 3057ccbec9..0000000000 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .HorizontalPodAutoscaler import * -from .HorizontalPodAutoscalerList import * diff --git a/sdk/python/pulumi_kubernetes/batch/__init__.py b/sdk/python/pulumi_kubernetes/batch/__init__.py deleted file mode 100644 index 11842b0e79..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1', 'v1beta1', 'v2alpha1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py deleted file mode 100644 index 727a52dcb8..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class JobList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is the list of Jobs. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - JobList is a collection of jobs. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is the list of Jobs. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'batch/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'JobList' - __props__['metadata'] = metadata - super(JobList, __self__).__init__( - 'kubernetes:batch/v1:JobList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing JobList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return JobList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1/__init__.py b/sdk/python/pulumi_kubernetes/batch/v1/__init__.py deleted file mode 100644 index 4ab151b0e7..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .Job import * -from .JobList import * diff --git a/sdk/python/pulumi_kubernetes/batch/v1/job.py b/sdk/python/pulumi_kubernetes/batch/v1/job.py deleted file mode 100644 index 06faa018be..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v1/job.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Job(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Job represents the configuration of a single job. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The Job's '.status.startTime' is set, which indicates that the Job has started running. - 2. The Job's '.status.conditions' has a status of type 'Complete', and a 'status' set - to 'True'. - 3. The Job's '.status.conditions' do not have a status of type 'Failed', with a - 'status' set to 'True'. If this condition is set, we should fail the Job immediately. - - If the Job has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'batch/v1' - __props__['kind'] = 'Job' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - super(Job, __self__).__init__( - 'kubernetes:batch/v1:Job', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Job resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Job(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py deleted file mode 100644 index 560bc05f33..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CronJob(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - CronJob represents the configuration of a single cron job. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'batch/v1beta1' - __props__['kind'] = 'CronJob' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:batch/v2alpha1:CronJob")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(CronJob, __self__).__init__( - 'kubernetes:batch/v1beta1:CronJob', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CronJob resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CronJob(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py deleted file mode 100644 index d39d51c84a..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CronJobList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is the list of CronJobs. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - CronJobList is a collection of cron jobs. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is the list of CronJobs. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'batch/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'CronJobList' - __props__['metadata'] = metadata - super(CronJobList, __self__).__init__( - 'kubernetes:batch/v1beta1:CronJobList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CronJobList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CronJobList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py deleted file mode 100644 index 28944acdc0..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .CronJob import * -from .CronJobList import * diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py deleted file mode 100644 index e91410c8bc..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CronJob(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - CronJob represents the configuration of a single cron job. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'batch/v2alpha1' - __props__['kind'] = 'CronJob' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:batch/v1beta1:CronJob")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(CronJob, __self__).__init__( - 'kubernetes:batch/v2alpha1:CronJob', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CronJob resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CronJob(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py deleted file mode 100644 index 4dcd89c96f..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CronJobList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is the list of CronJobs. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - CronJobList is a collection of cron jobs. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is the list of CronJobs. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'batch/v2alpha1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'CronJobList' - __props__['metadata'] = metadata - super(CronJobList, __self__).__init__( - 'kubernetes:batch/v2alpha1:CronJobList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CronJobList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CronJobList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py deleted file mode 100644 index 28944acdc0..0000000000 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .CronJob import * -from .CronJobList import * diff --git a/sdk/python/pulumi_kubernetes/certificates/__init__.py b/sdk/python/pulumi_kubernetes/certificates/__init__.py deleted file mode 100644 index a311e81ad2..0000000000 --- a/sdk/python/pulumi_kubernetes/certificates/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py deleted file mode 100644 index af00135f1d..0000000000 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CertificateSigningRequest(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - The certificate request itself and any additional information. - """ - status: pulumi.Output[dict] - """ - Derived information about the request. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Describes a certificate signing request - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: The certificate request itself and any additional information. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'certificates.k8s.io/v1beta1' - __props__['kind'] = 'CertificateSigningRequest' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - super(CertificateSigningRequest, __self__).__init__( - 'kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequest', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CertificateSigningRequest resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CertificateSigningRequest(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py deleted file mode 100644 index 976a246d52..0000000000 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CertificateSigningRequestList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - Create a CertificateSigningRequestList resource with the given unique name, props, and options. - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'certificates.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'CertificateSigningRequestList' - __props__['metadata'] = metadata - super(CertificateSigningRequestList, __self__).__init__( - 'kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequestList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CertificateSigningRequestList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CertificateSigningRequestList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py deleted file mode 100644 index 85e0e2e398..0000000000 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .CertificateSigningRequest import * -from .CertificateSigningRequestList import * diff --git a/sdk/python/pulumi_kubernetes/coordination/__init__.py b/sdk/python/pulumi_kubernetes/coordination/__init__.py deleted file mode 100644 index 4c1e851a21..0000000000 --- a/sdk/python/pulumi_kubernetes/coordination/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py deleted file mode 100644 index e7697e0dab..0000000000 --- a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class LeaseList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - LeaseList is a list of Lease objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of schema objects. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'coordination.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'LeaseList' - __props__['metadata'] = metadata - super(LeaseList, __self__).__init__( - 'kubernetes:coordination.k8s.io/v1:LeaseList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing LeaseList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return LeaseList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py b/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py deleted file mode 100644 index 80fc5a5b17..0000000000 --- a/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .Lease import * -from .LeaseList import * diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/lease.py b/sdk/python/pulumi_kubernetes/coordination/v1/lease.py deleted file mode 100644 index d92d7af57d..0000000000 --- a/sdk/python/pulumi_kubernetes/coordination/v1/lease.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Lease(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Lease defines a lease concept. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'coordination.k8s.io/v1' - __props__['kind'] = 'Lease' - __props__['metadata'] = metadata - __props__['spec'] = spec - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:coordination.k8s.io/v1beta1:Lease")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(Lease, __self__).__init__( - 'kubernetes:coordination.k8s.io/v1:Lease', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Lease resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Lease(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py deleted file mode 100644 index d02f7cc3a5..0000000000 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class LeaseList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - LeaseList is a list of Lease objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of schema objects. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'coordination.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'LeaseList' - __props__['metadata'] = metadata - super(LeaseList, __self__).__init__( - 'kubernetes:coordination.k8s.io/v1beta1:LeaseList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing LeaseList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return LeaseList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py deleted file mode 100644 index 80fc5a5b17..0000000000 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .Lease import * -from .LeaseList import * diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py deleted file mode 100644 index a2d253324f..0000000000 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/lease.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Lease(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Lease defines a lease concept. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'coordination.k8s.io/v1beta1' - __props__['kind'] = 'Lease' - __props__['metadata'] = metadata - __props__['spec'] = spec - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:coordination.k8s.io/v1:Lease")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(Lease, __self__).__init__( - 'kubernetes:coordination.k8s.io/v1beta1:Lease', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Lease resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Lease(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/__init__.py b/sdk/python/pulumi_kubernetes/core/__init__.py deleted file mode 100644 index e2a396b5dc..0000000000 --- a/sdk/python/pulumi_kubernetes/core/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py deleted file mode 100644 index be39a3eb1d..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ComponentStatus(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - conditions: pulumi.Output[list] - """ - List of component conditions observed - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, conditions=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ComponentStatus (and ComponentStatusList) holds the cluster validation info. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] conditions: List of component conditions observed - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['conditions'] = conditions - __props__['kind'] = 'ComponentStatus' - __props__['metadata'] = metadata - super(ComponentStatus, __self__).__init__( - 'kubernetes:core/v1:ComponentStatus', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ComponentStatus resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ComponentStatus(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py deleted file mode 100644 index dec69727ac..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ComponentStatusList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of ComponentStatus objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - Status of all the conditions for the component as a list of ComponentStatus objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of ComponentStatus objects. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ComponentStatusList' - __props__['metadata'] = metadata - super(ComponentStatusList, __self__).__init__( - 'kubernetes:core/v1:ComponentStatusList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ComponentStatusList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ComponentStatusList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py deleted file mode 100644 index bfc50183c5..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ConfigMap(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - binary_data: pulumi.Output[dict] - """ - BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. - """ - data: pulumi.Output[dict] - """ - Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. - """ - immutable: pulumi.Output[bool] - """ - 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. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, binary_data=None, data=None, immutable=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ConfigMap holds configuration data for pods to consume. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[dict] binary_data: BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. - :param pulumi.Input[dict] data: Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. - :param pulumi.Input[bool] immutable: 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. - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['binary_data'] = binary_data - __props__['data'] = data - __props__['immutable'] = immutable - __props__['kind'] = 'ConfigMap' - __props__['metadata'] = metadata - super(ConfigMap, __self__).__init__( - 'kubernetes:core/v1:ConfigMap', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ConfigMap resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ConfigMap(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py deleted file mode 100644 index d0bc175c36..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ConfigMapList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of ConfigMaps. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ConfigMapList is a resource containing a list of ConfigMap objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of ConfigMaps. - :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 - :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ConfigMapList' - __props__['metadata'] = metadata - super(ConfigMapList, __self__).__init__( - 'kubernetes:core/v1:ConfigMapList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ConfigMapList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ConfigMapList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py deleted file mode 100644 index 308e8b5d31..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class EndpointsList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of endpoints. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - EndpointsList is a list of endpoints. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of endpoints. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'EndpointsList' - __props__['metadata'] = metadata - super(EndpointsList, __self__).__init__( - 'kubernetes:core/v1:EndpointsList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing EndpointsList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return EndpointsList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/EventList.py b/sdk/python/pulumi_kubernetes/core/v1/EventList.py deleted file mode 100644 index 521bd02bd6..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/EventList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class EventList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of events - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - EventList is a list of events. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of events - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'EventList' - __props__['metadata'] = metadata - super(EventList, __self__).__init__( - 'kubernetes:core/v1:EventList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing EventList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return EventList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py deleted file mode 100644 index 6b18ebb708..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class LimitRange(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - LimitRange sets resource usage limits for each kind of resource in a Namespace. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['kind'] = 'LimitRange' - __props__['metadata'] = metadata - __props__['spec'] = spec - super(LimitRange, __self__).__init__( - 'kubernetes:core/v1:LimitRange', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing LimitRange resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return LimitRange(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py deleted file mode 100644 index 60d56a6f8e..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class LimitRangeList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - LimitRangeList is a list of LimitRange items. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'LimitRangeList' - __props__['metadata'] = metadata - super(LimitRangeList, __self__).__init__( - 'kubernetes:core/v1:LimitRangeList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing LimitRangeList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return LimitRangeList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py deleted file mode 100644 index 6c609129ed..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class NamespaceList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - NamespaceList is a list of Namespaces. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'NamespaceList' - __props__['metadata'] = metadata - super(NamespaceList, __self__).__init__( - 'kubernetes:core/v1:NamespaceList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing NamespaceList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return NamespaceList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py deleted file mode 100644 index 82de885baf..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class NodeList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of nodes - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - NodeList is the whole list of all Nodes which have been registered with master. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of nodes - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'NodeList' - __props__['metadata'] = metadata - super(NodeList, __self__).__init__( - 'kubernetes:core/v1:NodeList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing NodeList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return NodeList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py deleted file mode 100644 index a276f61d06..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PersistentVolume(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - """ - status: pulumi.Output[dict] - """ - Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['kind'] = 'PersistentVolume' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - super(PersistentVolume, __self__).__init__( - 'kubernetes:core/v1:PersistentVolume', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PersistentVolume resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PersistentVolume(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py deleted file mode 100644 index 005ea03fed..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PersistentVolumeClaim(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - """ - status: pulumi.Output[dict] - """ - Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - PersistentVolumeClaim is a user's request for and claim to a persistent volume - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['kind'] = 'PersistentVolumeClaim' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - super(PersistentVolumeClaim, __self__).__init__( - 'kubernetes:core/v1:PersistentVolumeClaim', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PersistentVolumeClaim resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PersistentVolumeClaim(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py deleted file mode 100644 index 8fa688edf7..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PersistentVolumeClaimList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - PersistentVolumeClaimList is a list of PersistentVolumeClaim items. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'PersistentVolumeClaimList' - __props__['metadata'] = metadata - super(PersistentVolumeClaimList, __self__).__init__( - 'kubernetes:core/v1:PersistentVolumeClaimList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PersistentVolumeClaimList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PersistentVolumeClaimList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py deleted file mode 100644 index ce780121fe..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PersistentVolumeList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - PersistentVolumeList is a list of PersistentVolume items. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'PersistentVolumeList' - __props__['metadata'] = metadata - super(PersistentVolumeList, __self__).__init__( - 'kubernetes:core/v1:PersistentVolumeList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PersistentVolumeList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PersistentVolumeList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodList.py b/sdk/python/pulumi_kubernetes/core/v1/PodList.py deleted file mode 100644 index 8e318be7e0..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PodList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PodList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - PodList is a list of Pods. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'PodList' - __props__['metadata'] = metadata - super(PodList, __self__).__init__( - 'kubernetes:core/v1:PodList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PodList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PodList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py deleted file mode 100644 index 0984849455..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PodTemplate(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - template: pulumi.Output[dict] - """ - Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, template=None, __props__=None, __name__=None, __opts__=None): - """ - PodTemplate describes a template for creating copies of a predefined pod. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] template: Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['kind'] = 'PodTemplate' - __props__['metadata'] = metadata - __props__['template'] = template - super(PodTemplate, __self__).__init__( - 'kubernetes:core/v1:PodTemplate', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PodTemplate resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PodTemplate(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py deleted file mode 100644 index c0b5c846d2..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PodTemplateList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of pod templates - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - PodTemplateList is a list of PodTemplates. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of pod templates - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'PodTemplateList' - __props__['metadata'] = metadata - super(PodTemplateList, __self__).__init__( - 'kubernetes:core/v1:PodTemplateList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PodTemplateList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PodTemplateList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py deleted file mode 100644 index 94b6514311..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ReplicationController(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - ReplicationController represents the configuration of a replication controller. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['kind'] = 'ReplicationController' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - super(ReplicationController, __self__).__init__( - 'kubernetes:core/v1:ReplicationController', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ReplicationController resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ReplicationController(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py deleted file mode 100644 index 92bb1cfa1c..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ReplicationControllerList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ReplicationControllerList is a collection of replication controllers. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ReplicationControllerList' - __props__['metadata'] = metadata - super(ReplicationControllerList, __self__).__init__( - 'kubernetes:core/v1:ReplicationControllerList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ReplicationControllerList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ReplicationControllerList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py deleted file mode 100644 index fdfb247e7c..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ResourceQuota(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - ResourceQuota sets aggregate quota restrictions enforced per namespace - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['kind'] = 'ResourceQuota' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - super(ResourceQuota, __self__).__init__( - 'kubernetes:core/v1:ResourceQuota', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ResourceQuota resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ResourceQuota(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py deleted file mode 100644 index b8b99f9d3e..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ResourceQuotaList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ResourceQuotaList is a list of ResourceQuota items. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ResourceQuotaList' - __props__['metadata'] = metadata - super(ResourceQuotaList, __self__).__init__( - 'kubernetes:core/v1:ResourceQuotaList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ResourceQuotaList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ResourceQuotaList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py deleted file mode 100644 index 83c3aa5ab9..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class SecretList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - SecretList is a list of Secret. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'SecretList' - __props__['metadata'] = metadata - super(SecretList, __self__).__init__( - 'kubernetes:core/v1:SecretList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing SecretList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return SecretList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py deleted file mode 100644 index 2da5b8e295..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ServiceAccount(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - automount_service_account_token: pulumi.Output[bool] - """ - AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. - """ - image_pull_secrets: pulumi.Output[list] - """ - ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - secrets: pulumi.Output[list] - """ - Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret - """ - def __init__(__self__, resource_name, opts=None, api_version=None, automount_service_account_token=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None, __props__=None, __name__=None, __opts__=None): - """ - ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[bool] automount_service_account_token: AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. - :param pulumi.Input[list] image_pull_secrets: ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[list] secrets: Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['automount_service_account_token'] = automount_service_account_token - __props__['image_pull_secrets'] = image_pull_secrets - __props__['kind'] = 'ServiceAccount' - __props__['metadata'] = metadata - __props__['secrets'] = secrets - super(ServiceAccount, __self__).__init__( - 'kubernetes:core/v1:ServiceAccount', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ServiceAccount resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ServiceAccount(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py deleted file mode 100644 index 231fe5d5d0..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ServiceAccountList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ServiceAccountList is a list of ServiceAccount objects - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ServiceAccountList' - __props__['metadata'] = metadata - super(ServiceAccountList, __self__).__init__( - 'kubernetes:core/v1:ServiceAccountList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ServiceAccountList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ServiceAccountList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py deleted file mode 100644 index 9baee4e255..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ServiceList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of services - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ServiceList holds a list of services. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of services - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ServiceList' - __props__['metadata'] = metadata - super(ServiceList, __self__).__init__( - 'kubernetes:core/v1:ServiceList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ServiceList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ServiceList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/__init__.py b/sdk/python/pulumi_kubernetes/core/v1/__init__.py deleted file mode 100644 index 04ee08a182..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .Binding import * -from .ComponentStatus import * -from .ComponentStatusList import * -from .ConfigMap import * -from .ConfigMapList import * -from .Endpoints import * -from .EndpointsList import * -from .Event import * -from .EventList import * -from .LimitRange import * -from .LimitRangeList import * -from .Namespace import * -from .NamespaceList import * -from .Node import * -from .NodeList import * -from .PersistentVolume import * -from .PersistentVolumeClaim import * -from .PersistentVolumeClaimList import * -from .PersistentVolumeList import * -from .Pod import * -from .PodList import * -from .PodTemplate import * -from .PodTemplateList import * -from .ReplicationController import * -from .ReplicationControllerList import * -from .ResourceQuota import * -from .ResourceQuotaList import * -from .Secret import * -from .SecretList import * -from .Service import * -from .ServiceAccount import * -from .ServiceAccountList import * -from .ServiceList import * diff --git a/sdk/python/pulumi_kubernetes/core/v1/binding.py b/sdk/python/pulumi_kubernetes/core/v1/binding.py deleted file mode 100644 index 90726387e7..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/binding.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Binding(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - target: pulumi.Output[dict] - """ - The target object that you want to bind to the standard object. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, target=None, __props__=None, __name__=None, __opts__=None): - """ - Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] target: The target object that you want to bind to the standard object. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['kind'] = 'Binding' - __props__['metadata'] = metadata - if target is None: - raise TypeError("Missing required property 'target'") - __props__['target'] = target - super(Binding, __self__).__init__( - 'kubernetes:core/v1:Binding', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Binding resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Binding(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/endpoints.py b/sdk/python/pulumi_kubernetes/core/v1/endpoints.py deleted file mode 100644 index e532563151..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/endpoints.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Endpoints(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - subsets: pulumi.Output[list] - """ - The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, subsets=None, __props__=None, __name__=None, __opts__=None): - """ - Endpoints is a collection of endpoints that implement the actual service. Example: - Name: "mysvc", - Subsets: [ - { - Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], - Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] - }, - { - Addresses: [{"ip": "10.10.3.3"}], - Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] - }, - ] - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[list] subsets: The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['kind'] = 'Endpoints' - __props__['metadata'] = metadata - __props__['subsets'] = subsets - super(Endpoints, __self__).__init__( - 'kubernetes:core/v1:Endpoints', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Endpoints resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Endpoints(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/event.py b/sdk/python/pulumi_kubernetes/core/v1/event.py deleted file mode 100644 index 501ec25ee9..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/event.py +++ /dev/null @@ -1,172 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Event(pulumi.CustomResource): - action: pulumi.Output[str] - """ - What action was taken/failed regarding to the Regarding object. - """ - api_version: pulumi.Output[str] - """ - 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 - """ - count: pulumi.Output[float] - """ - The number of times this event has occurred. - """ - event_time: pulumi.Output[str] - """ - Time when this Event was first observed. - """ - first_timestamp: pulumi.Output[str] - """ - The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) - """ - involved_object: pulumi.Output[dict] - """ - The object that this event is about. - """ - kind: pulumi.Output[str] - """ - 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 - """ - last_timestamp: pulumi.Output[str] - """ - The time at which the most recent occurrence of this event was recorded. - """ - message: pulumi.Output[str] - """ - A human-readable description of the status of this operation. - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - reason: pulumi.Output[str] - """ - This should be a short, machine understandable string that gives the reason for the transition into the object's current status. - """ - related: pulumi.Output[dict] - """ - Optional secondary object for more complex actions. - """ - reporting_component: pulumi.Output[str] - """ - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - """ - reporting_instance: pulumi.Output[str] - """ - ID of the controller instance, e.g. `kubelet-xyzf`. - """ - series: pulumi.Output[dict] - """ - Data about the Event series this event represents or nil if it's a singleton Event. - """ - source: pulumi.Output[dict] - """ - The component reporting this event. Should be a short machine understandable string. - """ - type: pulumi.Output[str] - """ - Type of this event (Normal, Warning), new types could be added in the future - """ - def __init__(__self__, resource_name, opts=None, action=None, api_version=None, count=None, event_time=None, first_timestamp=None, involved_object=None, kind=None, last_timestamp=None, message=None, metadata=None, reason=None, related=None, reporting_component=None, reporting_instance=None, series=None, source=None, type=None, __props__=None, __name__=None, __opts__=None): - """ - Event is a report of an event somewhere in the cluster. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] action: What action was taken/failed regarding to the Regarding object. - :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 - :param pulumi.Input[float] count: The number of times this event has occurred. - :param pulumi.Input[str] event_time: Time when this Event was first observed. - :param pulumi.Input[str] first_timestamp: The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) - :param pulumi.Input[dict] involved_object: The object that this event is about. - :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 - :param pulumi.Input[str] last_timestamp: The time at which the most recent occurrence of this event was recorded. - :param pulumi.Input[str] message: A human-readable description of the status of this operation. - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[str] reason: This should be a short, machine understandable string that gives the reason for the transition into the object's current status. - :param pulumi.Input[dict] related: Optional secondary object for more complex actions. - :param pulumi.Input[str] reporting_component: Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - :param pulumi.Input[str] reporting_instance: ID of the controller instance, e.g. `kubelet-xyzf`. - :param pulumi.Input[dict] series: Data about the Event series this event represents or nil if it's a singleton Event. - :param pulumi.Input[dict] source: The component reporting this event. Should be a short machine understandable string. - :param pulumi.Input[str] type: Type of this event (Normal, Warning), new types could be added in the future - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['action'] = action - __props__['api_version'] = 'v1' - __props__['count'] = count - __props__['event_time'] = event_time - __props__['first_timestamp'] = first_timestamp - if involved_object is None: - raise TypeError("Missing required property 'involved_object'") - __props__['involved_object'] = involved_object - __props__['kind'] = 'Event' - __props__['last_timestamp'] = last_timestamp - __props__['message'] = message - if metadata is None: - raise TypeError("Missing required property 'metadata'") - __props__['metadata'] = metadata - __props__['reason'] = reason - __props__['related'] = related - __props__['reporting_component'] = reporting_component - __props__['reporting_instance'] = reporting_instance - __props__['series'] = series - __props__['source'] = source - __props__['type'] = type - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:events.k8s.io/v1beta1:Event")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(Event, __self__).__init__( - 'kubernetes:core/v1:Event', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Event resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Event(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/namespace.py b/sdk/python/pulumi_kubernetes/core/v1/namespace.py deleted file mode 100644 index 427732cbc2..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/namespace.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Namespace(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Namespace provides a scope for Names. Use of multiple namespaces is optional. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['kind'] = 'Namespace' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - super(Namespace, __self__).__init__( - 'kubernetes:core/v1:Namespace', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Namespace resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Namespace(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/node.py b/sdk/python/pulumi_kubernetes/core/v1/node.py deleted file mode 100644 index 24cf106a83..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/node.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Node(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['kind'] = 'Node' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - super(Node, __self__).__init__( - 'kubernetes:core/v1:Node', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Node resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Node(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/pod.py b/sdk/python/pulumi_kubernetes/core/v1/pod.py deleted file mode 100644 index e368f68488..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/pod.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Pod(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The Pod is scheduled ("PodScheduled"" '.status.condition' is true). - 2. The Pod is initialized ("Initialized" '.status.condition' is true). - 3. The Pod is ready ("Ready" '.status.condition' is true) and the '.status.phase' is - set to "Running". - Or (for Jobs): The Pod succeeded ('.status.phase' set to "Succeeded"). - - If the Pod has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['kind'] = 'Pod' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - super(Pod, __self__).__init__( - 'kubernetes:core/v1:Pod', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Pod resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Pod(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/secret.py b/sdk/python/pulumi_kubernetes/core/v1/secret.py deleted file mode 100644 index 4b4a4ac4e4..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/secret.py +++ /dev/null @@ -1,116 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Secret(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - data: pulumi.Output[dict] - """ - Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 - """ - immutable: pulumi.Output[bool] - """ - Immutable, if set to true, ensures that data stored in the Secret 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. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - string_data: pulumi.Output[dict] - """ - stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. - """ - type: pulumi.Output[str] - """ - Used to facilitate programmatic handling of secret data. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, data=None, immutable=None, kind=None, metadata=None, string_data=None, type=None, __props__=None, __name__=None, __opts__=None): - """ - Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. - - Note: While Pulumi automatically encrypts the 'data' and 'stringData' - fields, this encryption only applies to Pulumi's context, including the state file, - the Service, the CLI, etc. Kubernetes does not encrypt Secret resources by default, - and the contents are visible to users with access to the Secret in Kubernetes using - tools like 'kubectl'. - - For more information on securing Kubernetes Secrets, see the following links: - https://kubernetes.io/docs/concepts/configuration/secret/#security-properties - https://kubernetes.io/docs/concepts/configuration/secret/#risks - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[dict] data: Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 - :param pulumi.Input[bool] immutable: Immutable, if set to true, ensures that data stored in the Secret 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. - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] string_data: stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. - :param pulumi.Input[str] type: Used to facilitate programmatic handling of secret data. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['data'] = data - __props__['immutable'] = immutable - __props__['kind'] = 'Secret' - __props__['metadata'] = metadata - __props__['string_data'] = string_data - __props__['type'] = type - super(Secret, __self__).__init__( - 'kubernetes:core/v1:Secret', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Secret resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Secret(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/service.py b/sdk/python/pulumi_kubernetes/core/v1/service.py deleted file mode 100644 index 226c2866d9..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/service.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Service(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. Service object exists. - 2. Related Endpoint objects are created. Each time we get an update, wait 10 seconds - for any stragglers. - 3. The endpoints objects target some number of living objects (unless the Service is - an "empty headless" Service [1] or a Service with '.spec.type: ExternalName'). - 4. External IP address is allocated (if Service has '.spec.type: LoadBalancer'). - - Known limitations: - Services targeting ReplicaSets (and, by extension, Deployments, - StatefulSets, etc.) with '.spec.replicas' set to 0 are not handled, and will time - out. To work around this limitation, set 'pulumi.com/skipAwait: "true"' on - '.metadata.annotations' for the Service. Work to handle this case is in progress [2]. - - [1] https://kubernetes.io/docs/concepts/services-networking/service/#headless-services - [2] https://github.com/pulumi/pulumi-kubernetes/pull/703 - - If the Service has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['kind'] = 'Service' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - super(Service, __self__).__init__( - 'kubernetes:core/v1:Service', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Service resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Service(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/discovery/__init__.py b/sdk/python/pulumi_kubernetes/discovery/__init__.py deleted file mode 100644 index a311e81ad2..0000000000 --- a/sdk/python/pulumi_kubernetes/discovery/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py deleted file mode 100644 index 28835b5783..0000000000 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class EndpointSlice(pulumi.CustomResource): - address_type: pulumi.Output[str] - """ - addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. - """ - api_version: pulumi.Output[str] - """ - 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 - """ - endpoints: pulumi.Output[list] - """ - endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - ports: pulumi.Output[list] - """ - ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. - """ - def __init__(__self__, resource_name, opts=None, address_type=None, api_version=None, endpoints=None, kind=None, metadata=None, ports=None, __props__=None, __name__=None, __opts__=None): - """ - EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] address_type: addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. - :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 - :param pulumi.Input[list] endpoints: endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] ports: ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - if address_type is None: - raise TypeError("Missing required property 'address_type'") - __props__['address_type'] = address_type - __props__['api_version'] = 'discovery.k8s.io/v1beta1' - if endpoints is None: - raise TypeError("Missing required property 'endpoints'") - __props__['endpoints'] = endpoints - __props__['kind'] = 'EndpointSlice' - __props__['metadata'] = metadata - __props__['ports'] = ports - super(EndpointSlice, __self__).__init__( - 'kubernetes:discovery.k8s.io/v1beta1:EndpointSlice', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing EndpointSlice resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return EndpointSlice(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py deleted file mode 100644 index 5ac8b3199e..0000000000 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class EndpointSliceList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of endpoint slices - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - EndpointSliceList represents a list of endpoint slices - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of endpoint slices - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'discovery.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'EndpointSliceList' - __props__['metadata'] = metadata - super(EndpointSliceList, __self__).__init__( - 'kubernetes:discovery.k8s.io/v1beta1:EndpointSliceList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing EndpointSliceList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return EndpointSliceList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py deleted file mode 100644 index d69646b079..0000000000 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .EndpointSlice import * -from .EndpointSliceList import * diff --git a/sdk/python/pulumi_kubernetes/events/__init__.py b/sdk/python/pulumi_kubernetes/events/__init__.py deleted file mode 100644 index a311e81ad2..0000000000 --- a/sdk/python/pulumi_kubernetes/events/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py deleted file mode 100644 index ae8e33a427..0000000000 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class EventList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - EventList is a list of Event objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of schema objects. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'events.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'EventList' - __props__['metadata'] = metadata - super(EventList, __self__).__init__( - 'kubernetes:events.k8s.io/v1beta1:EventList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing EventList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return EventList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py deleted file mode 100644 index da6c993426..0000000000 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .Event import * -from .EventList import * diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/event.py b/sdk/python/pulumi_kubernetes/events/v1beta1/event.py deleted file mode 100644 index 8f24ac379c..0000000000 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/event.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Event(pulumi.CustomResource): - action: pulumi.Output[str] - """ - What action was taken/failed regarding to the regarding object. - """ - api_version: pulumi.Output[str] - """ - 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 - """ - deprecated_count: pulumi.Output[float] - """ - Deprecated field assuring backward compatibility with core.v1 Event type - """ - deprecated_first_timestamp: pulumi.Output[str] - """ - Deprecated field assuring backward compatibility with core.v1 Event type - """ - deprecated_last_timestamp: pulumi.Output[str] - """ - Deprecated field assuring backward compatibility with core.v1 Event type - """ - deprecated_source: pulumi.Output[dict] - """ - Deprecated field assuring backward compatibility with core.v1 Event type - """ - event_time: pulumi.Output[str] - """ - Required. Time when this Event was first observed. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - note: pulumi.Output[str] - """ - Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. - """ - reason: pulumi.Output[str] - """ - Why the action was taken. - """ - regarding: pulumi.Output[dict] - """ - The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - """ - related: pulumi.Output[dict] - """ - Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. - """ - reporting_controller: pulumi.Output[str] - """ - Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - """ - reporting_instance: pulumi.Output[str] - """ - ID of the controller instance, e.g. `kubelet-xyzf`. - """ - series: pulumi.Output[dict] - """ - Data about the Event series this event represents or nil if it's a singleton Event. - """ - type: pulumi.Output[str] - """ - Type of this event (Normal, Warning), new types could be added in the future. - """ - def __init__(__self__, resource_name, opts=None, action=None, api_version=None, deprecated_count=None, deprecated_first_timestamp=None, deprecated_last_timestamp=None, deprecated_source=None, event_time=None, kind=None, metadata=None, note=None, reason=None, regarding=None, related=None, reporting_controller=None, reporting_instance=None, series=None, type=None, __props__=None, __name__=None, __opts__=None): - """ - Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] action: What action was taken/failed regarding to the regarding object. - :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 - :param pulumi.Input[float] deprecated_count: Deprecated field assuring backward compatibility with core.v1 Event type - :param pulumi.Input[str] deprecated_first_timestamp: Deprecated field assuring backward compatibility with core.v1 Event type - :param pulumi.Input[str] deprecated_last_timestamp: Deprecated field assuring backward compatibility with core.v1 Event type - :param pulumi.Input[dict] deprecated_source: Deprecated field assuring backward compatibility with core.v1 Event type - :param pulumi.Input[str] event_time: Required. Time when this Event was first observed. - :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 - :param pulumi.Input[str] note: Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. - :param pulumi.Input[str] reason: Why the action was taken. - :param pulumi.Input[dict] regarding: The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. - :param pulumi.Input[dict] related: Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. - :param pulumi.Input[str] reporting_controller: Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. - :param pulumi.Input[str] reporting_instance: ID of the controller instance, e.g. `kubelet-xyzf`. - :param pulumi.Input[dict] series: Data about the Event series this event represents or nil if it's a singleton Event. - :param pulumi.Input[str] type: Type of this event (Normal, Warning), new types could be added in the future. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['action'] = action - __props__['api_version'] = 'events.k8s.io/v1beta1' - __props__['deprecated_count'] = deprecated_count - __props__['deprecated_first_timestamp'] = deprecated_first_timestamp - __props__['deprecated_last_timestamp'] = deprecated_last_timestamp - __props__['deprecated_source'] = deprecated_source - if event_time is None: - raise TypeError("Missing required property 'event_time'") - __props__['event_time'] = event_time - __props__['kind'] = 'Event' - __props__['metadata'] = metadata - __props__['note'] = note - __props__['reason'] = reason - __props__['regarding'] = regarding - __props__['related'] = related - __props__['reporting_controller'] = reporting_controller - __props__['reporting_instance'] = reporting_instance - __props__['series'] = series - __props__['type'] = type - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:core/v1:Event")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(Event, __self__).__init__( - 'kubernetes:events.k8s.io/v1beta1:Event', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Event resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Event(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/__init__.py b/sdk/python/pulumi_kubernetes/extensions/__init__.py deleted file mode 100644 index a311e81ad2..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py deleted file mode 100644 index ad81258f24..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - -warnings.warn("extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - -class DaemonSet(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - warnings.warn("extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - DaemonSet represents the configuration of a daemon set. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - pulumi.log.warn("DaemonSet is deprecated: extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.") - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'extensions/v1beta1' - __props__['kind'] = 'DaemonSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:DaemonSet"), pulumi.Alias(type_="kubernetes:apps/v1beta2:DaemonSet")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(DaemonSet, __self__).__init__( - 'kubernetes:extensions/v1beta1:DaemonSet', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing DaemonSet resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return DaemonSet(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py deleted file mode 100644 index f9a2e6a8cc..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class DaemonSetList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - A list of daemon sets. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - DaemonSetList is a collection of daemon sets. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: A list of daemon sets. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'extensions/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'DaemonSetList' - __props__['metadata'] = metadata - super(DaemonSetList, __self__).__init__( - 'kubernetes:extensions/v1beta1:DaemonSetList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing DaemonSetList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return DaemonSetList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py deleted file mode 100644 index 8fb637d3dc..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class DeploymentList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of Deployments. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - DeploymentList is a list of Deployments. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of Deployments. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'extensions/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'DeploymentList' - __props__['metadata'] = metadata - super(DeploymentList, __self__).__init__( - 'kubernetes:extensions/v1beta1:DeploymentList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing DeploymentList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return DeploymentList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py deleted file mode 100644 index 6f322702ab..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class IngressList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of Ingress. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - IngressList is a collection of Ingress. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of Ingress. - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'extensions/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'IngressList' - __props__['metadata'] = metadata - super(IngressList, __self__).__init__( - 'kubernetes:extensions/v1beta1:IngressList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing IngressList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return IngressList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py deleted file mode 100644 index b496c2894f..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class NetworkPolicy(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the desired behavior for this NetworkPolicy. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. NetworkPolicy describes what network traffic is allowed for a set of Pods - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired behavior for this NetworkPolicy. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'extensions/v1beta1' - __props__['kind'] = 'NetworkPolicy' - __props__['metadata'] = metadata - __props__['spec'] = spec - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:networking.k8s.io/v1:NetworkPolicy")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(NetworkPolicy, __self__).__init__( - 'kubernetes:extensions/v1beta1:NetworkPolicy', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing NetworkPolicy resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return NetworkPolicy(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py deleted file mode 100644 index 7e8745ac94..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class NetworkPolicyList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList. Network Policy List is a list of NetworkPolicy objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of schema objects. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'extensions/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'NetworkPolicyList' - __props__['metadata'] = metadata - super(NetworkPolicyList, __self__).__init__( - 'kubernetes:extensions/v1beta1:NetworkPolicyList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing NetworkPolicyList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return NetworkPolicyList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py deleted file mode 100644 index f9ed6228b9..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PodSecurityPolicy(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - spec defines the policy enforced. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated: use PodSecurityPolicy from policy API Group instead. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: spec defines the policy enforced. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'extensions/v1beta1' - __props__['kind'] = 'PodSecurityPolicy' - __props__['metadata'] = metadata - __props__['spec'] = spec - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:policy/v1beta1:PodSecurityPolicy")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(PodSecurityPolicy, __self__).__init__( - 'kubernetes:extensions/v1beta1:PodSecurityPolicy', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PodSecurityPolicy resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PodSecurityPolicy(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py deleted file mode 100644 index 769821dbeb..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PodSecurityPolicyList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is a list of schema objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - PodSecurityPolicyList is a list of PodSecurityPolicy objects. Deprecated: use PodSecurityPolicyList from policy API Group instead. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is a list of schema objects. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'extensions/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'PodSecurityPolicyList' - __props__['metadata'] = metadata - super(PodSecurityPolicyList, __self__).__init__( - 'kubernetes:extensions/v1beta1:PodSecurityPolicyList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PodSecurityPolicyList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PodSecurityPolicyList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py deleted file mode 100644 index 3c8288a491..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - -warnings.warn("extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - -class ReplicaSet(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - warnings.warn("extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - ReplicaSet ensures that a specified number of pod replicas are running at any given time. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - pulumi.log.warn("ReplicaSet is deprecated: extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.") - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'extensions/v1beta1' - __props__['kind'] = 'ReplicaSet' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:ReplicaSet"), pulumi.Alias(type_="kubernetes:apps/v1beta2:ReplicaSet")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ReplicaSet, __self__).__init__( - 'kubernetes:extensions/v1beta1:ReplicaSet', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ReplicaSet resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ReplicaSet(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py deleted file mode 100644 index afb2d6bbad..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ReplicaSetList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ReplicaSetList is a collection of ReplicaSets. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'extensions/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ReplicaSetList' - __props__['metadata'] = metadata - super(ReplicaSetList, __self__).__init__( - 'kubernetes:extensions/v1beta1:ReplicaSetList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ReplicaSetList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ReplicaSetList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py deleted file mode 100644 index 44252ee76a..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .DaemonSet import * -from .DaemonSetList import * -from .Deployment import * -from .DeploymentList import * -from .Ingress import * -from .IngressList import * -from .NetworkPolicy import * -from .NetworkPolicyList import * -from .PodSecurityPolicy import * -from .PodSecurityPolicyList import * -from .ReplicaSet import * -from .ReplicaSetList import * diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py deleted file mode 100644 index 36cbec5eb3..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/deployment.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - -warnings.warn("extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - -class Deployment(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata. - """ - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of the Deployment. - """ - status: pulumi.Output[dict] - """ - Most recently observed status of the Deployment. - """ - warnings.warn("extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) - - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Deployment enables declarative updates for Pods and ReplicaSets. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. The Deployment has begun to be updated by the Deployment controller. If the current - generation of the Deployment is > 1, then this means that the current generation must - be different from the generation reported by the last outputs. - 2. There exists a ReplicaSet whose revision is equal to the current revision of the - Deployment. - 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' - member is set to 'True'. - 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type - 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is - 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, - because it doesn't do a rollout (i.e., it simply creates the Deployment and - corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. - - If the Deployment has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata. - :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. - """ - pulumi.log.warn("Deployment is deprecated: extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.") - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'extensions/v1beta1' - __props__['kind'] = 'Deployment' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta2:Deployment")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(Deployment, __self__).__init__( - 'kubernetes:extensions/v1beta1:Deployment', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Deployment resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Deployment(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py deleted file mode 100644 index c5989f9372..0000000000 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ingress.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - -warnings.warn("extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.", DeprecationWarning) - - -class Ingress(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - warnings.warn("extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.", DeprecationWarning) - - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. Ingress object exists. - 2. Endpoint objects exist with matching names for each Ingress path (except when Service - type is ExternalName). - 3. Ingress entry exists for '.status.loadBalancer.ingress'. - - If the Ingress has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - pulumi.log.warn("Ingress is deprecated: extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.") - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'extensions/v1beta1' - __props__['kind'] = 'Ingress' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:networking.k8s.io/v1beta1:Ingress")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(Ingress, __self__).__init__( - 'kubernetes:extensions/v1beta1:Ingress', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Ingress resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Ingress(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py b/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py deleted file mode 100644 index d688fb9289..0000000000 --- a/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1alpha1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py deleted file mode 100644 index e322500ee7..0000000000 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class FlowSchema(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - `status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' - __props__['kind'] = 'FlowSchema' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - super(FlowSchema, __self__).__init__( - 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchema', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing FlowSchema resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return FlowSchema(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py deleted file mode 100644 index 8a75a02248..0000000000 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class FlowSchemaList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - `items` is a list of FlowSchemas. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - FlowSchemaList is a list of FlowSchema objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: `items` is a list of FlowSchemas. - :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 - :param pulumi.Input[dict] metadata: `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'FlowSchemaList' - __props__['metadata'] = metadata - super(FlowSchemaList, __self__).__init__( - 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchemaList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing FlowSchemaList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return FlowSchemaList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py deleted file mode 100644 index 5aa86462f7..0000000000 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PriorityLevelConfiguration(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - `status` is the current status of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - PriorityLevelConfiguration represents the configuration of a priority level. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' - __props__['kind'] = 'PriorityLevelConfiguration' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - super(PriorityLevelConfiguration, __self__).__init__( - 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfiguration', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PriorityLevelConfiguration resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PriorityLevelConfiguration(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py deleted file mode 100644 index 03e73ecf6b..0000000000 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PriorityLevelConfigurationList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - `items` is a list of request-priorities. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: `items` is a list of request-priorities. - :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 - :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'PriorityLevelConfigurationList' - __props__['metadata'] = metadata - super(PriorityLevelConfigurationList, __self__).__init__( - 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfigurationList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PriorityLevelConfigurationList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PriorityLevelConfigurationList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py deleted file mode 100644 index 052ed3de86..0000000000 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .FlowSchema import * -from .FlowSchemaList import * -from .PriorityLevelConfiguration import * -from .PriorityLevelConfigurationList import * diff --git a/sdk/python/pulumi_kubernetes/helm/__init__.py b/sdk/python/pulumi_kubernetes/helm/__init__.py deleted file mode 100644 index 4c217c1e5c..0000000000 --- a/sdk/python/pulumi_kubernetes/helm/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v2', 'v3'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/helm/v2/__init__.py b/sdk/python/pulumi_kubernetes/helm/v2/__init__.py deleted file mode 100644 index 181dde1ce6..0000000000 --- a/sdk/python/pulumi_kubernetes/helm/v2/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .helm import * diff --git a/sdk/python/pulumi_kubernetes/helm/v2/helm.py b/sdk/python/pulumi_kubernetes/helm/v2/helm.py deleted file mode 100644 index bfb837300e..0000000000 --- a/sdk/python/pulumi_kubernetes/helm/v2/helm.py +++ /dev/null @@ -1,502 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import os.path -import shutil -import subprocess -import re -from tempfile import mkdtemp, mkstemp -from typing import Any, Callable, List, Optional, TextIO, Tuple, Union - -import pulumi.runtime -from ...utilities import get_version -from pulumi_kubernetes.yaml import _parse_yaml_document - - -class FetchOpts: - """ - FetchOpts is a bag of configuration options to customize the fetching of the Helm chart. - """ - - version: Optional[pulumi.Input[str]] - """ - Specific version of a chart. If unset, the latest version is fetched. - """ - - ca_file: Optional[pulumi.Input[str]] - """ - Verify certificates of HTTPS-enabled servers using this CA bundle. - """ - - cert_file: Optional[pulumi.Input[str]] - """ - Identify HTTPS client using this SSL certificate file. - """ - - key_file: Optional[pulumi.Input[str]] - """ - Identify HTTPS client using this SSL key file. - """ - - destination: Optional[pulumi.Input[str]] - """ - Location to write the chart. If this and [tardir] are specified, tardir is appended - to this (default "."). - """ - - keyring: Optional[pulumi.Input[str]] - """ - Keyring containing public keys (default "/Users/alex/.gnupg/pubring.gpg"). - """ - - password: Optional[pulumi.Input[str]] - """ - Chart repository password. - """ - - repo: Optional[pulumi.Input[str]] - """ - Chart repository url where to locate the requested chart. - """ - - untar_dir: Optional[pulumi.Input[str]] - """ - If [untar] is specified, this flag specifies the name of the directory into which - the chart is expanded (default "."). - """ - - username: Optional[pulumi.Input[str]] - """ - Chart repository username. - """ - - home: Optional[pulumi.Input[str]] - """ - Location of your Helm config. Overrides $HELM_HOME (default "/Users/alex/.helm"). - """ - - devel: Optional[pulumi.Input[bool]] - """ - Use development versions, too. Equivalent to version '>0.0.0-0'. If [version] is set, - this is ignored. - """ - - prov: Optional[pulumi.Input[bool]] - """ - Fetch the provenance file, but don't perform verification. - """ - - untar: Optional[pulumi.Input[bool]] - """ - If set to false, will leave the chart as a tarball after downloading. - """ - - verify: Optional[pulumi.Input[bool]] - """ - Verify the package against its signature. - """ - - def __init__(self, version=None, ca_file=None, cert_file=None, key_file=None, destination=None, keyring=None, - password=None, repo=None, untar_dir=None, username=None, home=None, devel=None, prov=None, - untar=None, verify=None): - """ - :param Optional[pulumi.Input[str]] version: Specific version of a chart. If unset, - the latest version is fetched. - :param Optional[pulumi.Input[str]] ca_file: Verify certificates of HTTPS-enabled - servers using this CA bundle. - :param Optional[pulumi.Input[str]] cert_file: Identify HTTPS client using this SSL - certificate file. - :param Optional[pulumi.Input[str]] key_file: Identify HTTPS client using this SSL - key file. - :param Optional[pulumi.Input[str]] destination: Location to write the chart. - If this and [tardir] are specified, tardir is appended to this (default "."). - :param Optional[pulumi.Input[str]] keyring: Keyring containing public keys - (default "/Users//.gnupg/pubring.gpg"). - :param Optional[pulumi.Input[str]] password: Chart repository password. - :param Optional[pulumi.Input[str]] repo: Chart repository url where to locate - the requested chart. - :param Optional[pulumi.Input[str]] untar_dir: If [untar] is specified, this flag - specifies the name of the directory into which the chart is - expanded (default "."). - :param Optional[pulumi.Input[str]] username: Chart repository username. - :param Optional[pulumi.Input[str]] home: Location of your Helm config. Overrides - $HELM_HOME (default "/Users//.helm"). - :param Optional[pulumi.Input[bool]] devel: Use development versions, too. - Equivalent to version '>0.0.0-0'. If [version] is set, this is ignored. - :param Optional[pulumi.Input[bool]] prov: Fetch the provenance file, but don't - perform verification. - :param Optional[pulumi.Input[bool]] untar: If set to false, will leave the - chart as a tarball after downloading. - :param Optional[pulumi.Input[bool]] verify: Verify the package against its signature. - """ - self.version = version - self.ca_file = ca_file - self.cert_file = cert_file - self.key_file = key_file - self.destination = destination - self.keyring = keyring - self.password = password - self.repo = repo - self.untar_dir = untar_dir - self.username = username - self.home = home - self.devel = devel - self.prov = prov - self.untar = untar - self.verify = verify - - -class BaseChartOpts: - """ - BaseChartOpts is a bag of common configuration options for a Helm chart. - """ - - namespace: Optional[pulumi.Input[str]] - """ - Optional namespace to install chart resources into. - """ - - values: Optional[pulumi.Inputs] - """ - Optional overrides for chart values. - """ - - transformations: Optional[List[Callable]] - """ - Optional list of transformations to apply to resources that will be created by this chart prior to - creation. Allows customization of the chart behaviour without directly modifying the chart itself. - """ - - resource_prefix: Optional[str] - """ - Optional prefix for the auto-generated resource names. - Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". - """ - - def __init__(self, namespace=None, values=None, transformations=None, resource_prefix=None): - """ - :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. - :param Optional[pulumi.Inputs] values: Optional overrides for chart values. - :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list - of transformations to apply to resources that will be created by this chart prior to creation. - Allows customization of the chart behaviour without directly modifying the chart itself. - :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. - Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". - """ - self.namespace = namespace - self.values = values - self.transformations = transformations - self.resource_prefix = resource_prefix - - -class ChartOpts(BaseChartOpts): - """ - ChartOpts is a bag of configuration options for a remote Helm chart. - """ - - chart: pulumi.Input[str] - """ - The name of the chart to deploy. If `repo` is provided, this chart name will be prefixed by the repo name. - Example: repo: "stable", chart: "nginx-ingress" -> "stable/nginx-ingress" - Example: chart: "stable/nginx-ingress" -> "stable/nginx-ingress" - """ - - repo: Optional[pulumi.Input[str]] - """ - The repository name of the chart to deploy. - Example: "stable" - """ - - version: Optional[pulumi.Input[str]] - """ - The version of the chart to deploy. If not provided, the latest version will be deployed. - """ - - fetch_opts: Optional[pulumi.Input[FetchOpts]] - """ - Additional options to customize the fetching of the Helm chart. - """ - - def __init__(self, chart, namespace=None, values=None, transformations=None, resource_prefix=None, repo=None, - version=None, fetch_opts=None): - """ - :param pulumi.Input[str] chart: The name of the chart to deploy. If `repo` is provided, this chart name - will be prefixed by the repo name. - Example: repo: "stable", chart: "nginx-ingress" -> "stable/nginx-ingress" - Example: chart: "stable/nginx-ingress" -> "stable/nginx-ingress" - :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. - :param Optional[pulumi.Inputs] values: Optional overrides for chart values. - :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list of - transformations to apply to resources that will be created by this chart prior to creation. - Allows customization of the chart behaviour without directly modifying the chart itself. - :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. - Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". - :param Optional[pulumi.Input[str]] repo: The repository name of the chart to deploy. - Example: "stable" - :param Optional[pulumi.Input[str]] version: The version of the chart to deploy. If not provided, - the latest version will be deployed. - :param Optional[pulumi.Input[FetchOpts]] fetch_opts: Additional options to customize the - fetching of the Helm chart. - """ - super(ChartOpts, self).__init__(namespace, values, transformations, resource_prefix) - self.chart = chart - self.repo = repo - self.version = version - self.fetch_opts = fetch_opts - - -class LocalChartOpts(BaseChartOpts): - """ - LocalChartOpts is a bag of configuration options for a local Helm chart. - """ - - path: pulumi.Input[str] - """ - The path to the chart directory which contains the `Chart.yaml` file. - """ - - def __init__(self, path, namespace=None, values=None, transformations=None, resource_prefix=None): - """ - :param pulumi.Input[str] path: The path to the chart directory which contains the - `Chart.yaml` file. - :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. - :param Optional[pulumi.Inputs] values: Optional overrides for chart values. - :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list of - transformations to apply to resources that will be created by this chart prior to creation. - Allows customization of the chart behaviour without directly modifying the chart itself. - :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. - Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". - """ - - super(LocalChartOpts, self).__init__(namespace, values, transformations, resource_prefix) - self.path = path - - -def _run_helm_cmd(all_config: Tuple[List[Union[str, bytes]], Any]) -> str: - cmd, _ = all_config - - output = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, check=True) - yaml_str: str = output.stdout - return yaml_str - -def _is_helm_v3() -> bool: - - cmd: List[str] = ['helm', 'version', '--short'] - - """ - Helm v2 returns version like this: - Client: v2.16.7+g5f2584f - Helm v3 returns a version like this: - v3.1.2+gd878d4d - --include-crds is available in helm v3.1+ so check for a regex matching that version - """ - output = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, universal_newlines=True, check=True) - version: str = output.stdout - regexp = re.compile(r'^v3\.[1-9]') - return(bool(regexp.search(version))) - - -def _write_override_file(all_config: Tuple[TextIO, str]) -> None: - file, data = all_config - - file.write(data) - file.flush() - - -def _cleanup_temp_dir(all_config: Tuple[TextIO, Union[bytes, str], Any]) -> None: - file, chart_dir, _ = all_config - - file.close() - shutil.rmtree(chart_dir) - - -def _parse_chart(all_config: Tuple[str, Union[ChartOpts, LocalChartOpts], pulumi.ResourceOptions]) -> pulumi.Output: - release_name, config, opts = all_config - - # Create temporary directory and file to hold chart data and override values. - # Note: We're intentionally using the lower-level APIs here because the async Outputs are being handled in - # a different scope, which was causing the temporary files/directory to be deleted before they were referenced - # in the Output handlers. We manually clean these up once we're done with another async handler that depends - # on the result of the operations. - overrides, overrides_filename = mkstemp() - chart_dir = mkdtemp() - - if isinstance(config, ChartOpts): - if config.repo and 'http' in config.repo: - raise ValueError('`repo` specifies the name of the Helm chart repo.' - 'Use `fetch_opts.repo` to specify a URL.') - chart_to_fetch = f'{config.repo}/{config.chart}' if config.repo else config.chart - - # Configure fetch options. - fetch_opts_dict = {} - if config.fetch_opts is not None: - fetch_opts_dict = {k: v for k, v in vars(config.fetch_opts).items() if v is not None} - fetch_opts_dict["destination"] = chart_dir - if config.version is not None: - fetch_opts_dict["version"] = config.version - fetch_opts = FetchOpts(**fetch_opts_dict) - - # Fetch the chart. - _fetch(chart_to_fetch, fetch_opts) - # Sort the directories into alphabetical order, and choose the first - fetched_chart_name = sorted(os.listdir(chart_dir), key=str.lower)[0] - chart = os.path.join(chart_dir, fetched_chart_name) - else: - chart = config.path - - default_values = os.path.join(chart, 'values.yaml') - - # Write overrides file. - vals = config.values if config.values is not None else {} - data = pulumi.Output.from_input(vals).apply(lambda x: json.dumps(x)) - file = open(overrides, 'w') - pulumi.Output.all(file, data).apply(_write_override_file) - - namespace_arg = ['--namespace', config.namespace] if config.namespace else [] - crd_arg = [ '--include-crds' ] if _is_helm_v3() else [] - - # Use 'helm template' to create a combined YAML manifest. - cmd = ['helm', 'template', chart, '--name-template', release_name, - '--values', default_values, '--values', overrides_filename] - cmd.extend(namespace_arg) - cmd.extend(crd_arg) - - chart_resources = pulumi.Output.all(cmd, data).apply(_run_helm_cmd) - - # Rather than using the default provider for the following invoke call, use the version specified - # in package.json. - invoke_opts = pulumi.InvokeOptions(version=get_version()) - - objects = chart_resources.apply( - lambda text: pulumi.runtime.invoke('kubernetes:yaml:decode', { - 'text': text, 'defaultNamespace': config.namespace}, invoke_opts).value['result']) - - # Parse the manifest and create the specified resources. - resources = objects.apply( - lambda objects: _parse_yaml_document(objects, opts, config.transformations)) - - pulumi.Output.all(file, chart_dir, resources).apply(_cleanup_temp_dir) - return resources - - -def _fetch(chart: str, opts: FetchOpts) -> None: - cmd: List[str] = ['helm', 'fetch', chart] - - # Untar by default. - if opts.untar is not False: - cmd.append('--untar') - - env = os.environ - # Helm v3 removed the `--home` flag, so we must use an env var instead. - if opts.home: - env['HELM_HOME'] = opts.home - - if opts.version: - cmd.extend(['--version', opts.version]) - if opts.ca_file: - cmd.extend(['--ca-file', opts.ca_file]) - if opts.cert_file: - cmd.extend(['--cert-file', opts.cert_file]) - if opts.key_file: - cmd.extend(['--key-file', opts.key_file]) - if opts.destination: - cmd.extend(['--destination', opts.destination]) - if opts.keyring: - cmd.extend(['--keyring', opts.keyring]) - if opts.password: - cmd.extend(['--password', opts.password]) - if opts.repo: - cmd.extend(['--repo', opts.repo]) - if opts.untar_dir: - cmd.extend(['--untardir', opts.untar_dir]) - if opts.username: - cmd.extend(['--username', opts.username]) - if opts.devel: - cmd.append('--devel') - if opts.prov: - cmd.append('--prov') - if opts.verify: - cmd.append('--verify') - - subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, check=True, env=env) - - -class Chart(pulumi.ComponentResource): - """ - Chart is a component representing a collection of resources described by an arbitrary Helm - Chart. The Chart can be fetched from any source that is accessible to the `helm` command - line. Values in the `values.yml` file can be overridden using `ChartOpts.values` (equivalent - to `--set` or having multiple `values.yml` files). Objects can be transformed arbitrarily by - supplying callbacks to `ChartOpts.transformations`. - - Chart does not use Tiller. The Chart specified is copied and expanded locally; the semantics - are equivalent to running `helm template` and then using Pulumi to manage the resulting YAML - manifests. Any values that would be retrieved in-cluster are assigned fake values, and - none of Tiller's server-side validity testing is executed. - """ - - resources: pulumi.Output[dict] - """ - Kubernetes resources contained in this Chart. - """ - - def __init__(self, release_name, config, opts=None): - """ - Create an instance of the specified Helm chart. - - :param str release_name: Name of the Chart (e.g., nginx-ingress). - :param Union[ChartOpts, LocalChartOpts] config: Configuration options for the Chart. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - if not release_name: - raise TypeError('Missing release name argument') - if not isinstance(release_name, str): - raise TypeError('Expected release name to be a string') - if config and not isinstance(config, ChartOpts) and not isinstance(config, LocalChartOpts): - raise TypeError('Expected config to be a ChartOpts or LocalChartOpts instance') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - if config.resource_prefix: - release_name = f"{config.resource_prefix}-{release_name}" - - super(Chart, self).__init__( - "kubernetes:helm.sh/v2:Chart", - release_name, - __props__, - opts) - - if opts is not None: - opts.parent = self - else: - opts = pulumi.ResourceOptions(parent=self) - - all_config = pulumi.Output.from_input((release_name, config, opts)) - - # Note: Unlike NodeJS, Python requires that we "pull" on our futures in order to get them scheduled for - # execution. In order to do this, we leverage the engine's RegisterResourceOutputs to wait for the - # resolution of all resources that this Helm chart created. - self.resources = all_config.apply(_parse_chart) - self.register_outputs({"resources": self.resources}) - - def get_resource(self, group_version_kind, name, namespace=None) -> pulumi.Output[pulumi.CustomResource]: - """ - get_resource returns a resource defined by a built-in Kubernetes group/version/kind and - name. For example: `get_resource("apps/v1/Deployment", "nginx")` - - :param str group_version_kind: Group/Version/Kind of the resource, e.g., `apps/v1/Deployment` - :param str name: Name of the resource to retrieve - :param str namespace: Optional namespace of the resource to retrieve - """ - - # `id` will either be `${name}` or `${namespace}/${name}`. - id = pulumi.Output.from_input(name) - if namespace is not None: - id = pulumi.Output.concat(namespace, '/', name) - - resource_id = id.apply(lambda x: f'{group_version_kind}:{x}') - return resource_id.apply(lambda x: self.resources[x]) diff --git a/sdk/python/pulumi_kubernetes/helm/v3/__init__.py b/sdk/python/pulumi_kubernetes/helm/v3/__init__.py deleted file mode 100644 index 181dde1ce6..0000000000 --- a/sdk/python/pulumi_kubernetes/helm/v3/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .helm import * diff --git a/sdk/python/pulumi_kubernetes/helm/v3/helm.py b/sdk/python/pulumi_kubernetes/helm/v3/helm.py deleted file mode 100644 index bfb837300e..0000000000 --- a/sdk/python/pulumi_kubernetes/helm/v3/helm.py +++ /dev/null @@ -1,502 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import os.path -import shutil -import subprocess -import re -from tempfile import mkdtemp, mkstemp -from typing import Any, Callable, List, Optional, TextIO, Tuple, Union - -import pulumi.runtime -from ...utilities import get_version -from pulumi_kubernetes.yaml import _parse_yaml_document - - -class FetchOpts: - """ - FetchOpts is a bag of configuration options to customize the fetching of the Helm chart. - """ - - version: Optional[pulumi.Input[str]] - """ - Specific version of a chart. If unset, the latest version is fetched. - """ - - ca_file: Optional[pulumi.Input[str]] - """ - Verify certificates of HTTPS-enabled servers using this CA bundle. - """ - - cert_file: Optional[pulumi.Input[str]] - """ - Identify HTTPS client using this SSL certificate file. - """ - - key_file: Optional[pulumi.Input[str]] - """ - Identify HTTPS client using this SSL key file. - """ - - destination: Optional[pulumi.Input[str]] - """ - Location to write the chart. If this and [tardir] are specified, tardir is appended - to this (default "."). - """ - - keyring: Optional[pulumi.Input[str]] - """ - Keyring containing public keys (default "/Users/alex/.gnupg/pubring.gpg"). - """ - - password: Optional[pulumi.Input[str]] - """ - Chart repository password. - """ - - repo: Optional[pulumi.Input[str]] - """ - Chart repository url where to locate the requested chart. - """ - - untar_dir: Optional[pulumi.Input[str]] - """ - If [untar] is specified, this flag specifies the name of the directory into which - the chart is expanded (default "."). - """ - - username: Optional[pulumi.Input[str]] - """ - Chart repository username. - """ - - home: Optional[pulumi.Input[str]] - """ - Location of your Helm config. Overrides $HELM_HOME (default "/Users/alex/.helm"). - """ - - devel: Optional[pulumi.Input[bool]] - """ - Use development versions, too. Equivalent to version '>0.0.0-0'. If [version] is set, - this is ignored. - """ - - prov: Optional[pulumi.Input[bool]] - """ - Fetch the provenance file, but don't perform verification. - """ - - untar: Optional[pulumi.Input[bool]] - """ - If set to false, will leave the chart as a tarball after downloading. - """ - - verify: Optional[pulumi.Input[bool]] - """ - Verify the package against its signature. - """ - - def __init__(self, version=None, ca_file=None, cert_file=None, key_file=None, destination=None, keyring=None, - password=None, repo=None, untar_dir=None, username=None, home=None, devel=None, prov=None, - untar=None, verify=None): - """ - :param Optional[pulumi.Input[str]] version: Specific version of a chart. If unset, - the latest version is fetched. - :param Optional[pulumi.Input[str]] ca_file: Verify certificates of HTTPS-enabled - servers using this CA bundle. - :param Optional[pulumi.Input[str]] cert_file: Identify HTTPS client using this SSL - certificate file. - :param Optional[pulumi.Input[str]] key_file: Identify HTTPS client using this SSL - key file. - :param Optional[pulumi.Input[str]] destination: Location to write the chart. - If this and [tardir] are specified, tardir is appended to this (default "."). - :param Optional[pulumi.Input[str]] keyring: Keyring containing public keys - (default "/Users//.gnupg/pubring.gpg"). - :param Optional[pulumi.Input[str]] password: Chart repository password. - :param Optional[pulumi.Input[str]] repo: Chart repository url where to locate - the requested chart. - :param Optional[pulumi.Input[str]] untar_dir: If [untar] is specified, this flag - specifies the name of the directory into which the chart is - expanded (default "."). - :param Optional[pulumi.Input[str]] username: Chart repository username. - :param Optional[pulumi.Input[str]] home: Location of your Helm config. Overrides - $HELM_HOME (default "/Users//.helm"). - :param Optional[pulumi.Input[bool]] devel: Use development versions, too. - Equivalent to version '>0.0.0-0'. If [version] is set, this is ignored. - :param Optional[pulumi.Input[bool]] prov: Fetch the provenance file, but don't - perform verification. - :param Optional[pulumi.Input[bool]] untar: If set to false, will leave the - chart as a tarball after downloading. - :param Optional[pulumi.Input[bool]] verify: Verify the package against its signature. - """ - self.version = version - self.ca_file = ca_file - self.cert_file = cert_file - self.key_file = key_file - self.destination = destination - self.keyring = keyring - self.password = password - self.repo = repo - self.untar_dir = untar_dir - self.username = username - self.home = home - self.devel = devel - self.prov = prov - self.untar = untar - self.verify = verify - - -class BaseChartOpts: - """ - BaseChartOpts is a bag of common configuration options for a Helm chart. - """ - - namespace: Optional[pulumi.Input[str]] - """ - Optional namespace to install chart resources into. - """ - - values: Optional[pulumi.Inputs] - """ - Optional overrides for chart values. - """ - - transformations: Optional[List[Callable]] - """ - Optional list of transformations to apply to resources that will be created by this chart prior to - creation. Allows customization of the chart behaviour without directly modifying the chart itself. - """ - - resource_prefix: Optional[str] - """ - Optional prefix for the auto-generated resource names. - Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". - """ - - def __init__(self, namespace=None, values=None, transformations=None, resource_prefix=None): - """ - :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. - :param Optional[pulumi.Inputs] values: Optional overrides for chart values. - :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list - of transformations to apply to resources that will be created by this chart prior to creation. - Allows customization of the chart behaviour without directly modifying the chart itself. - :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. - Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". - """ - self.namespace = namespace - self.values = values - self.transformations = transformations - self.resource_prefix = resource_prefix - - -class ChartOpts(BaseChartOpts): - """ - ChartOpts is a bag of configuration options for a remote Helm chart. - """ - - chart: pulumi.Input[str] - """ - The name of the chart to deploy. If `repo` is provided, this chart name will be prefixed by the repo name. - Example: repo: "stable", chart: "nginx-ingress" -> "stable/nginx-ingress" - Example: chart: "stable/nginx-ingress" -> "stable/nginx-ingress" - """ - - repo: Optional[pulumi.Input[str]] - """ - The repository name of the chart to deploy. - Example: "stable" - """ - - version: Optional[pulumi.Input[str]] - """ - The version of the chart to deploy. If not provided, the latest version will be deployed. - """ - - fetch_opts: Optional[pulumi.Input[FetchOpts]] - """ - Additional options to customize the fetching of the Helm chart. - """ - - def __init__(self, chart, namespace=None, values=None, transformations=None, resource_prefix=None, repo=None, - version=None, fetch_opts=None): - """ - :param pulumi.Input[str] chart: The name of the chart to deploy. If `repo` is provided, this chart name - will be prefixed by the repo name. - Example: repo: "stable", chart: "nginx-ingress" -> "stable/nginx-ingress" - Example: chart: "stable/nginx-ingress" -> "stable/nginx-ingress" - :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. - :param Optional[pulumi.Inputs] values: Optional overrides for chart values. - :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list of - transformations to apply to resources that will be created by this chart prior to creation. - Allows customization of the chart behaviour without directly modifying the chart itself. - :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. - Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". - :param Optional[pulumi.Input[str]] repo: The repository name of the chart to deploy. - Example: "stable" - :param Optional[pulumi.Input[str]] version: The version of the chart to deploy. If not provided, - the latest version will be deployed. - :param Optional[pulumi.Input[FetchOpts]] fetch_opts: Additional options to customize the - fetching of the Helm chart. - """ - super(ChartOpts, self).__init__(namespace, values, transformations, resource_prefix) - self.chart = chart - self.repo = repo - self.version = version - self.fetch_opts = fetch_opts - - -class LocalChartOpts(BaseChartOpts): - """ - LocalChartOpts is a bag of configuration options for a local Helm chart. - """ - - path: pulumi.Input[str] - """ - The path to the chart directory which contains the `Chart.yaml` file. - """ - - def __init__(self, path, namespace=None, values=None, transformations=None, resource_prefix=None): - """ - :param pulumi.Input[str] path: The path to the chart directory which contains the - `Chart.yaml` file. - :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. - :param Optional[pulumi.Inputs] values: Optional overrides for chart values. - :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list of - transformations to apply to resources that will be created by this chart prior to creation. - Allows customization of the chart behaviour without directly modifying the chart itself. - :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. - Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". - """ - - super(LocalChartOpts, self).__init__(namespace, values, transformations, resource_prefix) - self.path = path - - -def _run_helm_cmd(all_config: Tuple[List[Union[str, bytes]], Any]) -> str: - cmd, _ = all_config - - output = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, check=True) - yaml_str: str = output.stdout - return yaml_str - -def _is_helm_v3() -> bool: - - cmd: List[str] = ['helm', 'version', '--short'] - - """ - Helm v2 returns version like this: - Client: v2.16.7+g5f2584f - Helm v3 returns a version like this: - v3.1.2+gd878d4d - --include-crds is available in helm v3.1+ so check for a regex matching that version - """ - output = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, universal_newlines=True, check=True) - version: str = output.stdout - regexp = re.compile(r'^v3\.[1-9]') - return(bool(regexp.search(version))) - - -def _write_override_file(all_config: Tuple[TextIO, str]) -> None: - file, data = all_config - - file.write(data) - file.flush() - - -def _cleanup_temp_dir(all_config: Tuple[TextIO, Union[bytes, str], Any]) -> None: - file, chart_dir, _ = all_config - - file.close() - shutil.rmtree(chart_dir) - - -def _parse_chart(all_config: Tuple[str, Union[ChartOpts, LocalChartOpts], pulumi.ResourceOptions]) -> pulumi.Output: - release_name, config, opts = all_config - - # Create temporary directory and file to hold chart data and override values. - # Note: We're intentionally using the lower-level APIs here because the async Outputs are being handled in - # a different scope, which was causing the temporary files/directory to be deleted before they were referenced - # in the Output handlers. We manually clean these up once we're done with another async handler that depends - # on the result of the operations. - overrides, overrides_filename = mkstemp() - chart_dir = mkdtemp() - - if isinstance(config, ChartOpts): - if config.repo and 'http' in config.repo: - raise ValueError('`repo` specifies the name of the Helm chart repo.' - 'Use `fetch_opts.repo` to specify a URL.') - chart_to_fetch = f'{config.repo}/{config.chart}' if config.repo else config.chart - - # Configure fetch options. - fetch_opts_dict = {} - if config.fetch_opts is not None: - fetch_opts_dict = {k: v for k, v in vars(config.fetch_opts).items() if v is not None} - fetch_opts_dict["destination"] = chart_dir - if config.version is not None: - fetch_opts_dict["version"] = config.version - fetch_opts = FetchOpts(**fetch_opts_dict) - - # Fetch the chart. - _fetch(chart_to_fetch, fetch_opts) - # Sort the directories into alphabetical order, and choose the first - fetched_chart_name = sorted(os.listdir(chart_dir), key=str.lower)[0] - chart = os.path.join(chart_dir, fetched_chart_name) - else: - chart = config.path - - default_values = os.path.join(chart, 'values.yaml') - - # Write overrides file. - vals = config.values if config.values is not None else {} - data = pulumi.Output.from_input(vals).apply(lambda x: json.dumps(x)) - file = open(overrides, 'w') - pulumi.Output.all(file, data).apply(_write_override_file) - - namespace_arg = ['--namespace', config.namespace] if config.namespace else [] - crd_arg = [ '--include-crds' ] if _is_helm_v3() else [] - - # Use 'helm template' to create a combined YAML manifest. - cmd = ['helm', 'template', chart, '--name-template', release_name, - '--values', default_values, '--values', overrides_filename] - cmd.extend(namespace_arg) - cmd.extend(crd_arg) - - chart_resources = pulumi.Output.all(cmd, data).apply(_run_helm_cmd) - - # Rather than using the default provider for the following invoke call, use the version specified - # in package.json. - invoke_opts = pulumi.InvokeOptions(version=get_version()) - - objects = chart_resources.apply( - lambda text: pulumi.runtime.invoke('kubernetes:yaml:decode', { - 'text': text, 'defaultNamespace': config.namespace}, invoke_opts).value['result']) - - # Parse the manifest and create the specified resources. - resources = objects.apply( - lambda objects: _parse_yaml_document(objects, opts, config.transformations)) - - pulumi.Output.all(file, chart_dir, resources).apply(_cleanup_temp_dir) - return resources - - -def _fetch(chart: str, opts: FetchOpts) -> None: - cmd: List[str] = ['helm', 'fetch', chart] - - # Untar by default. - if opts.untar is not False: - cmd.append('--untar') - - env = os.environ - # Helm v3 removed the `--home` flag, so we must use an env var instead. - if opts.home: - env['HELM_HOME'] = opts.home - - if opts.version: - cmd.extend(['--version', opts.version]) - if opts.ca_file: - cmd.extend(['--ca-file', opts.ca_file]) - if opts.cert_file: - cmd.extend(['--cert-file', opts.cert_file]) - if opts.key_file: - cmd.extend(['--key-file', opts.key_file]) - if opts.destination: - cmd.extend(['--destination', opts.destination]) - if opts.keyring: - cmd.extend(['--keyring', opts.keyring]) - if opts.password: - cmd.extend(['--password', opts.password]) - if opts.repo: - cmd.extend(['--repo', opts.repo]) - if opts.untar_dir: - cmd.extend(['--untardir', opts.untar_dir]) - if opts.username: - cmd.extend(['--username', opts.username]) - if opts.devel: - cmd.append('--devel') - if opts.prov: - cmd.append('--prov') - if opts.verify: - cmd.append('--verify') - - subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, check=True, env=env) - - -class Chart(pulumi.ComponentResource): - """ - Chart is a component representing a collection of resources described by an arbitrary Helm - Chart. The Chart can be fetched from any source that is accessible to the `helm` command - line. Values in the `values.yml` file can be overridden using `ChartOpts.values` (equivalent - to `--set` or having multiple `values.yml` files). Objects can be transformed arbitrarily by - supplying callbacks to `ChartOpts.transformations`. - - Chart does not use Tiller. The Chart specified is copied and expanded locally; the semantics - are equivalent to running `helm template` and then using Pulumi to manage the resulting YAML - manifests. Any values that would be retrieved in-cluster are assigned fake values, and - none of Tiller's server-side validity testing is executed. - """ - - resources: pulumi.Output[dict] - """ - Kubernetes resources contained in this Chart. - """ - - def __init__(self, release_name, config, opts=None): - """ - Create an instance of the specified Helm chart. - - :param str release_name: Name of the Chart (e.g., nginx-ingress). - :param Union[ChartOpts, LocalChartOpts] config: Configuration options for the Chart. - :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this - resource's behavior. - """ - if not release_name: - raise TypeError('Missing release name argument') - if not isinstance(release_name, str): - raise TypeError('Expected release name to be a string') - if config and not isinstance(config, ChartOpts) and not isinstance(config, LocalChartOpts): - raise TypeError('Expected config to be a ChartOpts or LocalChartOpts instance') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - if config.resource_prefix: - release_name = f"{config.resource_prefix}-{release_name}" - - super(Chart, self).__init__( - "kubernetes:helm.sh/v2:Chart", - release_name, - __props__, - opts) - - if opts is not None: - opts.parent = self - else: - opts = pulumi.ResourceOptions(parent=self) - - all_config = pulumi.Output.from_input((release_name, config, opts)) - - # Note: Unlike NodeJS, Python requires that we "pull" on our futures in order to get them scheduled for - # execution. In order to do this, we leverage the engine's RegisterResourceOutputs to wait for the - # resolution of all resources that this Helm chart created. - self.resources = all_config.apply(_parse_chart) - self.register_outputs({"resources": self.resources}) - - def get_resource(self, group_version_kind, name, namespace=None) -> pulumi.Output[pulumi.CustomResource]: - """ - get_resource returns a resource defined by a built-in Kubernetes group/version/kind and - name. For example: `get_resource("apps/v1/Deployment", "nginx")` - - :param str group_version_kind: Group/Version/Kind of the resource, e.g., `apps/v1/Deployment` - :param str name: Name of the resource to retrieve - :param str namespace: Optional namespace of the resource to retrieve - """ - - # `id` will either be `${name}` or `${namespace}/${name}`. - id = pulumi.Output.from_input(name) - if namespace is not None: - id = pulumi.Output.concat(namespace, '/', name) - - resource_id = id.apply(lambda x: f'{group_version_kind}:{x}') - return resource_id.apply(lambda x: self.resources[x]) diff --git a/sdk/python/pulumi_kubernetes/meta/__init__.py b/sdk/python/pulumi_kubernetes/meta/__init__.py deleted file mode 100644 index e2a396b5dc..0000000000 --- a/sdk/python/pulumi_kubernetes/meta/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/meta/v1/__init__.py b/sdk/python/pulumi_kubernetes/meta/v1/__init__.py deleted file mode 100644 index efd40f5ec2..0000000000 --- a/sdk/python/pulumi_kubernetes/meta/v1/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .Status import * diff --git a/sdk/python/pulumi_kubernetes/meta/v1/status.py b/sdk/python/pulumi_kubernetes/meta/v1/status.py deleted file mode 100644 index b8b3ec0cf2..0000000000 --- a/sdk/python/pulumi_kubernetes/meta/v1/status.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Status(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - code: pulumi.Output[float] - """ - Suggested HTTP return code for this status, 0 if not set. - """ - details: pulumi.Output[dict] - """ - Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. - """ - kind: pulumi.Output[str] - """ - 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 - """ - message: pulumi.Output[str] - """ - A human-readable description of the status of this operation. - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - reason: pulumi.Output[str] - """ - A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. - """ - status: pulumi.Output[str] - """ - Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, code=None, details=None, kind=None, message=None, metadata=None, reason=None, __props__=None, __name__=None, __opts__=None): - """ - Status is a return value for calls that don't return other objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[float] code: Suggested HTTP return code for this status, 0 if not set. - :param pulumi.Input[dict] details: Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. - :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 - :param pulumi.Input[str] message: A human-readable description of the status of this operation. - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param pulumi.Input[str] reason: A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['code'] = code - __props__['details'] = details - __props__['kind'] = 'Status' - __props__['message'] = message - __props__['metadata'] = metadata - __props__['reason'] = reason - __props__['status'] = None - super(Status, __self__).__init__( - 'kubernetes:meta/v1:Status', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Status resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Status(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/__init__.py b/sdk/python/pulumi_kubernetes/networking/__init__.py deleted file mode 100644 index 4c1e851a21..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py deleted file mode 100644 index 4ebd5da677..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class NetworkPolicy(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the desired behavior for this NetworkPolicy. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - NetworkPolicy describes what network traffic is allowed for a set of Pods - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired behavior for this NetworkPolicy. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'networking.k8s.io/v1' - __props__['kind'] = 'NetworkPolicy' - __props__['metadata'] = metadata - __props__['spec'] = spec - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:extensions/v1beta1:NetworkPolicy")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(NetworkPolicy, __self__).__init__( - 'kubernetes:networking.k8s.io/v1:NetworkPolicy', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing NetworkPolicy resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return NetworkPolicy(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py deleted file mode 100644 index 1e4be0abd4..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class NetworkPolicyList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - NetworkPolicyList is a list of NetworkPolicy objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of schema objects. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'networking.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'NetworkPolicyList' - __props__['metadata'] = metadata - super(NetworkPolicyList, __self__).__init__( - 'kubernetes:networking.k8s.io/v1:NetworkPolicyList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing NetworkPolicyList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return NetworkPolicyList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1/__init__.py b/sdk/python/pulumi_kubernetes/networking/v1/__init__.py deleted file mode 100644 index 2b70c0b4c0..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .NetworkPolicy import * -from .NetworkPolicyList import * diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py deleted file mode 100644 index 479d141713..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class IngressClass(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'networking.k8s.io/v1beta1' - __props__['kind'] = 'IngressClass' - __props__['metadata'] = metadata - __props__['spec'] = spec - super(IngressClass, __self__).__init__( - 'kubernetes:networking.k8s.io/v1beta1:IngressClass', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing IngressClass resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return IngressClass(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py deleted file mode 100644 index 7b3176da96..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class IngressClassList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of IngressClasses. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - IngressClassList is a collection of IngressClasses. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of IngressClasses. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'networking.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'IngressClassList' - __props__['metadata'] = metadata - super(IngressClassList, __self__).__init__( - 'kubernetes:networking.k8s.io/v1beta1:IngressClassList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing IngressClassList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return IngressClassList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py deleted file mode 100644 index f996912fd5..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class IngressList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of Ingress. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - IngressList is a collection of Ingress. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of Ingress. - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'networking.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'IngressList' - __props__['metadata'] = metadata - super(IngressList, __self__).__init__( - 'kubernetes:networking.k8s.io/v1beta1:IngressList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing IngressList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return IngressList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py deleted file mode 100644 index b0f44db632..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .Ingress import * -from .IngressClass import * -from .IngressClassList import * -from .IngressList import * diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py deleted file mode 100644 index 2ec17e184b..0000000000 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/ingress.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Ingress(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - status: pulumi.Output[dict] - """ - Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. - - This resource waits until its status is ready before registering success - for create/update, and populating output properties from the current state of the resource. - The following conditions are used to determine whether the resource creation has - succeeded or failed: - - 1. Ingress object exists. - 2. Endpoint objects exist with matching names for each Ingress path (except when Service - type is ExternalName). - 3. Ingress entry exists for '.status.loadBalancer.ingress'. - - If the Ingress has not reached a Ready state after 10 minutes, it will - time out and mark the resource update as Failed. You can override the default timeout value - by setting the 'customTimeouts' option on the resource. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'networking.k8s.io/v1beta1' - __props__['kind'] = 'Ingress' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:extensions/v1beta1:Ingress")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(Ingress, __self__).__init__( - 'kubernetes:networking.k8s.io/v1beta1:Ingress', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Ingress resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Ingress(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/__init__.py b/sdk/python/pulumi_kubernetes/node/__init__.py deleted file mode 100644 index b7445a56eb..0000000000 --- a/sdk/python/pulumi_kubernetes/node/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1alpha1', 'v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py deleted file mode 100644 index 1b2b3a52ab..0000000000 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class RuntimeClass(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'node.k8s.io/v1alpha1' - __props__['kind'] = 'RuntimeClass' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:node.k8s.io/v1beta1:RuntimeClass")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(RuntimeClass, __self__).__init__( - 'kubernetes:node.k8s.io/v1alpha1:RuntimeClass', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing RuntimeClass resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return RuntimeClass(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py deleted file mode 100644 index 00302265a2..0000000000 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class RuntimeClassList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - RuntimeClassList is a list of RuntimeClass objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of schema objects. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'node.k8s.io/v1alpha1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'RuntimeClassList' - __props__['metadata'] = metadata - super(RuntimeClassList, __self__).__init__( - 'kubernetes:node.k8s.io/v1alpha1:RuntimeClassList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing RuntimeClassList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return RuntimeClassList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py deleted file mode 100644 index 8d424b8363..0000000000 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .RuntimeClass import * -from .RuntimeClassList import * diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py deleted file mode 100644 index 8ccb8d94b7..0000000000 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class RuntimeClass(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - handler: pulumi.Output[str] - """ - Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - overhead: pulumi.Output[dict] - """ - Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - """ - scheduling: pulumi.Output[dict] - """ - Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, handler=None, kind=None, metadata=None, overhead=None, scheduling=None, __props__=None, __name__=None, __opts__=None): - """ - RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[str] handler: Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. - :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 - :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] overhead: Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. - :param pulumi.Input[dict] scheduling: Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'node.k8s.io/v1beta1' - if handler is None: - raise TypeError("Missing required property 'handler'") - __props__['handler'] = handler - __props__['kind'] = 'RuntimeClass' - __props__['metadata'] = metadata - __props__['overhead'] = overhead - __props__['scheduling'] = scheduling - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:node.k8s.io/v1alpha1:RuntimeClass")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(RuntimeClass, __self__).__init__( - 'kubernetes:node.k8s.io/v1beta1:RuntimeClass', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing RuntimeClass resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return RuntimeClass(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py deleted file mode 100644 index 4403da6a6d..0000000000 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class RuntimeClassList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - RuntimeClassList is a list of RuntimeClass objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of schema objects. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'node.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'RuntimeClassList' - __props__['metadata'] = metadata - super(RuntimeClassList, __self__).__init__( - 'kubernetes:node.k8s.io/v1beta1:RuntimeClassList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing RuntimeClassList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return RuntimeClassList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py deleted file mode 100644 index 8d424b8363..0000000000 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .RuntimeClass import * -from .RuntimeClassList import * diff --git a/sdk/python/pulumi_kubernetes/policy/__init__.py b/sdk/python/pulumi_kubernetes/policy/__init__.py deleted file mode 100644 index a311e81ad2..0000000000 --- a/sdk/python/pulumi_kubernetes/policy/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py deleted file mode 100644 index 462c81f765..0000000000 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PodDisruptionBudget(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - """ - Specification of the desired behavior of the PodDisruptionBudget. - """ - status: pulumi.Output[dict] - """ - Most recently observed status of the PodDisruptionBudget. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] spec: Specification of the desired behavior of the PodDisruptionBudget. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'policy/v1beta1' - __props__['kind'] = 'PodDisruptionBudget' - __props__['metadata'] = metadata - __props__['spec'] = spec - __props__['status'] = None - super(PodDisruptionBudget, __self__).__init__( - 'kubernetes:policy/v1beta1:PodDisruptionBudget', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PodDisruptionBudget resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PodDisruptionBudget(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py deleted file mode 100644 index 3a06311796..0000000000 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PodDisruptionBudgetList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - PodDisruptionBudgetList is a collection of PodDisruptionBudgets. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'policy/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'PodDisruptionBudgetList' - __props__['metadata'] = metadata - super(PodDisruptionBudgetList, __self__).__init__( - 'kubernetes:policy/v1beta1:PodDisruptionBudgetList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PodDisruptionBudgetList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PodDisruptionBudgetList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py deleted file mode 100644 index 7aec18b162..0000000000 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PodSecurityPolicy(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - spec defines the policy enforced. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: spec defines the policy enforced. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'policy/v1beta1' - __props__['kind'] = 'PodSecurityPolicy' - __props__['metadata'] = metadata - __props__['spec'] = spec - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:extensions/v1beta1:PodSecurityPolicy")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(PodSecurityPolicy, __self__).__init__( - 'kubernetes:policy/v1beta1:PodSecurityPolicy', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PodSecurityPolicy resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PodSecurityPolicy(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py deleted file mode 100644 index 3b8749e3df..0000000000 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PodSecurityPolicyList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is a list of schema objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - PodSecurityPolicyList is a list of PodSecurityPolicy objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is a list of schema objects. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'policy/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'PodSecurityPolicyList' - __props__['metadata'] = metadata - super(PodSecurityPolicyList, __self__).__init__( - 'kubernetes:policy/v1beta1:PodSecurityPolicyList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PodSecurityPolicyList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PodSecurityPolicyList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py deleted file mode 100644 index 1c30569dbe..0000000000 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .PodDisruptionBudget import * -from .PodDisruptionBudgetList import * -from .PodSecurityPolicy import * -from .PodSecurityPolicyList import * diff --git a/sdk/python/pulumi_kubernetes/provider.py b/sdk/python/pulumi_kubernetes/provider.py deleted file mode 100644 index 003374614c..0000000000 --- a/sdk/python/pulumi_kubernetes/provider.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from . import utilities, tables - - -class Provider(pulumi.ProviderResource): - def __init__(__self__, resource_name, opts=None, cluster=None, context=None, enable_dry_run=None, kubeconfig=None, namespace=None, render_yaml_to_directory=None, suppress_deprecation_warnings=None, __props__=None, __name__=None, __opts__=None): - """ - The provider type for the kubernetes package. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] cluster: If present, the name of the kubeconfig cluster to use. - :param pulumi.Input[str] context: If present, the name of the kubeconfig context to use. - :param pulumi.Input[bool] enable_dry_run: BETA FEATURE - If present and set to true, enable server-side diff calculations. - This feature is in developer preview, and is disabled by default. - - This config can be specified in the following ways, using this precedence: - 1. This `enableDryRun` parameter. - 2. The `PULUMI_K8S_ENABLE_DRY_RUN` environment variable. - :param pulumi.Input[str] kubeconfig: The contents of a kubeconfig file. If this is set, this config will be used instead of $KUBECONFIG. - :param pulumi.Input[str] namespace: If present, the default namespace to use. This flag is ignored for cluster-scoped resources. - - A namespace can be specified in multiple places, and the precedence is as follows: - 1. `.metadata.namespace` set on the resource. - 2. This `namespace` parameter. - 3. `namespace` set for the active context in the kubeconfig. - :param pulumi.Input[str] render_yaml_to_directory: BETA FEATURE - If present, render resource manifests to this directory. In this mode, resources will not - be created on a Kubernetes cluster, but the rendered manifests will be kept in sync with changes - to the Pulumi program. This feature is in developer preview, and is disabled by default. - - Note that some computed Outputs such as status fields will not be populated - since the resources are not created on a Kubernetes cluster. These Output values will remain undefined, - and may result in an error if they are referenced by other resources. Also note that any secret values - used in these resources will be rendered in plaintext to the resulting YAML. - :param pulumi.Input[bool] suppress_deprecation_warnings: If present and set to true, suppress apiVersion deprecation warnings from the CLI. - - This config can be specified in the following ways, using this precedence: - 1. This `suppressDeprecationWarnings` parameter. - 2. The `PULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGS` environment variable. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['cluster'] = cluster - __props__['context'] = context - __props__['enable_dry_run'] = pulumi.Output.from_input(enable_dry_run).apply(json.dumps) if enable_dry_run is not None else None - __props__['kubeconfig'] = kubeconfig - __props__['namespace'] = namespace - __props__['render_yaml_to_directory'] = render_yaml_to_directory - __props__['suppress_deprecation_warnings'] = pulumi.Output.from_input(suppress_deprecation_warnings).apply(json.dumps) if suppress_deprecation_warnings is not None else None - super(Provider, __self__).__init__( - 'kubernetes', - resource_name, - __props__, - opts) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/__init__.py b/sdk/python/pulumi_kubernetes/rbac/__init__.py deleted file mode 100644 index 1f87cd7749..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1', 'v1alpha1', 'v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py deleted file mode 100644 index 2d0e742d3f..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ClusterRole(pulumi.CustomResource): - aggregation_rule: pulumi.Output[dict] - """ - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - """ - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - rules: pulumi.Output[list] - """ - Rules holds all the PolicyRules for this ClusterRole - """ - def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): - """ - ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['aggregation_rule'] = aggregation_rule - __props__['api_version'] = 'rbac.authorization.k8s.io/v1' - __props__['kind'] = 'ClusterRole' - __props__['metadata'] = metadata - __props__['rules'] = rules - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ClusterRole, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRole', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ClusterRole resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ClusterRole(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py deleted file mode 100644 index 16e9d9ec8c..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ClusterRoleBinding(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - role_ref: pulumi.Output[dict] - """ - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - """ - subjects: pulumi.Output[list] - """ - Subjects holds references to the objects the role applies to. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): - """ - ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1' - __props__['kind'] = 'ClusterRoleBinding' - __props__['metadata'] = metadata - if role_ref is None: - raise TypeError("Missing required property 'role_ref'") - __props__['role_ref'] = role_ref - __props__['subjects'] = subjects - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ClusterRoleBinding, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ClusterRoleBinding resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ClusterRoleBinding(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py deleted file mode 100644 index ce9c7b5b04..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ClusterRoleBindingList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of ClusterRoleBindings - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ClusterRoleBindingList is a collection of ClusterRoleBindings - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ClusterRoleBindingList' - __props__['metadata'] = metadata - super(ClusterRoleBindingList, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBindingList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ClusterRoleBindingList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ClusterRoleBindingList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py deleted file mode 100644 index cb44f6e954..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ClusterRoleList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of ClusterRoles - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ClusterRoleList is a collection of ClusterRoles - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of ClusterRoles - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ClusterRoleList' - __props__['metadata'] = metadata - super(ClusterRoleList, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ClusterRoleList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ClusterRoleList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py deleted file mode 100644 index 2ef3a11f1e..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class RoleBinding(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - role_ref: pulumi.Output[dict] - """ - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - """ - subjects: pulumi.Output[list] - """ - Subjects holds references to the objects the role applies to. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): - """ - RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1' - __props__['kind'] = 'RoleBinding' - __props__['metadata'] = metadata - if role_ref is None: - raise TypeError("Missing required property 'role_ref'") - __props__['role_ref'] = role_ref - __props__['subjects'] = subjects - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(RoleBinding, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1:RoleBinding', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing RoleBinding resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return RoleBinding(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py deleted file mode 100644 index e80dcdc73e..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class RoleBindingList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of RoleBindings - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - RoleBindingList is a collection of RoleBindings - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of RoleBindings - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'RoleBindingList' - __props__['metadata'] = metadata - super(RoleBindingList, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1:RoleBindingList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing RoleBindingList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return RoleBindingList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py deleted file mode 100644 index 782d383d55..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class RoleList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of Roles - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - RoleList is a collection of Roles - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of Roles - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'RoleList' - __props__['metadata'] = metadata - super(RoleList, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1:RoleList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing RoleList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return RoleList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py b/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py deleted file mode 100644 index e86bf253d5..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .ClusterRole import * -from .ClusterRoleBinding import * -from .ClusterRoleBindingList import * -from .ClusterRoleList import * -from .Role import * -from .RoleBinding import * -from .RoleBindingList import * -from .RoleList import * diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1/role.py deleted file mode 100644 index 22eca3ae77..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1/role.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Role(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - rules: pulumi.Output[list] - """ - Rules holds all the PolicyRules for this Role - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): - """ - Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1' - __props__['kind'] = 'Role' - __props__['metadata'] = metadata - __props__['rules'] = rules - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:Role"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:Role")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(Role, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1:Role', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Role resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Role(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py deleted file mode 100644 index d6fcdc86a0..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ClusterRole(pulumi.CustomResource): - aggregation_rule: pulumi.Output[dict] - """ - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - """ - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - rules: pulumi.Output[list] - """ - Rules holds all the PolicyRules for this ClusterRole - """ - def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): - """ - ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['aggregation_rule'] = aggregation_rule - __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' - __props__['kind'] = 'ClusterRole' - __props__['metadata'] = metadata - __props__['rules'] = rules - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRole"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ClusterRole, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ClusterRole resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ClusterRole(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py deleted file mode 100644 index 4559f9a01b..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ClusterRoleBinding(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - role_ref: pulumi.Output[dict] - """ - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - """ - subjects: pulumi.Output[list] - """ - Subjects holds references to the objects the role applies to. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): - """ - ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' - __props__['kind'] = 'ClusterRoleBinding' - __props__['metadata'] = metadata - if role_ref is None: - raise TypeError("Missing required property 'role_ref'") - __props__['role_ref'] = role_ref - __props__['subjects'] = subjects - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ClusterRoleBinding, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ClusterRoleBinding resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ClusterRoleBinding(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py deleted file mode 100644 index d70c89578a..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ClusterRoleBindingList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of ClusterRoleBindings - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ClusterRoleBindingList' - __props__['metadata'] = metadata - super(ClusterRoleBindingList, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBindingList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ClusterRoleBindingList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ClusterRoleBindingList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py deleted file mode 100644 index 1e062467a8..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ClusterRoleList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of ClusterRoles - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of ClusterRoles - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ClusterRoleList' - __props__['metadata'] = metadata - super(ClusterRoleList, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ClusterRoleList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ClusterRoleList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py deleted file mode 100644 index 0db54ce08e..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class RoleBinding(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - role_ref: pulumi.Output[dict] - """ - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - """ - subjects: pulumi.Output[list] - """ - Subjects holds references to the objects the role applies to. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): - """ - RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' - __props__['kind'] = 'RoleBinding' - __props__['metadata'] = metadata - if role_ref is None: - raise TypeError("Missing required property 'role_ref'") - __props__['role_ref'] = role_ref - __props__['subjects'] = subjects - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:RoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(RoleBinding, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing RoleBinding resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return RoleBinding(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py deleted file mode 100644 index 5ef646170f..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class RoleBindingList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of RoleBindings - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of RoleBindings - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'RoleBindingList' - __props__['metadata'] = metadata - super(RoleBindingList, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBindingList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing RoleBindingList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return RoleBindingList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py deleted file mode 100644 index b7edcc10b8..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class RoleList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of Roles - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - RoleList is a collection of Roles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of Roles - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'RoleList' - __props__['metadata'] = metadata - super(RoleList, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing RoleList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return RoleList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py deleted file mode 100644 index e86bf253d5..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .ClusterRole import * -from .ClusterRoleBinding import * -from .ClusterRoleBindingList import * -from .ClusterRoleList import * -from .Role import * -from .RoleBinding import * -from .RoleBindingList import * -from .RoleList import * diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py deleted file mode 100644 index 4267f21831..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/role.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Role(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - rules: pulumi.Output[list] - """ - Rules holds all the PolicyRules for this Role - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): - """ - Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' - __props__['kind'] = 'Role' - __props__['metadata'] = metadata - __props__['rules'] = rules - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:Role"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:Role")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(Role, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1alpha1:Role', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Role resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Role(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py deleted file mode 100644 index 6cc4ab3734..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ClusterRole(pulumi.CustomResource): - aggregation_rule: pulumi.Output[dict] - """ - AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - """ - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - rules: pulumi.Output[list] - """ - Rules holds all the PolicyRules for this ClusterRole - """ - def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): - """ - ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['aggregation_rule'] = aggregation_rule - __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' - __props__['kind'] = 'ClusterRole' - __props__['metadata'] = metadata - __props__['rules'] = rules - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRole"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ClusterRole, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ClusterRole resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ClusterRole(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py deleted file mode 100644 index f11be2fbac..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ClusterRoleBinding(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - role_ref: pulumi.Output[dict] - """ - RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - """ - subjects: pulumi.Output[list] - """ - Subjects holds references to the objects the role applies to. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): - """ - ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' - __props__['kind'] = 'ClusterRoleBinding' - __props__['metadata'] = metadata - if role_ref is None: - raise TypeError("Missing required property 'role_ref'") - __props__['role_ref'] = role_ref - __props__['subjects'] = subjects - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(ClusterRoleBinding, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ClusterRoleBinding resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ClusterRoleBinding(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py deleted file mode 100644 index 34dc66aaba..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ClusterRoleBindingList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of ClusterRoleBindings - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindingList, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ClusterRoleBindingList' - __props__['metadata'] = metadata - super(ClusterRoleBindingList, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBindingList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ClusterRoleBindingList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ClusterRoleBindingList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py deleted file mode 100644 index 2471d985a5..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ClusterRoleList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of ClusterRoles - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of ClusterRoles - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ClusterRoleList' - __props__['metadata'] = metadata - super(ClusterRoleList, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ClusterRoleList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ClusterRoleList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py deleted file mode 100644 index 02ead8d445..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class RoleBinding(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - role_ref: pulumi.Output[dict] - """ - RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - """ - subjects: pulumi.Output[list] - """ - Subjects holds references to the objects the role applies to. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): - """ - RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. - :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' - __props__['kind'] = 'RoleBinding' - __props__['metadata'] = metadata - if role_ref is None: - raise TypeError("Missing required property 'role_ref'") - __props__['role_ref'] = role_ref - __props__['subjects'] = subjects - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:RoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(RoleBinding, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing RoleBinding resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return RoleBinding(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py deleted file mode 100644 index 4d667fb22b..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class RoleBindingList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of RoleBindings - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of RoleBindings - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'RoleBindingList' - __props__['metadata'] = metadata - super(RoleBindingList, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBindingList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing RoleBindingList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return RoleBindingList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py deleted file mode 100644 index 430ec71d28..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class RoleList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of Roles - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - RoleList is a collection of Roles Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of Roles - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'RoleList' - __props__['metadata'] = metadata - super(RoleList, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1beta1:RoleList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing RoleList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return RoleList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py deleted file mode 100644 index e86bf253d5..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .ClusterRole import * -from .ClusterRoleBinding import * -from .ClusterRoleBindingList import * -from .ClusterRoleList import * -from .Role import * -from .RoleBinding import * -from .RoleBindingList import * -from .RoleList import * diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py deleted file mode 100644 index a60355a204..0000000000 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/role.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class Role(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. - """ - rules: pulumi.Output[list] - """ - Rules holds all the PolicyRules for this Role - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): - """ - Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.20. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. - :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' - __props__['kind'] = 'Role' - __props__['metadata'] = metadata - __props__['rules'] = rules - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:Role"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:Role")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(Role, __self__).__init__( - 'kubernetes:rbac.authorization.k8s.io/v1beta1:Role', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing Role resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return Role(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/__init__.py deleted file mode 100644 index 1f87cd7749..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1', 'v1alpha1', 'v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py deleted file mode 100644 index 70b01be4af..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PriorityClass(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - description: pulumi.Output[str] - """ - description is an arbitrary string that usually provides guidelines on when this priority class should be used. - """ - global_default: pulumi.Output[bool] - """ - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - preemption_policy: pulumi.Output[str] - """ - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - """ - value: pulumi.Output[float] - """ - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, __props__=None, __name__=None, __opts__=None): - """ - PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this priority class should be used. - :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - :param pulumi.Input[float] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'scheduling.k8s.io/v1' - __props__['description'] = description - __props__['global_default'] = global_default - __props__['kind'] = 'PriorityClass' - __props__['metadata'] = metadata - __props__['preemption_policy'] = preemption_policy - if value is None: - raise TypeError("Missing required property 'value'") - __props__['value'] = value - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass"), pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1beta1:PriorityClass")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(PriorityClass, __self__).__init__( - 'kubernetes:scheduling.k8s.io/v1:PriorityClass', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PriorityClass resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PriorityClass(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py deleted file mode 100644 index e092668fd4..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PriorityClassList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is the list of PriorityClasses - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - PriorityClassList is a collection of priority classes. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is the list of PriorityClasses - :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 - :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'scheduling.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'PriorityClassList' - __props__['metadata'] = metadata - super(PriorityClassList, __self__).__init__( - 'kubernetes:scheduling.k8s.io/v1:PriorityClassList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PriorityClassList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PriorityClassList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py deleted file mode 100644 index db19940172..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .PriorityClass import * -from .PriorityClassList import * diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py deleted file mode 100644 index 963366ab54..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PriorityClass(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - description: pulumi.Output[str] - """ - description is an arbitrary string that usually provides guidelines on when this priority class should be used. - """ - global_default: pulumi.Output[bool] - """ - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - preemption_policy: pulumi.Output[str] - """ - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - """ - value: pulumi.Output[float] - """ - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, __props__=None, __name__=None, __opts__=None): - """ - DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this priority class should be used. - :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - :param pulumi.Input[float] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'scheduling.k8s.io/v1alpha1' - __props__['description'] = description - __props__['global_default'] = global_default - __props__['kind'] = 'PriorityClass' - __props__['metadata'] = metadata - __props__['preemption_policy'] = preemption_policy - if value is None: - raise TypeError("Missing required property 'value'") - __props__['value'] = value - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1:PriorityClass"), pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1beta1:PriorityClass")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(PriorityClass, __self__).__init__( - 'kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PriorityClass resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PriorityClass(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py deleted file mode 100644 index 0724f2b85d..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PriorityClassList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is the list of PriorityClasses - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - PriorityClassList is a collection of priority classes. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is the list of PriorityClasses - :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 - :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'scheduling.k8s.io/v1alpha1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'PriorityClassList' - __props__['metadata'] = metadata - super(PriorityClassList, __self__).__init__( - 'kubernetes:scheduling.k8s.io/v1alpha1:PriorityClassList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PriorityClassList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PriorityClassList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py deleted file mode 100644 index db19940172..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .PriorityClass import * -from .PriorityClassList import * diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py deleted file mode 100644 index 3ed23631ed..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PriorityClass(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - description: pulumi.Output[str] - """ - description is an arbitrary string that usually provides guidelines on when this priority class should be used. - """ - global_default: pulumi.Output[bool] - """ - globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - preemption_policy: pulumi.Output[str] - """ - PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - """ - value: pulumi.Output[float] - """ - The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, __props__=None, __name__=None, __opts__=None): - """ - DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this priority class should be used. - :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. - :param pulumi.Input[float] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'scheduling.k8s.io/v1beta1' - __props__['description'] = description - __props__['global_default'] = global_default - __props__['kind'] = 'PriorityClass' - __props__['metadata'] = metadata - __props__['preemption_policy'] = preemption_policy - if value is None: - raise TypeError("Missing required property 'value'") - __props__['value'] = value - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1:PriorityClass"), pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(PriorityClass, __self__).__init__( - 'kubernetes:scheduling.k8s.io/v1beta1:PriorityClass', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PriorityClass resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PriorityClass(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py deleted file mode 100644 index f8ce6cf840..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PriorityClassList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is the list of PriorityClasses - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - PriorityClassList is a collection of priority classes. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is the list of PriorityClasses - :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 - :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'scheduling.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'PriorityClassList' - __props__['metadata'] = metadata - super(PriorityClassList, __self__).__init__( - 'kubernetes:scheduling.k8s.io/v1beta1:PriorityClassList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PriorityClassList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PriorityClassList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py deleted file mode 100644 index db19940172..0000000000 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .PriorityClass import * -from .PriorityClassList import * diff --git a/sdk/python/pulumi_kubernetes/settings/__init__.py b/sdk/python/pulumi_kubernetes/settings/__init__.py deleted file mode 100644 index d688fb9289..0000000000 --- a/sdk/python/pulumi_kubernetes/settings/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1alpha1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py deleted file mode 100644 index 2a159a0399..0000000000 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PodPreset(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - spec: pulumi.Output[dict] - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - PodPreset is a policy resource that defines additional runtime requirements for a Pod. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'settings.k8s.io/v1alpha1' - __props__['kind'] = 'PodPreset' - __props__['metadata'] = metadata - __props__['spec'] = spec - super(PodPreset, __self__).__init__( - 'kubernetes:settings.k8s.io/v1alpha1:PodPreset', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PodPreset resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PodPreset(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py deleted file mode 100644 index 0c3361815b..0000000000 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class PodPresetList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is a list of schema objects. - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - PodPresetList is a list of PodPreset objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is a list of schema objects. - :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 - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'settings.k8s.io/v1alpha1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'PodPresetList' - __props__['metadata'] = metadata - super(PodPresetList, __self__).__init__( - 'kubernetes:settings.k8s.io/v1alpha1:PodPresetList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing PodPresetList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return PodPresetList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py deleted file mode 100644 index c69aa08339..0000000000 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .PodPreset import * -from .PodPresetList import * diff --git a/sdk/python/pulumi_kubernetes/storage/__init__.py b/sdk/python/pulumi_kubernetes/storage/__init__.py deleted file mode 100644 index 1f87cd7749..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import importlib -# Make subpackages available: -__all__ = ['v1', 'v1alpha1', 'v1beta1'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py deleted file mode 100644 index 8b27bd047b..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CSIDriver(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the CSI Driver. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the CSI Driver. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1' - __props__['kind'] = 'CSIDriver' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:CSIDriver")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(CSIDriver, __self__).__init__( - 'kubernetes:storage.k8s.io/v1:CSIDriver', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CSIDriver resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CSIDriver(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py deleted file mode 100644 index 42d8f4b5d7..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CSIDriverList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is the list of CSIDriver - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - CSIDriverList is a collection of CSIDriver objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is the list of CSIDriver - :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 - :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'CSIDriverList' - __props__['metadata'] = metadata - super(CSIDriverList, __self__).__init__( - 'kubernetes:storage.k8s.io/v1:CSIDriverList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CSIDriverList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CSIDriverList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py deleted file mode 100644 index 20b513cd6a..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CSINode(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - metadata.name must be the Kubernetes node name. - """ - spec: pulumi.Output[dict] - """ - spec is the specification of CSINode - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: metadata.name must be the Kubernetes node name. - :param pulumi.Input[dict] spec: spec is the specification of CSINode - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1' - __props__['kind'] = 'CSINode' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:CSINode")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(CSINode, __self__).__init__( - 'kubernetes:storage.k8s.io/v1:CSINode', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CSINode resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CSINode(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py deleted file mode 100644 index 128a51955f..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CSINodeList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is the list of CSINode - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - CSINodeList is a collection of CSINode objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is the list of CSINode - :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 - :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'CSINodeList' - __props__['metadata'] = metadata - super(CSINodeList, __self__).__init__( - 'kubernetes:storage.k8s.io/v1:CSINodeList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CSINodeList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CSINodeList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py deleted file mode 100644 index 87986f28a9..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py +++ /dev/null @@ -1,130 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class StorageClass(pulumi.CustomResource): - allow_volume_expansion: pulumi.Output[bool] - """ - AllowVolumeExpansion shows whether the storage class allow volume expand - """ - allowed_topologies: pulumi.Output[list] - """ - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. - """ - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - mount_options: pulumi.Output[list] - """ - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. - """ - parameters: pulumi.Output[dict] - """ - Parameters holds the parameters for the provisioner that should create volumes of this storage class. - """ - provisioner: pulumi.Output[str] - """ - Provisioner indicates the type of the provisioner. - """ - reclaim_policy: pulumi.Output[str] - """ - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. - """ - volume_binding_mode: pulumi.Output[str] - """ - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. - """ - def __init__(__self__, resource_name, opts=None, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None, __props__=None, __name__=None, __opts__=None): - """ - StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. - - StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[bool] allow_volume_expansion: AllowVolumeExpansion shows whether the storage class allow volume expand - :param pulumi.Input[list] allowed_topologies: Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[list] mount_options: Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. - :param pulumi.Input[dict] parameters: Parameters holds the parameters for the provisioner that should create volumes of this storage class. - :param pulumi.Input[str] provisioner: Provisioner indicates the type of the provisioner. - :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. - :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['allow_volume_expansion'] = allow_volume_expansion - __props__['allowed_topologies'] = allowed_topologies - __props__['api_version'] = 'storage.k8s.io/v1' - __props__['kind'] = 'StorageClass' - __props__['metadata'] = metadata - __props__['mount_options'] = mount_options - __props__['parameters'] = parameters - if provisioner is None: - raise TypeError("Missing required property 'provisioner'") - __props__['provisioner'] = provisioner - __props__['reclaim_policy'] = reclaim_policy - __props__['volume_binding_mode'] = volume_binding_mode - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:StorageClass")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(StorageClass, __self__).__init__( - 'kubernetes:storage.k8s.io/v1:StorageClass', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing StorageClass resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return StorageClass(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py deleted file mode 100644 index acd2729045..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class StorageClassList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of StorageClasses - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - StorageClassList is a collection of storage classes. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of StorageClasses - :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 - :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'StorageClassList' - __props__['metadata'] = metadata - super(StorageClassList, __self__).__init__( - 'kubernetes:storage.k8s.io/v1:StorageClassList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing StorageClassList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return StorageClassList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py deleted file mode 100644 index 9f4a2d000f..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class VolumeAttachment(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - """ - status: pulumi.Output[dict] - """ - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. - - VolumeAttachment objects are non-namespaced. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1' - __props__['kind'] = 'VolumeAttachment' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment"), pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:VolumeAttachment")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(VolumeAttachment, __self__).__init__( - 'kubernetes:storage.k8s.io/v1:VolumeAttachment', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing VolumeAttachment resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return VolumeAttachment(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py deleted file mode 100644 index 977a95b40d..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class VolumeAttachmentList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of VolumeAttachments - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - VolumeAttachmentList is a collection of VolumeAttachment objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of VolumeAttachments - :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 - :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'VolumeAttachmentList' - __props__['metadata'] = metadata - super(VolumeAttachmentList, __self__).__init__( - 'kubernetes:storage.k8s.io/v1:VolumeAttachmentList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing VolumeAttachmentList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return VolumeAttachmentList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/__init__.py b/sdk/python/pulumi_kubernetes/storage/v1/__init__.py deleted file mode 100644 index c245ce2669..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .CSIDriver import * -from .CSIDriverList import * -from .CSINode import * -from .CSINodeList import * -from .StorageClass import * -from .StorageClassList import * -from .VolumeAttachment import * -from .VolumeAttachmentList import * diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py deleted file mode 100644 index 6b9f74bae4..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class VolumeAttachment(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - """ - status: pulumi.Output[dict] - """ - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. - - VolumeAttachment objects are non-namespaced. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1alpha1' - __props__['kind'] = 'VolumeAttachment' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:VolumeAttachment"), pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:VolumeAttachment")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(VolumeAttachment, __self__).__init__( - 'kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing VolumeAttachment resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return VolumeAttachment(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py deleted file mode 100644 index 3d24e2ad84..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class VolumeAttachmentList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of VolumeAttachments - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - VolumeAttachmentList is a collection of VolumeAttachment objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of VolumeAttachments - :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 - :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1alpha1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'VolumeAttachmentList' - __props__['metadata'] = metadata - super(VolumeAttachmentList, __self__).__init__( - 'kubernetes:storage.k8s.io/v1alpha1:VolumeAttachmentList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing VolumeAttachmentList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return VolumeAttachmentList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py deleted file mode 100644 index 9f5aca33a0..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .VolumeAttachment import * -from .VolumeAttachmentList import * diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py deleted file mode 100644 index e5b1537b57..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CSIDriver(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the CSI Driver. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. CSI drivers do not need to create the CSIDriver object directly. Instead they may use the cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically creates a CSIDriver object representing the driver. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the CSI Driver. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1beta1' - __props__['kind'] = 'CSIDriver' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:CSIDriver")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(CSIDriver, __self__).__init__( - 'kubernetes:storage.k8s.io/v1beta1:CSIDriver', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CSIDriver resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CSIDriver(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py deleted file mode 100644 index e7496f14fb..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CSIDriverList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is the list of CSIDriver - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - CSIDriverList is a collection of CSIDriver objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is the list of CSIDriver - :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 - :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'CSIDriverList' - __props__['metadata'] = metadata - super(CSIDriverList, __self__).__init__( - 'kubernetes:storage.k8s.io/v1beta1:CSIDriverList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CSIDriverList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CSIDriverList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py deleted file mode 100644 index fdc0f3f2f2..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - -warnings.warn("storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.", DeprecationWarning) - - -class CSINode(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - metadata.name must be the Kubernetes node name. - """ - spec: pulumi.Output[dict] - """ - spec is the specification of CSINode - """ - warnings.warn("storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.", DeprecationWarning) - - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: metadata.name must be the Kubernetes node name. - :param pulumi.Input[dict] spec: spec is the specification of CSINode - """ - pulumi.log.warn("CSINode is deprecated: storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.") - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1beta1' - __props__['kind'] = 'CSINode' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:CSINode")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(CSINode, __self__).__init__( - 'kubernetes:storage.k8s.io/v1beta1:CSINode', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CSINode resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CSINode(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py deleted file mode 100644 index 6ca17bdaa8..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class CSINodeList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - items is the list of CSINode - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - CSINodeList is a collection of CSINode objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: items is the list of CSINode - :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 - :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'CSINodeList' - __props__['metadata'] = metadata - super(CSINodeList, __self__).__init__( - 'kubernetes:storage.k8s.io/v1beta1:CSINodeList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing CSINodeList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return CSINodeList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py deleted file mode 100644 index 1af2f64808..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py +++ /dev/null @@ -1,130 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class StorageClass(pulumi.CustomResource): - allow_volume_expansion: pulumi.Output[bool] - """ - AllowVolumeExpansion shows whether the storage class allow volume expand - """ - allowed_topologies: pulumi.Output[list] - """ - Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. - """ - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - mount_options: pulumi.Output[list] - """ - Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. - """ - parameters: pulumi.Output[dict] - """ - Parameters holds the parameters for the provisioner that should create volumes of this storage class. - """ - provisioner: pulumi.Output[str] - """ - Provisioner indicates the type of the provisioner. - """ - reclaim_policy: pulumi.Output[str] - """ - Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. - """ - volume_binding_mode: pulumi.Output[str] - """ - VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. - """ - def __init__(__self__, resource_name, opts=None, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None, __props__=None, __name__=None, __opts__=None): - """ - StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. - - StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[bool] allow_volume_expansion: AllowVolumeExpansion shows whether the storage class allow volume expand - :param pulumi.Input[list] allowed_topologies: Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[list] mount_options: Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. - :param pulumi.Input[dict] parameters: Parameters holds the parameters for the provisioner that should create volumes of this storage class. - :param pulumi.Input[str] provisioner: Provisioner indicates the type of the provisioner. - :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. - :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['allow_volume_expansion'] = allow_volume_expansion - __props__['allowed_topologies'] = allowed_topologies - __props__['api_version'] = 'storage.k8s.io/v1beta1' - __props__['kind'] = 'StorageClass' - __props__['metadata'] = metadata - __props__['mount_options'] = mount_options - __props__['parameters'] = parameters - if provisioner is None: - raise TypeError("Missing required property 'provisioner'") - __props__['provisioner'] = provisioner - __props__['reclaim_policy'] = reclaim_policy - __props__['volume_binding_mode'] = volume_binding_mode - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:StorageClass")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(StorageClass, __self__).__init__( - 'kubernetes:storage.k8s.io/v1beta1:StorageClass', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing StorageClass resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return StorageClass(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py deleted file mode 100644 index af772a5d57..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class StorageClassList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of StorageClasses - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - StorageClassList is a collection of storage classes. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of StorageClasses - :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 - :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'StorageClassList' - __props__['metadata'] = metadata - super(StorageClassList, __self__).__init__( - 'kubernetes:storage.k8s.io/v1beta1:StorageClassList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing StorageClassList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return StorageClassList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py deleted file mode 100644 index 66efb6ac36..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class VolumeAttachment(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - spec: pulumi.Output[dict] - """ - Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - """ - status: pulumi.Output[dict] - """ - Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. - """ - def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): - """ - VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. - - VolumeAttachment objects are non-namespaced. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :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 - :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1beta1' - __props__['kind'] = 'VolumeAttachment' - __props__['metadata'] = metadata - if spec is None: - raise TypeError("Missing required property 'spec'") - __props__['spec'] = spec - __props__['status'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:VolumeAttachment"), pulumi.Alias(type_="kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment")]) - opts = pulumi.ResourceOptions.merge(opts, alias_opts) - super(VolumeAttachment, __self__).__init__( - 'kubernetes:storage.k8s.io/v1beta1:VolumeAttachment', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing VolumeAttachment resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return VolumeAttachment(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py deleted file mode 100644 index 34c9f71159..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class VolumeAttachmentList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - 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 - """ - items: pulumi.Output[list] - """ - Items is the list of VolumeAttachments - """ - kind: pulumi.Output[str] - """ - 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 - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - VolumeAttachmentList is a collection of VolumeAttachment objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :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 - :param pulumi.Input[list] items: Items is the list of VolumeAttachments - :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 - :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'storage.k8s.io/v1beta1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'VolumeAttachmentList' - __props__['metadata'] = metadata - super(VolumeAttachmentList, __self__).__init__( - 'kubernetes:storage.k8s.io/v1beta1:VolumeAttachmentList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing VolumeAttachmentList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return VolumeAttachmentList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py deleted file mode 100644 index c245ce2669..0000000000 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -# Export this package's modules as members: -from .CSIDriver import * -from .CSIDriverList import * -from .CSINode import * -from .CSINodeList import * -from .StorageClass import * -from .StorageClassList import * -from .VolumeAttachment import * -from .VolumeAttachmentList import * diff --git a/sdk/python/pulumi_kubernetes/tables.py b/sdk/python/pulumi_kubernetes/tables.py deleted file mode 100644 index 634022cc4b..0000000000 --- a/sdk/python/pulumi_kubernetes/tables.py +++ /dev/null @@ -1,923 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -_SNAKE_TO_CAMEL_CASE_TABLE = { - "_ref": "$ref", - "_schema": "$schema", - "accepted_names": "acceptedNames", - "access_modes": "accessModes", - "acquire_time": "acquireTime", - "active_deadline_seconds": "activeDeadlineSeconds", - "additional_items": "additionalItems", - "additional_printer_columns": "additionalPrinterColumns", - "additional_properties": "additionalProperties", - "address_type": "addressType", - "admission_review_versions": "admissionReviewVersions", - "aggregation_rule": "aggregationRule", - "all_of": "allOf", - "allow_privilege_escalation": "allowPrivilegeEscalation", - "allow_volume_expansion": "allowVolumeExpansion", - "allowed_capabilities": "allowedCapabilities", - "allowed_csi_drivers": "allowedCSIDrivers", - "allowed_flex_volumes": "allowedFlexVolumes", - "allowed_host_paths": "allowedHostPaths", - "allowed_proc_mount_types": "allowedProcMountTypes", - "allowed_runtime_class_names": "allowedRuntimeClassNames", - "allowed_topologies": "allowedTopologies", - "allowed_unsafe_sysctls": "allowedUnsafeSysctls", - "any_of": "anyOf", - "api_group": "apiGroup", - "api_groups": "apiGroups", - "api_version": "apiVersion", - "api_versions": "apiVersions", - "app_protocol": "appProtocol", - "assured_concurrency_shares": "assuredConcurrencyShares", - "attach_error": "attachError", - "attach_required": "attachRequired", - "attachment_metadata": "attachmentMetadata", - "automount_service_account_token": "automountServiceAccountToken", - "available_replicas": "availableReplicas", - "average_utilization": "averageUtilization", - "average_value": "averageValue", - "aws_elastic_block_store": "awsElasticBlockStore", - "azure_disk": "azureDisk", - "azure_file": "azureFile", - "backoff_limit": "backoffLimit", - "binary_data": "binaryData", - "block_owner_deletion": "blockOwnerDeletion", - "boot_id": "bootID", - "bound_object_ref": "boundObjectRef", - "build_date": "buildDate", - "ca_bundle": "caBundle", - "caching_mode": "cachingMode", - "chap_auth_discovery": "chapAuthDiscovery", - "chap_auth_session": "chapAuthSession", - "claim_name": "claimName", - "claim_ref": "claimRef", - "client_cidr": "clientCIDR", - "client_config": "clientConfig", - "client_ip": "clientIP", - "cluster_ip": "clusterIP", - "cluster_name": "clusterName", - "cluster_role_selectors": "clusterRoleSelectors", - "cluster_scope": "clusterScope", - "collision_count": "collisionCount", - "completion_time": "completionTime", - "concurrency_policy": "concurrencyPolicy", - "condition_type": "conditionType", - "config_map": "configMap", - "config_map_key_ref": "configMapKeyRef", - "config_map_ref": "configMapRef", - "config_source": "configSource", - "container_id": "containerID", - "container_name": "containerName", - "container_port": "containerPort", - "container_runtime_version": "containerRuntimeVersion", - "container_statuses": "containerStatuses", - "continue_": "continue", - "controller_expand_secret_ref": "controllerExpandSecretRef", - "controller_publish_secret_ref": "controllerPublishSecretRef", - "conversion_review_versions": "conversionReviewVersions", - "creation_timestamp": "creationTimestamp", - "current_average_utilization": "currentAverageUtilization", - "current_average_value": "currentAverageValue", - "current_cpu_utilization_percentage": "currentCPUUtilizationPercentage", - "current_healthy": "currentHealthy", - "current_metrics": "currentMetrics", - "current_number_scheduled": "currentNumberScheduled", - "current_replicas": "currentReplicas", - "current_revision": "currentRevision", - "current_value": "currentValue", - "daemon_endpoints": "daemonEndpoints", - "data_source": "dataSource", - "dataset_name": "datasetName", - "dataset_uuid": "datasetUUID", - "default_add_capabilities": "defaultAddCapabilities", - "default_allow_privilege_escalation": "defaultAllowPrivilegeEscalation", - "default_mode": "defaultMode", - "default_request": "defaultRequest", - "default_runtime_class_name": "defaultRuntimeClassName", - "delete_options": "deleteOptions", - "deletion_grace_period_seconds": "deletionGracePeriodSeconds", - "deletion_timestamp": "deletionTimestamp", - "deprecated_count": "deprecatedCount", - "deprecated_first_timestamp": "deprecatedFirstTimestamp", - "deprecated_last_timestamp": "deprecatedLastTimestamp", - "deprecated_source": "deprecatedSource", - "described_object": "describedObject", - "desired_healthy": "desiredHealthy", - "desired_number_scheduled": "desiredNumberScheduled", - "desired_replicas": "desiredReplicas", - "detach_error": "detachError", - "device_path": "devicePath", - "disk_name": "diskName", - "disk_uri": "diskURI", - "disrupted_pods": "disruptedPods", - "disruptions_allowed": "disruptionsAllowed", - "distinguisher_method": "distinguisherMethod", - "dns_config": "dnsConfig", - "dns_policy": "dnsPolicy", - "downward_api": "downwardAPI", - "dry_run": "dryRun", - "empty_dir": "emptyDir", - "enable_service_links": "enableServiceLinks", - "endpoints_namespace": "endpointsNamespace", - "env_from": "envFrom", - "ephemeral_container_statuses": "ephemeralContainerStatuses", - "ephemeral_containers": "ephemeralContainers", - "evaluation_error": "evaluationError", - "event_time": "eventTime", - "except_": "except", - "exclusive_maximum": "exclusiveMaximum", - "exclusive_minimum": "exclusiveMinimum", - "exec_": "exec", - "exit_code": "exitCode", - "expected_pods": "expectedPods", - "expiration_seconds": "expirationSeconds", - "expiration_timestamp": "expirationTimestamp", - "external_docs": "externalDocs", - "external_i_ps": "externalIPs", - "external_id": "externalID", - "external_name": "externalName", - "external_traffic_policy": "externalTrafficPolicy", - "failed_jobs_history_limit": "failedJobsHistoryLimit", - "failure_policy": "failurePolicy", - "failure_threshold": "failureThreshold", - "field_path": "fieldPath", - "field_ref": "fieldRef", - "fields_type": "fieldsType", - "fields_v1": "fieldsV1", - "finished_at": "finishedAt", - "first_timestamp": "firstTimestamp", - "flex_volume": "flexVolume", - "forbidden_sysctls": "forbiddenSysctls", - "from_": "from", - "fs_group": "fsGroup", - "fs_group_change_policy": "fsGroupChangePolicy", - "fs_type": "fsType", - "fully_labeled_replicas": "fullyLabeledReplicas", - "gce_persistent_disk": "gcePersistentDisk", - "generate_name": "generateName", - "git_commit": "gitCommit", - "git_repo": "gitRepo", - "git_tree_state": "gitTreeState", - "git_version": "gitVersion", - "global_default": "globalDefault", - "gmsa_credential_spec": "gmsaCredentialSpec", - "gmsa_credential_spec_name": "gmsaCredentialSpecName", - "go_version": "goVersion", - "grace_period_seconds": "gracePeriodSeconds", - "group_priority_minimum": "groupPriorityMinimum", - "group_version": "groupVersion", - "hand_size": "handSize", - "health_check_node_port": "healthCheckNodePort", - "holder_identity": "holderIdentity", - "host_aliases": "hostAliases", - "host_ip": "hostIP", - "host_ipc": "hostIPC", - "host_network": "hostNetwork", - "host_path": "hostPath", - "host_pid": "hostPID", - "host_port": "hostPort", - "host_ports": "hostPorts", - "http_get": "httpGet", - "http_headers": "httpHeaders", - "image_id": "imageID", - "image_pull_policy": "imagePullPolicy", - "image_pull_secrets": "imagePullSecrets", - "ingress_class_name": "ingressClassName", - "init_container_statuses": "initContainerStatuses", - "init_containers": "initContainers", - "initial_delay_seconds": "initialDelaySeconds", - "initiator_name": "initiatorName", - "inline_volume_spec": "inlineVolumeSpec", - "insecure_skip_tls_verify": "insecureSkipTLSVerify", - "involved_object": "involvedObject", - "ip_block": "ipBlock", - "ip_family": "ipFamily", - "iscsi_interface": "iscsiInterface", - "job_template": "jobTemplate", - "json_path": "JSONPath", - "kernel_version": "kernelVersion", - "kube_proxy_version": "kubeProxyVersion", - "kubelet_config_key": "kubeletConfigKey", - "kubelet_endpoint": "kubeletEndpoint", - "kubelet_version": "kubeletVersion", - "label_selector": "labelSelector", - "label_selector_path": "labelSelectorPath", - "last_heartbeat_time": "lastHeartbeatTime", - "last_known_good": "lastKnownGood", - "last_observed_time": "lastObservedTime", - "last_probe_time": "lastProbeTime", - "last_scale_time": "lastScaleTime", - "last_schedule_time": "lastScheduleTime", - "last_state": "lastState", - "last_timestamp": "lastTimestamp", - "last_transition_time": "lastTransitionTime", - "last_update_time": "lastUpdateTime", - "lease_duration_seconds": "leaseDurationSeconds", - "lease_transitions": "leaseTransitions", - "limit_response": "limitResponse", - "list_kind": "listKind", - "liveness_probe": "livenessProbe", - "load_balancer": "loadBalancer", - "load_balancer_ip": "loadBalancerIP", - "load_balancer_source_ranges": "loadBalancerSourceRanges", - "machine_id": "machineID", - "managed_fields": "managedFields", - "manual_selector": "manualSelector", - "match_expressions": "matchExpressions", - "match_fields": "matchFields", - "match_label_expressions": "matchLabelExpressions", - "match_labels": "matchLabels", - "match_policy": "matchPolicy", - "matching_precedence": "matchingPrecedence", - "max_items": "maxItems", - "max_length": "maxLength", - "max_limit_request_ratio": "maxLimitRequestRatio", - "max_properties": "maxProperties", - "max_replicas": "maxReplicas", - "max_skew": "maxSkew", - "max_surge": "maxSurge", - "max_unavailable": "maxUnavailable", - "metric_name": "metricName", - "metric_selector": "metricSelector", - "min_available": "minAvailable", - "min_items": "minItems", - "min_length": "minLength", - "min_properties": "minProperties", - "min_ready_seconds": "minReadySeconds", - "min_replicas": "minReplicas", - "mount_options": "mountOptions", - "mount_path": "mountPath", - "mount_propagation": "mountPropagation", - "multiple_of": "multipleOf", - "namespace_selector": "namespaceSelector", - "node_affinity": "nodeAffinity", - "node_id": "nodeID", - "node_info": "nodeInfo", - "node_name": "nodeName", - "node_port": "nodePort", - "node_publish_secret_ref": "nodePublishSecretRef", - "node_selector": "nodeSelector", - "node_selector_terms": "nodeSelectorTerms", - "node_stage_secret_ref": "nodeStageSecretRef", - "nominated_node_name": "nominatedNodeName", - "non_resource_attributes": "nonResourceAttributes", - "non_resource_rules": "nonResourceRules", - "non_resource_ur_ls": "nonResourceURLs", - "not_": "not", - "not_ready_addresses": "notReadyAddresses", - "number_available": "numberAvailable", - "number_misscheduled": "numberMisscheduled", - "number_ready": "numberReady", - "number_unavailable": "numberUnavailable", - "object_selector": "objectSelector", - "observed_generation": "observedGeneration", - "one_of": "oneOf", - "open_apiv3_schema": "openAPIV3Schema", - "operating_system": "operatingSystem", - "orphan_dependents": "orphanDependents", - "os_image": "osImage", - "owner_references": "ownerReferences", - "path_prefix": "pathPrefix", - "path_type": "pathType", - "pattern_properties": "patternProperties", - "pd_id": "pdID", - "pd_name": "pdName", - "period_seconds": "periodSeconds", - "persistent_volume_claim": "persistentVolumeClaim", - "persistent_volume_name": "persistentVolumeName", - "persistent_volume_reclaim_policy": "persistentVolumeReclaimPolicy", - "photon_persistent_disk": "photonPersistentDisk", - "pod_affinity": "podAffinity", - "pod_affinity_term": "podAffinityTerm", - "pod_anti_affinity": "podAntiAffinity", - "pod_cid_rs": "podCIDRs", - "pod_cidr": "podCIDR", - "pod_fixed": "podFixed", - "pod_i_ps": "podIPs", - "pod_info_on_mount": "podInfoOnMount", - "pod_ip": "podIP", - "pod_management_policy": "podManagementPolicy", - "pod_selector": "podSelector", - "policy_types": "policyTypes", - "portworx_volume": "portworxVolume", - "post_start": "postStart", - "pre_stop": "preStop", - "preemption_policy": "preemptionPolicy", - "preferred_during_scheduling_ignored_during_execution": "preferredDuringSchedulingIgnoredDuringExecution", - "preferred_version": "preferredVersion", - "preserve_unknown_fields": "preserveUnknownFields", - "priority_class_name": "priorityClassName", - "priority_level_configuration": "priorityLevelConfiguration", - "proc_mount": "procMount", - "progress_deadline_seconds": "progressDeadlineSeconds", - "propagation_policy": "propagationPolicy", - "protection_domain": "protectionDomain", - "provider_id": "providerID", - "publish_not_ready_addresses": "publishNotReadyAddresses", - "qos_class": "qosClass", - "queue_length_limit": "queueLengthLimit", - "read_only": "readOnly", - "read_only_root_filesystem": "readOnlyRootFilesystem", - "readiness_gates": "readinessGates", - "readiness_probe": "readinessProbe", - "ready_replicas": "readyReplicas", - "reclaim_policy": "reclaimPolicy", - "reinvocation_policy": "reinvocationPolicy", - "remaining_item_count": "remainingItemCount", - "renew_time": "renewTime", - "reporting_component": "reportingComponent", - "reporting_controller": "reportingController", - "reporting_instance": "reportingInstance", - "required_drop_capabilities": "requiredDropCapabilities", - "required_during_scheduling_ignored_during_execution": "requiredDuringSchedulingIgnoredDuringExecution", - "resource_attributes": "resourceAttributes", - "resource_field_ref": "resourceFieldRef", - "resource_names": "resourceNames", - "resource_rules": "resourceRules", - "resource_version": "resourceVersion", - "restart_count": "restartCount", - "restart_policy": "restartPolicy", - "retry_after_seconds": "retryAfterSeconds", - "revision_history_limit": "revisionHistoryLimit", - "role_ref": "roleRef", - "rollback_to": "rollbackTo", - "rolling_update": "rollingUpdate", - "run_as_group": "runAsGroup", - "run_as_non_root": "runAsNonRoot", - "run_as_user": "runAsUser", - "run_as_user_name": "runAsUserName", - "runtime_class": "runtimeClass", - "runtime_class_name": "runtimeClassName", - "runtime_handler": "runtimeHandler", - "scale_down": "scaleDown", - "scale_io": "scaleIO", - "scale_target_ref": "scaleTargetRef", - "scale_up": "scaleUp", - "scheduler_name": "schedulerName", - "scope_name": "scopeName", - "scope_selector": "scopeSelector", - "se_linux": "seLinux", - "se_linux_options": "seLinuxOptions", - "secret_file": "secretFile", - "secret_key_ref": "secretKeyRef", - "secret_name": "secretName", - "secret_namespace": "secretNamespace", - "secret_ref": "secretRef", - "security_context": "securityContext", - "select_policy": "selectPolicy", - "self_link": "selfLink", - "server_address": "serverAddress", - "server_address_by_client_cid_rs": "serverAddressByClientCIDRs", - "service_account": "serviceAccount", - "service_account_name": "serviceAccountName", - "service_account_token": "serviceAccountToken", - "service_name": "serviceName", - "service_port": "servicePort", - "session_affinity": "sessionAffinity", - "session_affinity_config": "sessionAffinityConfig", - "share_name": "shareName", - "share_process_namespace": "shareProcessNamespace", - "short_names": "shortNames", - "side_effects": "sideEffects", - "signer_name": "signerName", - "singular_name": "singularName", - "size_bytes": "sizeBytes", - "size_limit": "sizeLimit", - "spec_replicas_path": "specReplicasPath", - "ssl_enabled": "sslEnabled", - "stabilization_window_seconds": "stabilizationWindowSeconds", - "start_time": "startTime", - "started_at": "startedAt", - "starting_deadline_seconds": "startingDeadlineSeconds", - "startup_probe": "startupProbe", - "status_replicas_path": "statusReplicasPath", - "stdin_once": "stdinOnce", - "storage_class_name": "storageClassName", - "storage_mode": "storageMode", - "storage_policy_id": "storagePolicyID", - "storage_policy_name": "storagePolicyName", - "storage_pool": "storagePool", - "storage_version_hash": "storageVersionHash", - "stored_versions": "storedVersions", - "string_data": "stringData", - "sub_path": "subPath", - "sub_path_expr": "subPathExpr", - "success_threshold": "successThreshold", - "successful_jobs_history_limit": "successfulJobsHistoryLimit", - "supplemental_groups": "supplementalGroups", - "system_uuid": "systemUUID", - "target_average_utilization": "targetAverageUtilization", - "target_average_value": "targetAverageValue", - "target_container_name": "targetContainerName", - "target_cpu_utilization_percentage": "targetCPUUtilizationPercentage", - "target_port": "targetPort", - "target_portal": "targetPortal", - "target_ref": "targetRef", - "target_selector": "targetSelector", - "target_value": "targetValue", - "target_ww_ns": "targetWWNs", - "tcp_socket": "tcpSocket", - "template_generation": "templateGeneration", - "termination_grace_period_seconds": "terminationGracePeriodSeconds", - "termination_message_path": "terminationMessagePath", - "termination_message_policy": "terminationMessagePolicy", - "time_added": "timeAdded", - "timeout_seconds": "timeoutSeconds", - "toleration_seconds": "tolerationSeconds", - "topology_key": "topologyKey", - "topology_keys": "topologyKeys", - "topology_spread_constraints": "topologySpreadConstraints", - "ttl_seconds_after_finished": "ttlSecondsAfterFinished", - "unavailable_replicas": "unavailableReplicas", - "unique_items": "uniqueItems", - "update_revision": "updateRevision", - "update_strategy": "updateStrategy", - "updated_annotations": "updatedAnnotations", - "updated_number_scheduled": "updatedNumberScheduled", - "updated_replicas": "updatedReplicas", - "value_from": "valueFrom", - "version_priority": "versionPriority", - "volume_attributes": "volumeAttributes", - "volume_binding_mode": "volumeBindingMode", - "volume_claim_templates": "volumeClaimTemplates", - "volume_devices": "volumeDevices", - "volume_handle": "volumeHandle", - "volume_id": "volumeID", - "volume_lifecycle_modes": "volumeLifecycleModes", - "volume_mode": "volumeMode", - "volume_mounts": "volumeMounts", - "volume_name": "volumeName", - "volume_namespace": "volumeNamespace", - "volume_path": "volumePath", - "volumes_attached": "volumesAttached", - "volumes_in_use": "volumesInUse", - "vsphere_volume": "vsphereVolume", - "webhook_client_config": "webhookClientConfig", - "when_unsatisfiable": "whenUnsatisfiable", - "windows_options": "windowsOptions", - "working_dir": "workingDir", -} - -_CAMEL_TO_SNAKE_CASE_TABLE = { - "$ref": "_ref", - "$schema": "_schema", - "acceptedNames": "accepted_names", - "accessModes": "access_modes", - "acquireTime": "acquire_time", - "activeDeadlineSeconds": "active_deadline_seconds", - "additionalItems": "additional_items", - "additionalPrinterColumns": "additional_printer_columns", - "additionalProperties": "additional_properties", - "addressType": "address_type", - "admissionReviewVersions": "admission_review_versions", - "aggregationRule": "aggregation_rule", - "allOf": "all_of", - "allowPrivilegeEscalation": "allow_privilege_escalation", - "allowVolumeExpansion": "allow_volume_expansion", - "allowedCapabilities": "allowed_capabilities", - "allowedCSIDrivers": "allowed_csi_drivers", - "allowedFlexVolumes": "allowed_flex_volumes", - "allowedHostPaths": "allowed_host_paths", - "allowedProcMountTypes": "allowed_proc_mount_types", - "allowedRuntimeClassNames": "allowed_runtime_class_names", - "allowedTopologies": "allowed_topologies", - "allowedUnsafeSysctls": "allowed_unsafe_sysctls", - "anyOf": "any_of", - "apiGroup": "api_group", - "apiGroups": "api_groups", - "apiVersion": "api_version", - "apiVersions": "api_versions", - "appProtocol": "app_protocol", - "assuredConcurrencyShares": "assured_concurrency_shares", - "attachError": "attach_error", - "attachRequired": "attach_required", - "attachmentMetadata": "attachment_metadata", - "automountServiceAccountToken": "automount_service_account_token", - "availableReplicas": "available_replicas", - "averageUtilization": "average_utilization", - "averageValue": "average_value", - "awsElasticBlockStore": "aws_elastic_block_store", - "azureDisk": "azure_disk", - "azureFile": "azure_file", - "backoffLimit": "backoff_limit", - "binaryData": "binary_data", - "blockOwnerDeletion": "block_owner_deletion", - "bootID": "boot_id", - "boundObjectRef": "bound_object_ref", - "buildDate": "build_date", - "caBundle": "ca_bundle", - "cachingMode": "caching_mode", - "chapAuthDiscovery": "chap_auth_discovery", - "chapAuthSession": "chap_auth_session", - "claimName": "claim_name", - "claimRef": "claim_ref", - "clientCIDR": "client_cidr", - "clientConfig": "client_config", - "clientIP": "client_ip", - "clusterIP": "cluster_ip", - "clusterName": "cluster_name", - "clusterRoleSelectors": "cluster_role_selectors", - "clusterScope": "cluster_scope", - "collisionCount": "collision_count", - "completionTime": "completion_time", - "concurrencyPolicy": "concurrency_policy", - "conditionType": "condition_type", - "configMap": "config_map", - "configMapKeyRef": "config_map_key_ref", - "configMapRef": "config_map_ref", - "configSource": "config_source", - "containerID": "container_id", - "containerName": "container_name", - "containerPort": "container_port", - "containerRuntimeVersion": "container_runtime_version", - "containerStatuses": "container_statuses", - "continue": "continue_", - "controllerExpandSecretRef": "controller_expand_secret_ref", - "controllerPublishSecretRef": "controller_publish_secret_ref", - "conversionReviewVersions": "conversion_review_versions", - "creationTimestamp": "creation_timestamp", - "currentAverageUtilization": "current_average_utilization", - "currentAverageValue": "current_average_value", - "currentCPUUtilizationPercentage": "current_cpu_utilization_percentage", - "currentHealthy": "current_healthy", - "currentMetrics": "current_metrics", - "currentNumberScheduled": "current_number_scheduled", - "currentReplicas": "current_replicas", - "currentRevision": "current_revision", - "currentValue": "current_value", - "daemonEndpoints": "daemon_endpoints", - "dataSource": "data_source", - "datasetName": "dataset_name", - "datasetUUID": "dataset_uuid", - "defaultAddCapabilities": "default_add_capabilities", - "defaultAllowPrivilegeEscalation": "default_allow_privilege_escalation", - "defaultMode": "default_mode", - "defaultRequest": "default_request", - "defaultRuntimeClassName": "default_runtime_class_name", - "deleteOptions": "delete_options", - "deletionGracePeriodSeconds": "deletion_grace_period_seconds", - "deletionTimestamp": "deletion_timestamp", - "deprecatedCount": "deprecated_count", - "deprecatedFirstTimestamp": "deprecated_first_timestamp", - "deprecatedLastTimestamp": "deprecated_last_timestamp", - "deprecatedSource": "deprecated_source", - "describedObject": "described_object", - "desiredHealthy": "desired_healthy", - "desiredNumberScheduled": "desired_number_scheduled", - "desiredReplicas": "desired_replicas", - "detachError": "detach_error", - "devicePath": "device_path", - "diskName": "disk_name", - "diskURI": "disk_uri", - "disruptedPods": "disrupted_pods", - "disruptionsAllowed": "disruptions_allowed", - "distinguisherMethod": "distinguisher_method", - "dnsConfig": "dns_config", - "dnsPolicy": "dns_policy", - "downwardAPI": "downward_api", - "dryRun": "dry_run", - "emptyDir": "empty_dir", - "enableServiceLinks": "enable_service_links", - "endpointsNamespace": "endpoints_namespace", - "envFrom": "env_from", - "ephemeralContainerStatuses": "ephemeral_container_statuses", - "ephemeralContainers": "ephemeral_containers", - "evaluationError": "evaluation_error", - "eventTime": "event_time", - "except": "except_", - "exclusiveMaximum": "exclusive_maximum", - "exclusiveMinimum": "exclusive_minimum", - "exec": "exec_", - "exitCode": "exit_code", - "expectedPods": "expected_pods", - "expirationSeconds": "expiration_seconds", - "expirationTimestamp": "expiration_timestamp", - "externalDocs": "external_docs", - "externalIPs": "external_i_ps", - "externalID": "external_id", - "externalName": "external_name", - "externalTrafficPolicy": "external_traffic_policy", - "failedJobsHistoryLimit": "failed_jobs_history_limit", - "failurePolicy": "failure_policy", - "failureThreshold": "failure_threshold", - "fieldPath": "field_path", - "fieldRef": "field_ref", - "fieldsType": "fields_type", - "fieldsV1": "fields_v1", - "finishedAt": "finished_at", - "firstTimestamp": "first_timestamp", - "flexVolume": "flex_volume", - "forbiddenSysctls": "forbidden_sysctls", - "from": "from_", - "fsGroup": "fs_group", - "fsGroupChangePolicy": "fs_group_change_policy", - "fsType": "fs_type", - "fullyLabeledReplicas": "fully_labeled_replicas", - "gcePersistentDisk": "gce_persistent_disk", - "generateName": "generate_name", - "gitCommit": "git_commit", - "gitRepo": "git_repo", - "gitTreeState": "git_tree_state", - "gitVersion": "git_version", - "globalDefault": "global_default", - "gmsaCredentialSpec": "gmsa_credential_spec", - "gmsaCredentialSpecName": "gmsa_credential_spec_name", - "goVersion": "go_version", - "gracePeriodSeconds": "grace_period_seconds", - "groupPriorityMinimum": "group_priority_minimum", - "groupVersion": "group_version", - "handSize": "hand_size", - "healthCheckNodePort": "health_check_node_port", - "holderIdentity": "holder_identity", - "hostAliases": "host_aliases", - "hostIP": "host_ip", - "hostIPC": "host_ipc", - "hostNetwork": "host_network", - "hostPath": "host_path", - "hostPID": "host_pid", - "hostPort": "host_port", - "hostPorts": "host_ports", - "httpGet": "http_get", - "httpHeaders": "http_headers", - "imageID": "image_id", - "imagePullPolicy": "image_pull_policy", - "imagePullSecrets": "image_pull_secrets", - "ingressClassName": "ingress_class_name", - "initContainerStatuses": "init_container_statuses", - "initContainers": "init_containers", - "initialDelaySeconds": "initial_delay_seconds", - "initiatorName": "initiator_name", - "inlineVolumeSpec": "inline_volume_spec", - "insecureSkipTLSVerify": "insecure_skip_tls_verify", - "involvedObject": "involved_object", - "ipBlock": "ip_block", - "ipFamily": "ip_family", - "iscsiInterface": "iscsi_interface", - "jobTemplate": "job_template", - "JSONPath": "json_path", - "kernelVersion": "kernel_version", - "kubeProxyVersion": "kube_proxy_version", - "kubeletConfigKey": "kubelet_config_key", - "kubeletEndpoint": "kubelet_endpoint", - "kubeletVersion": "kubelet_version", - "labelSelector": "label_selector", - "labelSelectorPath": "label_selector_path", - "lastHeartbeatTime": "last_heartbeat_time", - "lastKnownGood": "last_known_good", - "lastObservedTime": "last_observed_time", - "lastProbeTime": "last_probe_time", - "lastScaleTime": "last_scale_time", - "lastScheduleTime": "last_schedule_time", - "lastState": "last_state", - "lastTimestamp": "last_timestamp", - "lastTransitionTime": "last_transition_time", - "lastUpdateTime": "last_update_time", - "leaseDurationSeconds": "lease_duration_seconds", - "leaseTransitions": "lease_transitions", - "limitResponse": "limit_response", - "listKind": "list_kind", - "livenessProbe": "liveness_probe", - "loadBalancer": "load_balancer", - "loadBalancerIP": "load_balancer_ip", - "loadBalancerSourceRanges": "load_balancer_source_ranges", - "machineID": "machine_id", - "managedFields": "managed_fields", - "manualSelector": "manual_selector", - "matchExpressions": "match_expressions", - "matchFields": "match_fields", - "matchLabelExpressions": "match_label_expressions", - "matchLabels": "match_labels", - "matchPolicy": "match_policy", - "matchingPrecedence": "matching_precedence", - "maxItems": "max_items", - "maxLength": "max_length", - "maxLimitRequestRatio": "max_limit_request_ratio", - "maxProperties": "max_properties", - "maxReplicas": "max_replicas", - "maxSkew": "max_skew", - "maxSurge": "max_surge", - "maxUnavailable": "max_unavailable", - "metricName": "metric_name", - "metricSelector": "metric_selector", - "minAvailable": "min_available", - "minItems": "min_items", - "minLength": "min_length", - "minProperties": "min_properties", - "minReadySeconds": "min_ready_seconds", - "minReplicas": "min_replicas", - "mountOptions": "mount_options", - "mountPath": "mount_path", - "mountPropagation": "mount_propagation", - "multipleOf": "multiple_of", - "namespaceSelector": "namespace_selector", - "nodeAffinity": "node_affinity", - "nodeID": "node_id", - "nodeInfo": "node_info", - "nodeName": "node_name", - "nodePort": "node_port", - "nodePublishSecretRef": "node_publish_secret_ref", - "nodeSelector": "node_selector", - "nodeSelectorTerms": "node_selector_terms", - "nodeStageSecretRef": "node_stage_secret_ref", - "nominatedNodeName": "nominated_node_name", - "nonResourceAttributes": "non_resource_attributes", - "nonResourceRules": "non_resource_rules", - "nonResourceURLs": "non_resource_ur_ls", - "not": "not_", - "notReadyAddresses": "not_ready_addresses", - "numberAvailable": "number_available", - "numberMisscheduled": "number_misscheduled", - "numberReady": "number_ready", - "numberUnavailable": "number_unavailable", - "objectSelector": "object_selector", - "observedGeneration": "observed_generation", - "oneOf": "one_of", - "openAPIV3Schema": "open_apiv3_schema", - "operatingSystem": "operating_system", - "orphanDependents": "orphan_dependents", - "osImage": "os_image", - "ownerReferences": "owner_references", - "pathPrefix": "path_prefix", - "pathType": "path_type", - "patternProperties": "pattern_properties", - "pdID": "pd_id", - "pdName": "pd_name", - "periodSeconds": "period_seconds", - "persistentVolumeClaim": "persistent_volume_claim", - "persistentVolumeName": "persistent_volume_name", - "persistentVolumeReclaimPolicy": "persistent_volume_reclaim_policy", - "photonPersistentDisk": "photon_persistent_disk", - "podAffinity": "pod_affinity", - "podAffinityTerm": "pod_affinity_term", - "podAntiAffinity": "pod_anti_affinity", - "podCIDRs": "pod_cid_rs", - "podCIDR": "pod_cidr", - "podFixed": "pod_fixed", - "podIPs": "pod_i_ps", - "podInfoOnMount": "pod_info_on_mount", - "podIP": "pod_ip", - "podManagementPolicy": "pod_management_policy", - "podSelector": "pod_selector", - "policyTypes": "policy_types", - "portworxVolume": "portworx_volume", - "postStart": "post_start", - "preStop": "pre_stop", - "preemptionPolicy": "preemption_policy", - "preferredDuringSchedulingIgnoredDuringExecution": "preferred_during_scheduling_ignored_during_execution", - "preferredVersion": "preferred_version", - "preserveUnknownFields": "preserve_unknown_fields", - "priorityClassName": "priority_class_name", - "priorityLevelConfiguration": "priority_level_configuration", - "procMount": "proc_mount", - "progressDeadlineSeconds": "progress_deadline_seconds", - "propagationPolicy": "propagation_policy", - "protectionDomain": "protection_domain", - "providerID": "provider_id", - "publishNotReadyAddresses": "publish_not_ready_addresses", - "qosClass": "qos_class", - "queueLengthLimit": "queue_length_limit", - "readOnly": "read_only", - "readOnlyRootFilesystem": "read_only_root_filesystem", - "readinessGates": "readiness_gates", - "readinessProbe": "readiness_probe", - "readyReplicas": "ready_replicas", - "reclaimPolicy": "reclaim_policy", - "reinvocationPolicy": "reinvocation_policy", - "remainingItemCount": "remaining_item_count", - "renewTime": "renew_time", - "reportingComponent": "reporting_component", - "reportingController": "reporting_controller", - "reportingInstance": "reporting_instance", - "requiredDropCapabilities": "required_drop_capabilities", - "requiredDuringSchedulingIgnoredDuringExecution": "required_during_scheduling_ignored_during_execution", - "resourceAttributes": "resource_attributes", - "resourceFieldRef": "resource_field_ref", - "resourceNames": "resource_names", - "resourceRules": "resource_rules", - "resourceVersion": "resource_version", - "restartCount": "restart_count", - "restartPolicy": "restart_policy", - "retryAfterSeconds": "retry_after_seconds", - "revisionHistoryLimit": "revision_history_limit", - "roleRef": "role_ref", - "rollbackTo": "rollback_to", - "rollingUpdate": "rolling_update", - "runAsGroup": "run_as_group", - "runAsNonRoot": "run_as_non_root", - "runAsUser": "run_as_user", - "runAsUserName": "run_as_user_name", - "runtimeClass": "runtime_class", - "runtimeClassName": "runtime_class_name", - "runtimeHandler": "runtime_handler", - "scaleDown": "scale_down", - "scaleIO": "scale_io", - "scaleTargetRef": "scale_target_ref", - "scaleUp": "scale_up", - "schedulerName": "scheduler_name", - "scopeName": "scope_name", - "scopeSelector": "scope_selector", - "seLinux": "se_linux", - "seLinuxOptions": "se_linux_options", - "secretFile": "secret_file", - "secretKeyRef": "secret_key_ref", - "secretName": "secret_name", - "secretNamespace": "secret_namespace", - "secretRef": "secret_ref", - "securityContext": "security_context", - "selectPolicy": "select_policy", - "selfLink": "self_link", - "serverAddress": "server_address", - "serverAddressByClientCIDRs": "server_address_by_client_cid_rs", - "serviceAccount": "service_account", - "serviceAccountName": "service_account_name", - "serviceAccountToken": "service_account_token", - "serviceName": "service_name", - "servicePort": "service_port", - "sessionAffinity": "session_affinity", - "sessionAffinityConfig": "session_affinity_config", - "shareName": "share_name", - "shareProcessNamespace": "share_process_namespace", - "shortNames": "short_names", - "sideEffects": "side_effects", - "signerName": "signer_name", - "singularName": "singular_name", - "sizeBytes": "size_bytes", - "sizeLimit": "size_limit", - "specReplicasPath": "spec_replicas_path", - "sslEnabled": "ssl_enabled", - "stabilizationWindowSeconds": "stabilization_window_seconds", - "startTime": "start_time", - "startedAt": "started_at", - "startingDeadlineSeconds": "starting_deadline_seconds", - "startupProbe": "startup_probe", - "statusReplicasPath": "status_replicas_path", - "stdinOnce": "stdin_once", - "storageClassName": "storage_class_name", - "storageMode": "storage_mode", - "storagePolicyID": "storage_policy_id", - "storagePolicyName": "storage_policy_name", - "storagePool": "storage_pool", - "storageVersionHash": "storage_version_hash", - "storedVersions": "stored_versions", - "stringData": "string_data", - "subPath": "sub_path", - "subPathExpr": "sub_path_expr", - "successThreshold": "success_threshold", - "successfulJobsHistoryLimit": "successful_jobs_history_limit", - "supplementalGroups": "supplemental_groups", - "systemUUID": "system_uuid", - "targetAverageUtilization": "target_average_utilization", - "targetAverageValue": "target_average_value", - "targetContainerName": "target_container_name", - "targetCPUUtilizationPercentage": "target_cpu_utilization_percentage", - "targetPort": "target_port", - "targetPortal": "target_portal", - "targetRef": "target_ref", - "targetSelector": "target_selector", - "targetValue": "target_value", - "targetWWNs": "target_ww_ns", - "tcpSocket": "tcp_socket", - "templateGeneration": "template_generation", - "terminationGracePeriodSeconds": "termination_grace_period_seconds", - "terminationMessagePath": "termination_message_path", - "terminationMessagePolicy": "termination_message_policy", - "timeAdded": "time_added", - "timeoutSeconds": "timeout_seconds", - "tolerationSeconds": "toleration_seconds", - "topologyKey": "topology_key", - "topologyKeys": "topology_keys", - "topologySpreadConstraints": "topology_spread_constraints", - "ttlSecondsAfterFinished": "ttl_seconds_after_finished", - "unavailableReplicas": "unavailable_replicas", - "uniqueItems": "unique_items", - "updateRevision": "update_revision", - "updateStrategy": "update_strategy", - "updatedAnnotations": "updated_annotations", - "updatedNumberScheduled": "updated_number_scheduled", - "updatedReplicas": "updated_replicas", - "valueFrom": "value_from", - "versionPriority": "version_priority", - "volumeAttributes": "volume_attributes", - "volumeBindingMode": "volume_binding_mode", - "volumeClaimTemplates": "volume_claim_templates", - "volumeDevices": "volume_devices", - "volumeHandle": "volume_handle", - "volumeID": "volume_id", - "volumeLifecycleModes": "volume_lifecycle_modes", - "volumeMode": "volume_mode", - "volumeMounts": "volume_mounts", - "volumeName": "volume_name", - "volumeNamespace": "volume_namespace", - "volumePath": "volume_path", - "volumesAttached": "volumes_attached", - "volumesInUse": "volumes_in_use", - "vsphereVolume": "vsphere_volume", - "webhookClientConfig": "webhook_client_config", - "whenUnsatisfiable": "when_unsatisfiable", - "windowsOptions": "windows_options", - "workingDir": "working_dir", -} diff --git a/sdk/python/pulumi_kubernetes/utilities.py b/sdk/python/pulumi_kubernetes/utilities.py deleted file mode 100644 index 9fe6103f03..0000000000 --- a/sdk/python/pulumi_kubernetes/utilities.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - - -import os -import pkg_resources - -from semver import VersionInfo as SemverVersion -from parver import Version as PEP440Version - - -def get_env(*args): - for v in args: - value = os.getenv(v) - if value is not None: - return value - return None - - -def get_env_bool(*args): - str = get_env(*args) - if str is not None: - # NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what - # Terraform uses internally when parsing boolean values. - if str in ["1", "t", "T", "true", "TRUE", "True"]: - return True - if str in ["0", "f", "F", "false", "FALSE", "False"]: - return False - return None - - -def get_env_int(*args): - str = get_env(*args) - if str is not None: - try: - return int(str) - except: - return None - return None - - -def get_env_float(*args): - str = get_env(*args) - if str is not None: - try: - return float(str) - except: - return None - return None - - -def get_version(): - # __name__ is set to the fully-qualified name of the current module, In our case, it will be - # .utilities. is the module we want to query the version for. - root_package, *rest = __name__.split('.') - - # pkg_resources uses setuptools to inspect the set of installed packages. We use it here to ask - # for the currently installed version of the root package (i.e. us) and get its version. - - # Unfortunately, PEP440 and semver differ slightly in incompatible ways. The Pulumi engine expects - # to receive a valid semver string when receiving requests from the language host, so it's our - # responsibility as the library to convert our own PEP440 version into a valid semver string. - - pep440_version_string = pkg_resources.require(root_package)[0].version - pep440_version = PEP440Version.parse(pep440_version_string) - (major, minor, patch) = pep440_version.release - prerelease = None - if pep440_version.pre_tag == 'a': - prerelease = f"alpha.{pep440_version.pre}" - elif pep440_version.pre_tag == 'b': - prerelease = f"beta.{pep440_version.pre}" - elif pep440_version.pre_tag == 'rc': - prerelease = f"rc.{pep440_version.pre}" - elif pep440_version.dev is not None: - prerelease = f"dev.{pep440_version.dev}" - - # The only significant difference between PEP440 and semver as it pertains to us is that PEP440 has explicit support - # for dev builds, while semver encodes them as "prerelease" versions. In order to bridge between the two, we convert - # our dev build version into a prerelease tag. This matches what all of our other packages do when constructing - # their own semver string. - semver_version = SemverVersion(major=major, minor=minor, patch=patch, prerelease=prerelease) - return str(semver_version) diff --git a/sdk/python/pulumi_kubernetes/version.py b/sdk/python/pulumi_kubernetes/version.py deleted file mode 100644 index f521e4f5d4..0000000000 --- a/sdk/python/pulumi_kubernetes/version.py +++ /dev/null @@ -1,36 +0,0 @@ -import pkg_resources - -from semver import VersionInfo as SemverVersion -from parver import Version as PEP440Version - -def get_version(): - """ - Returns the Semver-formatted version of the package containing this file. - """ - - # __name__ is set to the fully-qualified name of the current module, In our case, it will be - # .utilities. is the module we want to query the version for. - root_package, *rest = __name__.split('.') - # pkg_resources uses setuptools to inspect the set of installed packages. We use it here to ask - # for the currently installed version of the root package (i.e. us) and get its version. - # Unfortunately, PEP440 and semver differ slightly in incompatible ways. The Pulumi engine expects - # to receive a valid semver string when receiving requests from the language host, so it's our - # responsibility as the library to convert our own PEP440 version into a valid semver string. - pep440_version_string = pkg_resources.require(root_package)[0].version - pep440_version = PEP440Version.parse(pep440_version_string) - (major, minor, patch) = pep440_version.release - prerelease = None - if pep440_version.pre_tag == 'a': - prerelease = f"alpha.{pep440_version.pre}" - elif pep440_version.pre_tag == 'b': - prerelease = f"beta.{pep440_version.pre}" - elif pep440_version.pre_tag == 'rc': - prerelease = f"rc.{pep440_version.pre}" - elif pep440_version.dev is not None: - prerelease = f"dev.{pep440_version.dev}" - # The only significant difference between PEP440 and semver as it pertains to us is that PEP440 has explicit support - # for dev builds, while semver encodes them as "prerelease" versions. In order to bridge between the two, we convert - # our dev build version into a prerelease tag. This matches what all of our other packages do when constructing - # their own semver string. - semver_version = SemverVersion(major=major, minor=minor, patch=patch, prerelease=prerelease) - return str(semver_version) diff --git a/sdk/python/pulumi_kubernetes/yaml.py b/sdk/python/pulumi_kubernetes/yaml.py deleted file mode 100644 index 23d289b759..0000000000 --- a/sdk/python/pulumi_kubernetes/yaml.py +++ /dev/null @@ -1,1341 +0,0 @@ -# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import json -from copy import copy -from inspect import getargspec -from typing import Callable, Dict, List, Optional - -import pulumi.runtime -import requests -from pulumi_kubernetes.apiextensions import CustomResource -from . import tables -from .utilities import get_version - - -class ConfigFile(pulumi.ComponentResource): - """ - ConfigFile creates a set of Kubernetes resources from a Kubernetes YAML file. - """ - - resources: pulumi.Output[dict] - """ - Kubernetes resources contained in this ConfigFile. - """ - - def __init__(self, name, file_id, opts=None, transformations=None, resource_prefix=None): - """ - :param str name: A name for a resource. - :param str file_id: Path or a URL that uniquely identifies a file. - :param Optional[pulumi.ResourceOptions] opts: A bag of optional settings that control a resource's behavior. - :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: A set of - transformations to apply to Kubernetes resource definitions before registering with engine. - :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. - Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". - """ - if not name: - raise TypeError('Missing resource name argument (for URN creation)') - if not isinstance(name, str): - raise TypeError('Expected resource name to be a string') - if opts and not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - - __props__ = dict() - - if resource_prefix: - name = f"{resource_prefix}-{name}" - super(ConfigFile, self).__init__( - "kubernetes:yaml:ConfigFile", - name, - __props__, - opts) - - if file_id.startswith('http://') or file_id.startswith('https://'): - text = _read_url(file_id) - else: - text = _read_file(file_id) - - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(parent=self)) - - # Rather than using the default provider for the following invoke call, use the version specified - # in package.json. - invoke_opts = pulumi.InvokeOptions(version=get_version()) - - __ret__ = pulumi.runtime.invoke('kubernetes:yaml:decode', {'text': text}, invoke_opts).value['result'] - - # Note: Unlike NodeJS, Python requires that we "pull" on our futures in order to get them scheduled for - # execution. In order to do this, we leverage the engine's RegisterResourceOutputs to wait for the - # resolution of all resources that this YAML document created. - self.resources = _parse_yaml_document(__ret__, opts, transformations, resource_prefix) - self.register_outputs({"resources": self.resources}) - - def translate_output_property(self, prop: str) -> str: - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop: str) -> str: - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop - - def get_resource(self, group_version_kind, name, namespace=None) -> pulumi.Output[pulumi.CustomResource]: - """ - get_resource returns a resource defined by a built-in Kubernetes group/version/kind and - name. For example: `get_resource("apps/v1/Deployment", "nginx")` - - :param str group_version_kind: Group/Version/Kind of the resource, e.g., `apps/v1/Deployment` - :param str name: Name of the resource to retrieve - :param str namespace: Optional namespace of the resource to retrieve - """ - - # `id` will either be `${name}` or `${namespace}/${name}`. - id = pulumi.Output.from_input(name) - if namespace is not None: - id = pulumi.Output.concat(namespace, '/', name) - - resource_id = id.apply(lambda x: f'{group_version_kind}:{x}') - return resource_id.apply(lambda x: self.resources[x]) - - -def _read_url(url: str) -> str: - response = requests.get(url) - response.raise_for_status() - - return response.text - - -def _read_file(path: str) -> str: - with open(path, 'r') as file: - data = file.read() - - return data - - -def _build_resources_dict(objs: List[pulumi.Output]) -> Dict[pulumi.Output, pulumi.Output]: - return {key: value for key, value in objs} - - -def _parse_yaml_document( - objects, opts: Optional[pulumi.ResourceOptions] = None, - transformations: Optional[List[Callable]] = None, - resource_prefix: Optional[str] = None -) -> pulumi.Output: - objs = [] - for obj in objects: - file_objects = _parse_yaml_object(obj, opts, transformations, resource_prefix) - for file_object in file_objects: - objs.append(file_object) - - return pulumi.Output.all(*objs).apply(_build_resources_dict) - - -def _parse_yaml_object( - obj, opts: Optional[pulumi.ResourceOptions] = None, - transformations: Optional[List[Callable]] = None, - resource_prefix: Optional[str] = None -) -> [pulumi.Output]: - """ - _parse_yaml_object parses a YAML manifest object, and creates the specified resources. - """ - - if not obj: - return [] - - # Create a copy of opts to pass into potentially mutating transforms that will be applied to this resource. - if opts is not None: - opts = copy(opts) - else: - opts = {} - - # Allow users to change API objects before any validation. - if transformations is not None: - for t in transformations: - if len(getargspec(t)[0]) == 2: - t(obj, opts) - else: - t(obj) - - if "kind" not in obj or "apiVersion" not in obj: - raise Exception("Kubernetes resources require a kind and apiVersion: {}".format(json.dumps(obj))) - - api_version = obj["apiVersion"] - kind = obj["kind"] - - # Don't pass these items as kwargs to the resource classes. - del obj['apiVersion'] - del obj['kind'] - - if kind.endswith("List"): - objs = [] - if "items" in obj: - for item in obj["items"]: - objs += _parse_yaml_object(item, opts, transformations, resource_prefix) - return objs - - if "metadata" not in obj or "name" not in obj["metadata"]: - raise Exception("YAML object does not have a .metadata.name: {}/{} {}".format( - api_version, kind, json.dumps(obj))) - - # Convert obj keys to Python casing - for key in list(obj.keys()): - new_key = tables._CAMEL_TO_SNAKE_CASE_TABLE.get(key) or key - if new_key != key: - obj[new_key] = obj.pop(key) - - metadata = obj["metadata"] - spec = obj.get("spec") - identifier: pulumi.Output = pulumi.Output.from_input(metadata["name"]) - if "namespace" in metadata: - identifier = pulumi.Output.from_input(metadata).apply( - lambda metadata: f"{metadata['namespace']}/{metadata['name']}") - if resource_prefix: - identifier = pulumi.Output.from_input(identifier).apply( - lambda identifier: f"{resource_prefix}-{identifier}") - - gvk = f"{api_version}/{kind}" - if gvk == "admissionregistration.k8s.io/v1/MutatingWebhookConfiguration": - # Import locally to avoid name collisions. - from pulumi_kubernetes.admissionregistration.v1 import MutatingWebhookConfiguration - return [identifier.apply( - lambda x: (f"admissionregistration.k8s.io/v1/MutatingWebhookConfiguration:{x}", - MutatingWebhookConfiguration(f"{x}", opts, **obj)))] - if gvk == "admissionregistration.k8s.io/v1/MutatingWebhookConfigurationList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.admissionregistration.v1 import MutatingWebhookConfigurationList - return [identifier.apply( - lambda x: (f"admissionregistration.k8s.io/v1/MutatingWebhookConfigurationList:{x}", - MutatingWebhookConfigurationList(f"{x}", opts, **obj)))] - if gvk == "admissionregistration.k8s.io/v1/ValidatingWebhookConfiguration": - # Import locally to avoid name collisions. - from pulumi_kubernetes.admissionregistration.v1 import ValidatingWebhookConfiguration - return [identifier.apply( - lambda x: (f"admissionregistration.k8s.io/v1/ValidatingWebhookConfiguration:{x}", - ValidatingWebhookConfiguration(f"{x}", opts, **obj)))] - if gvk == "admissionregistration.k8s.io/v1/ValidatingWebhookConfigurationList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.admissionregistration.v1 import ValidatingWebhookConfigurationList - return [identifier.apply( - lambda x: (f"admissionregistration.k8s.io/v1/ValidatingWebhookConfigurationList:{x}", - ValidatingWebhookConfigurationList(f"{x}", opts, **obj)))] - if gvk == "admissionregistration.k8s.io/v1beta1/MutatingWebhookConfiguration": - # Import locally to avoid name collisions. - from pulumi_kubernetes.admissionregistration.v1beta1 import MutatingWebhookConfiguration - return [identifier.apply( - lambda x: (f"admissionregistration.k8s.io/v1beta1/MutatingWebhookConfiguration:{x}", - MutatingWebhookConfiguration(f"{x}", opts, **obj)))] - if gvk == "admissionregistration.k8s.io/v1beta1/MutatingWebhookConfigurationList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.admissionregistration.v1beta1 import MutatingWebhookConfigurationList - return [identifier.apply( - lambda x: (f"admissionregistration.k8s.io/v1beta1/MutatingWebhookConfigurationList:{x}", - MutatingWebhookConfigurationList(f"{x}", opts, **obj)))] - if gvk == "admissionregistration.k8s.io/v1beta1/ValidatingWebhookConfiguration": - # Import locally to avoid name collisions. - from pulumi_kubernetes.admissionregistration.v1beta1 import ValidatingWebhookConfiguration - return [identifier.apply( - lambda x: (f"admissionregistration.k8s.io/v1beta1/ValidatingWebhookConfiguration:{x}", - ValidatingWebhookConfiguration(f"{x}", opts, **obj)))] - if gvk == "admissionregistration.k8s.io/v1beta1/ValidatingWebhookConfigurationList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.admissionregistration.v1beta1 import ValidatingWebhookConfigurationList - return [identifier.apply( - lambda x: (f"admissionregistration.k8s.io/v1beta1/ValidatingWebhookConfigurationList:{x}", - ValidatingWebhookConfigurationList(f"{x}", opts, **obj)))] - if gvk == "apiextensions.k8s.io/v1/CustomResourceDefinition": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apiextensions.v1 import CustomResourceDefinition - return [identifier.apply( - lambda x: (f"apiextensions.k8s.io/v1/CustomResourceDefinition:{x}", - CustomResourceDefinition(f"{x}", opts, **obj)))] - if gvk == "apiextensions.k8s.io/v1/CustomResourceDefinitionList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apiextensions.v1 import CustomResourceDefinitionList - return [identifier.apply( - lambda x: (f"apiextensions.k8s.io/v1/CustomResourceDefinitionList:{x}", - CustomResourceDefinitionList(f"{x}", opts, **obj)))] - if gvk == "apiextensions.k8s.io/v1beta1/CustomResourceDefinition": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apiextensions.v1beta1 import CustomResourceDefinition - return [identifier.apply( - lambda x: (f"apiextensions.k8s.io/v1beta1/CustomResourceDefinition:{x}", - CustomResourceDefinition(f"{x}", opts, **obj)))] - if gvk == "apiextensions.k8s.io/v1beta1/CustomResourceDefinitionList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apiextensions.v1beta1 import CustomResourceDefinitionList - return [identifier.apply( - lambda x: (f"apiextensions.k8s.io/v1beta1/CustomResourceDefinitionList:{x}", - CustomResourceDefinitionList(f"{x}", opts, **obj)))] - if gvk == "apiregistration.k8s.io/v1/APIService": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apiregistration.v1 import APIService - return [identifier.apply( - lambda x: (f"apiregistration.k8s.io/v1/APIService:{x}", - APIService(f"{x}", opts, **obj)))] - if gvk == "apiregistration.k8s.io/v1/APIServiceList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apiregistration.v1 import APIServiceList - return [identifier.apply( - lambda x: (f"apiregistration.k8s.io/v1/APIServiceList:{x}", - APIServiceList(f"{x}", opts, **obj)))] - if gvk == "apiregistration.k8s.io/v1beta1/APIService": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apiregistration.v1beta1 import APIService - return [identifier.apply( - lambda x: (f"apiregistration.k8s.io/v1beta1/APIService:{x}", - APIService(f"{x}", opts, **obj)))] - if gvk == "apiregistration.k8s.io/v1beta1/APIServiceList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apiregistration.v1beta1 import APIServiceList - return [identifier.apply( - lambda x: (f"apiregistration.k8s.io/v1beta1/APIServiceList:{x}", - APIServiceList(f"{x}", opts, **obj)))] - if gvk == "apps/v1/ControllerRevision": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1 import ControllerRevision - return [identifier.apply( - lambda x: (f"apps/v1/ControllerRevision:{x}", - ControllerRevision(f"{x}", opts, **obj)))] - if gvk == "apps/v1/ControllerRevisionList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1 import ControllerRevisionList - return [identifier.apply( - lambda x: (f"apps/v1/ControllerRevisionList:{x}", - ControllerRevisionList(f"{x}", opts, **obj)))] - if gvk == "apps/v1/DaemonSet": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1 import DaemonSet - return [identifier.apply( - lambda x: (f"apps/v1/DaemonSet:{x}", - DaemonSet(f"{x}", opts, **obj)))] - if gvk == "apps/v1/DaemonSetList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1 import DaemonSetList - return [identifier.apply( - lambda x: (f"apps/v1/DaemonSetList:{x}", - DaemonSetList(f"{x}", opts, **obj)))] - if gvk == "apps/v1/Deployment": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1 import Deployment - return [identifier.apply( - lambda x: (f"apps/v1/Deployment:{x}", - Deployment(f"{x}", opts, **obj)))] - if gvk == "apps/v1/DeploymentList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1 import DeploymentList - return [identifier.apply( - lambda x: (f"apps/v1/DeploymentList:{x}", - DeploymentList(f"{x}", opts, **obj)))] - if gvk == "apps/v1/ReplicaSet": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1 import ReplicaSet - return [identifier.apply( - lambda x: (f"apps/v1/ReplicaSet:{x}", - ReplicaSet(f"{x}", opts, **obj)))] - if gvk == "apps/v1/ReplicaSetList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1 import ReplicaSetList - return [identifier.apply( - lambda x: (f"apps/v1/ReplicaSetList:{x}", - ReplicaSetList(f"{x}", opts, **obj)))] - if gvk == "apps/v1/StatefulSet": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1 import StatefulSet - return [identifier.apply( - lambda x: (f"apps/v1/StatefulSet:{x}", - StatefulSet(f"{x}", opts, **obj)))] - if gvk == "apps/v1/StatefulSetList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1 import StatefulSetList - return [identifier.apply( - lambda x: (f"apps/v1/StatefulSetList:{x}", - StatefulSetList(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta1/ControllerRevision": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta1 import ControllerRevision - return [identifier.apply( - lambda x: (f"apps/v1beta1/ControllerRevision:{x}", - ControllerRevision(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta1/ControllerRevisionList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta1 import ControllerRevisionList - return [identifier.apply( - lambda x: (f"apps/v1beta1/ControllerRevisionList:{x}", - ControllerRevisionList(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta1/Deployment": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta1 import Deployment - return [identifier.apply( - lambda x: (f"apps/v1beta1/Deployment:{x}", - Deployment(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta1/DeploymentList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta1 import DeploymentList - return [identifier.apply( - lambda x: (f"apps/v1beta1/DeploymentList:{x}", - DeploymentList(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta1/StatefulSet": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta1 import StatefulSet - return [identifier.apply( - lambda x: (f"apps/v1beta1/StatefulSet:{x}", - StatefulSet(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta1/StatefulSetList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta1 import StatefulSetList - return [identifier.apply( - lambda x: (f"apps/v1beta1/StatefulSetList:{x}", - StatefulSetList(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta2/ControllerRevision": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta2 import ControllerRevision - return [identifier.apply( - lambda x: (f"apps/v1beta2/ControllerRevision:{x}", - ControllerRevision(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta2/ControllerRevisionList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta2 import ControllerRevisionList - return [identifier.apply( - lambda x: (f"apps/v1beta2/ControllerRevisionList:{x}", - ControllerRevisionList(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta2/DaemonSet": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta2 import DaemonSet - return [identifier.apply( - lambda x: (f"apps/v1beta2/DaemonSet:{x}", - DaemonSet(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta2/DaemonSetList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta2 import DaemonSetList - return [identifier.apply( - lambda x: (f"apps/v1beta2/DaemonSetList:{x}", - DaemonSetList(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta2/Deployment": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta2 import Deployment - return [identifier.apply( - lambda x: (f"apps/v1beta2/Deployment:{x}", - Deployment(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta2/DeploymentList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta2 import DeploymentList - return [identifier.apply( - lambda x: (f"apps/v1beta2/DeploymentList:{x}", - DeploymentList(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta2/ReplicaSet": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta2 import ReplicaSet - return [identifier.apply( - lambda x: (f"apps/v1beta2/ReplicaSet:{x}", - ReplicaSet(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta2/ReplicaSetList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta2 import ReplicaSetList - return [identifier.apply( - lambda x: (f"apps/v1beta2/ReplicaSetList:{x}", - ReplicaSetList(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta2/StatefulSet": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta2 import StatefulSet - return [identifier.apply( - lambda x: (f"apps/v1beta2/StatefulSet:{x}", - StatefulSet(f"{x}", opts, **obj)))] - if gvk == "apps/v1beta2/StatefulSetList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.apps.v1beta2 import StatefulSetList - return [identifier.apply( - lambda x: (f"apps/v1beta2/StatefulSetList:{x}", - StatefulSetList(f"{x}", opts, **obj)))] - if gvk == "auditregistration.k8s.io/v1alpha1/AuditSink": - # Import locally to avoid name collisions. - from pulumi_kubernetes.auditregistration.v1alpha1 import AuditSink - return [identifier.apply( - lambda x: (f"auditregistration.k8s.io/v1alpha1/AuditSink:{x}", - AuditSink(f"{x}", opts, **obj)))] - if gvk == "auditregistration.k8s.io/v1alpha1/AuditSinkList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.auditregistration.v1alpha1 import AuditSinkList - return [identifier.apply( - lambda x: (f"auditregistration.k8s.io/v1alpha1/AuditSinkList:{x}", - AuditSinkList(f"{x}", opts, **obj)))] - if gvk == "authentication.k8s.io/v1/TokenRequest": - # Import locally to avoid name collisions. - from pulumi_kubernetes.authentication.v1 import TokenRequest - return [identifier.apply( - lambda x: (f"authentication.k8s.io/v1/TokenRequest:{x}", - TokenRequest(f"{x}", opts, **obj)))] - if gvk == "authentication.k8s.io/v1/TokenReview": - # Import locally to avoid name collisions. - from pulumi_kubernetes.authentication.v1 import TokenReview - return [identifier.apply( - lambda x: (f"authentication.k8s.io/v1/TokenReview:{x}", - TokenReview(f"{x}", opts, **obj)))] - if gvk == "authentication.k8s.io/v1beta1/TokenReview": - # Import locally to avoid name collisions. - from pulumi_kubernetes.authentication.v1beta1 import TokenReview - return [identifier.apply( - lambda x: (f"authentication.k8s.io/v1beta1/TokenReview:{x}", - TokenReview(f"{x}", opts, **obj)))] - if gvk == "authorization.k8s.io/v1/LocalSubjectAccessReview": - # Import locally to avoid name collisions. - from pulumi_kubernetes.authorization.v1 import LocalSubjectAccessReview - return [identifier.apply( - lambda x: (f"authorization.k8s.io/v1/LocalSubjectAccessReview:{x}", - LocalSubjectAccessReview(f"{x}", opts, **obj)))] - if gvk == "authorization.k8s.io/v1/SelfSubjectAccessReview": - # Import locally to avoid name collisions. - from pulumi_kubernetes.authorization.v1 import SelfSubjectAccessReview - return [identifier.apply( - lambda x: (f"authorization.k8s.io/v1/SelfSubjectAccessReview:{x}", - SelfSubjectAccessReview(f"{x}", opts, **obj)))] - if gvk == "authorization.k8s.io/v1/SelfSubjectRulesReview": - # Import locally to avoid name collisions. - from pulumi_kubernetes.authorization.v1 import SelfSubjectRulesReview - return [identifier.apply( - lambda x: (f"authorization.k8s.io/v1/SelfSubjectRulesReview:{x}", - SelfSubjectRulesReview(f"{x}", opts, **obj)))] - if gvk == "authorization.k8s.io/v1/SubjectAccessReview": - # Import locally to avoid name collisions. - from pulumi_kubernetes.authorization.v1 import SubjectAccessReview - return [identifier.apply( - lambda x: (f"authorization.k8s.io/v1/SubjectAccessReview:{x}", - SubjectAccessReview(f"{x}", opts, **obj)))] - if gvk == "authorization.k8s.io/v1beta1/LocalSubjectAccessReview": - # Import locally to avoid name collisions. - from pulumi_kubernetes.authorization.v1beta1 import LocalSubjectAccessReview - return [identifier.apply( - lambda x: (f"authorization.k8s.io/v1beta1/LocalSubjectAccessReview:{x}", - LocalSubjectAccessReview(f"{x}", opts, **obj)))] - if gvk == "authorization.k8s.io/v1beta1/SelfSubjectAccessReview": - # Import locally to avoid name collisions. - from pulumi_kubernetes.authorization.v1beta1 import SelfSubjectAccessReview - return [identifier.apply( - lambda x: (f"authorization.k8s.io/v1beta1/SelfSubjectAccessReview:{x}", - SelfSubjectAccessReview(f"{x}", opts, **obj)))] - if gvk == "authorization.k8s.io/v1beta1/SelfSubjectRulesReview": - # Import locally to avoid name collisions. - from pulumi_kubernetes.authorization.v1beta1 import SelfSubjectRulesReview - return [identifier.apply( - lambda x: (f"authorization.k8s.io/v1beta1/SelfSubjectRulesReview:{x}", - SelfSubjectRulesReview(f"{x}", opts, **obj)))] - if gvk == "authorization.k8s.io/v1beta1/SubjectAccessReview": - # Import locally to avoid name collisions. - from pulumi_kubernetes.authorization.v1beta1 import SubjectAccessReview - return [identifier.apply( - lambda x: (f"authorization.k8s.io/v1beta1/SubjectAccessReview:{x}", - SubjectAccessReview(f"{x}", opts, **obj)))] - if gvk == "autoscaling/v1/HorizontalPodAutoscaler": - # Import locally to avoid name collisions. - from pulumi_kubernetes.autoscaling.v1 import HorizontalPodAutoscaler - return [identifier.apply( - lambda x: (f"autoscaling/v1/HorizontalPodAutoscaler:{x}", - HorizontalPodAutoscaler(f"{x}", opts, **obj)))] - if gvk == "autoscaling/v1/HorizontalPodAutoscalerList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.autoscaling.v1 import HorizontalPodAutoscalerList - return [identifier.apply( - lambda x: (f"autoscaling/v1/HorizontalPodAutoscalerList:{x}", - HorizontalPodAutoscalerList(f"{x}", opts, **obj)))] - if gvk == "autoscaling/v2beta1/HorizontalPodAutoscaler": - # Import locally to avoid name collisions. - from pulumi_kubernetes.autoscaling.v2beta1 import HorizontalPodAutoscaler - return [identifier.apply( - lambda x: (f"autoscaling/v2beta1/HorizontalPodAutoscaler:{x}", - HorizontalPodAutoscaler(f"{x}", opts, **obj)))] - if gvk == "autoscaling/v2beta1/HorizontalPodAutoscalerList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.autoscaling.v2beta1 import HorizontalPodAutoscalerList - return [identifier.apply( - lambda x: (f"autoscaling/v2beta1/HorizontalPodAutoscalerList:{x}", - HorizontalPodAutoscalerList(f"{x}", opts, **obj)))] - if gvk == "autoscaling/v2beta2/HorizontalPodAutoscaler": - # Import locally to avoid name collisions. - from pulumi_kubernetes.autoscaling.v2beta2 import HorizontalPodAutoscaler - return [identifier.apply( - lambda x: (f"autoscaling/v2beta2/HorizontalPodAutoscaler:{x}", - HorizontalPodAutoscaler(f"{x}", opts, **obj)))] - if gvk == "autoscaling/v2beta2/HorizontalPodAutoscalerList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.autoscaling.v2beta2 import HorizontalPodAutoscalerList - return [identifier.apply( - lambda x: (f"autoscaling/v2beta2/HorizontalPodAutoscalerList:{x}", - HorizontalPodAutoscalerList(f"{x}", opts, **obj)))] - if gvk == "batch/v1/Job": - # Import locally to avoid name collisions. - from pulumi_kubernetes.batch.v1 import Job - return [identifier.apply( - lambda x: (f"batch/v1/Job:{x}", - Job(f"{x}", opts, **obj)))] - if gvk == "batch/v1/JobList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.batch.v1 import JobList - return [identifier.apply( - lambda x: (f"batch/v1/JobList:{x}", - JobList(f"{x}", opts, **obj)))] - if gvk == "batch/v1beta1/CronJob": - # Import locally to avoid name collisions. - from pulumi_kubernetes.batch.v1beta1 import CronJob - return [identifier.apply( - lambda x: (f"batch/v1beta1/CronJob:{x}", - CronJob(f"{x}", opts, **obj)))] - if gvk == "batch/v1beta1/CronJobList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.batch.v1beta1 import CronJobList - return [identifier.apply( - lambda x: (f"batch/v1beta1/CronJobList:{x}", - CronJobList(f"{x}", opts, **obj)))] - if gvk == "batch/v2alpha1/CronJob": - # Import locally to avoid name collisions. - from pulumi_kubernetes.batch.v2alpha1 import CronJob - return [identifier.apply( - lambda x: (f"batch/v2alpha1/CronJob:{x}", - CronJob(f"{x}", opts, **obj)))] - if gvk == "batch/v2alpha1/CronJobList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.batch.v2alpha1 import CronJobList - return [identifier.apply( - lambda x: (f"batch/v2alpha1/CronJobList:{x}", - CronJobList(f"{x}", opts, **obj)))] - if gvk == "certificates.k8s.io/v1beta1/CertificateSigningRequest": - # Import locally to avoid name collisions. - from pulumi_kubernetes.certificates.v1beta1 import CertificateSigningRequest - return [identifier.apply( - lambda x: (f"certificates.k8s.io/v1beta1/CertificateSigningRequest:{x}", - CertificateSigningRequest(f"{x}", opts, **obj)))] - if gvk == "certificates.k8s.io/v1beta1/CertificateSigningRequestList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.certificates.v1beta1 import CertificateSigningRequestList - return [identifier.apply( - lambda x: (f"certificates.k8s.io/v1beta1/CertificateSigningRequestList:{x}", - CertificateSigningRequestList(f"{x}", opts, **obj)))] - if gvk == "coordination.k8s.io/v1/Lease": - # Import locally to avoid name collisions. - from pulumi_kubernetes.coordination.v1 import Lease - return [identifier.apply( - lambda x: (f"coordination.k8s.io/v1/Lease:{x}", - Lease(f"{x}", opts, **obj)))] - if gvk == "coordination.k8s.io/v1/LeaseList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.coordination.v1 import LeaseList - return [identifier.apply( - lambda x: (f"coordination.k8s.io/v1/LeaseList:{x}", - LeaseList(f"{x}", opts, **obj)))] - if gvk == "coordination.k8s.io/v1beta1/Lease": - # Import locally to avoid name collisions. - from pulumi_kubernetes.coordination.v1beta1 import Lease - return [identifier.apply( - lambda x: (f"coordination.k8s.io/v1beta1/Lease:{x}", - Lease(f"{x}", opts, **obj)))] - if gvk == "coordination.k8s.io/v1beta1/LeaseList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.coordination.v1beta1 import LeaseList - return [identifier.apply( - lambda x: (f"coordination.k8s.io/v1beta1/LeaseList:{x}", - LeaseList(f"{x}", opts, **obj)))] - if gvk == "v1/Binding": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import Binding - return [identifier.apply( - lambda x: (f"v1/Binding:{x}", - Binding(f"{x}", opts, **obj)))] - if gvk == "v1/ComponentStatus": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import ComponentStatus - return [identifier.apply( - lambda x: (f"v1/ComponentStatus:{x}", - ComponentStatus(f"{x}", opts, **obj)))] - if gvk == "v1/ComponentStatusList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import ComponentStatusList - return [identifier.apply( - lambda x: (f"v1/ComponentStatusList:{x}", - ComponentStatusList(f"{x}", opts, **obj)))] - if gvk == "v1/ConfigMap": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import ConfigMap - return [identifier.apply( - lambda x: (f"v1/ConfigMap:{x}", - ConfigMap(f"{x}", opts, **obj)))] - if gvk == "v1/ConfigMapList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import ConfigMapList - return [identifier.apply( - lambda x: (f"v1/ConfigMapList:{x}", - ConfigMapList(f"{x}", opts, **obj)))] - if gvk == "v1/Endpoints": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import Endpoints - return [identifier.apply( - lambda x: (f"v1/Endpoints:{x}", - Endpoints(f"{x}", opts, **obj)))] - if gvk == "v1/EndpointsList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import EndpointsList - return [identifier.apply( - lambda x: (f"v1/EndpointsList:{x}", - EndpointsList(f"{x}", opts, **obj)))] - if gvk == "v1/Event": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import Event - return [identifier.apply( - lambda x: (f"v1/Event:{x}", - Event(f"{x}", opts, **obj)))] - if gvk == "v1/EventList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import EventList - return [identifier.apply( - lambda x: (f"v1/EventList:{x}", - EventList(f"{x}", opts, **obj)))] - if gvk == "v1/LimitRange": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import LimitRange - return [identifier.apply( - lambda x: (f"v1/LimitRange:{x}", - LimitRange(f"{x}", opts, **obj)))] - if gvk == "v1/LimitRangeList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import LimitRangeList - return [identifier.apply( - lambda x: (f"v1/LimitRangeList:{x}", - LimitRangeList(f"{x}", opts, **obj)))] - if gvk == "v1/Namespace": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import Namespace - return [identifier.apply( - lambda x: (f"v1/Namespace:{x}", - Namespace(f"{x}", opts, **obj)))] - if gvk == "v1/NamespaceList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import NamespaceList - return [identifier.apply( - lambda x: (f"v1/NamespaceList:{x}", - NamespaceList(f"{x}", opts, **obj)))] - if gvk == "v1/Node": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import Node - return [identifier.apply( - lambda x: (f"v1/Node:{x}", - Node(f"{x}", opts, **obj)))] - if gvk == "v1/NodeList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import NodeList - return [identifier.apply( - lambda x: (f"v1/NodeList:{x}", - NodeList(f"{x}", opts, **obj)))] - if gvk == "v1/PersistentVolume": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import PersistentVolume - return [identifier.apply( - lambda x: (f"v1/PersistentVolume:{x}", - PersistentVolume(f"{x}", opts, **obj)))] - if gvk == "v1/PersistentVolumeClaim": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import PersistentVolumeClaim - return [identifier.apply( - lambda x: (f"v1/PersistentVolumeClaim:{x}", - PersistentVolumeClaim(f"{x}", opts, **obj)))] - if gvk == "v1/PersistentVolumeClaimList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import PersistentVolumeClaimList - return [identifier.apply( - lambda x: (f"v1/PersistentVolumeClaimList:{x}", - PersistentVolumeClaimList(f"{x}", opts, **obj)))] - if gvk == "v1/PersistentVolumeList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import PersistentVolumeList - return [identifier.apply( - lambda x: (f"v1/PersistentVolumeList:{x}", - PersistentVolumeList(f"{x}", opts, **obj)))] - if gvk == "v1/Pod": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import Pod - return [identifier.apply( - lambda x: (f"v1/Pod:{x}", - Pod(f"{x}", opts, **obj)))] - if gvk == "v1/PodList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import PodList - return [identifier.apply( - lambda x: (f"v1/PodList:{x}", - PodList(f"{x}", opts, **obj)))] - if gvk == "v1/PodTemplate": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import PodTemplate - return [identifier.apply( - lambda x: (f"v1/PodTemplate:{x}", - PodTemplate(f"{x}", opts, **obj)))] - if gvk == "v1/PodTemplateList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import PodTemplateList - return [identifier.apply( - lambda x: (f"v1/PodTemplateList:{x}", - PodTemplateList(f"{x}", opts, **obj)))] - if gvk == "v1/ReplicationController": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import ReplicationController - return [identifier.apply( - lambda x: (f"v1/ReplicationController:{x}", - ReplicationController(f"{x}", opts, **obj)))] - if gvk == "v1/ReplicationControllerList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import ReplicationControllerList - return [identifier.apply( - lambda x: (f"v1/ReplicationControllerList:{x}", - ReplicationControllerList(f"{x}", opts, **obj)))] - if gvk == "v1/ResourceQuota": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import ResourceQuota - return [identifier.apply( - lambda x: (f"v1/ResourceQuota:{x}", - ResourceQuota(f"{x}", opts, **obj)))] - if gvk == "v1/ResourceQuotaList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import ResourceQuotaList - return [identifier.apply( - lambda x: (f"v1/ResourceQuotaList:{x}", - ResourceQuotaList(f"{x}", opts, **obj)))] - if gvk == "v1/Secret": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import Secret - return [identifier.apply( - lambda x: (f"v1/Secret:{x}", - Secret(f"{x}", opts, **obj)))] - if gvk == "v1/SecretList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import SecretList - return [identifier.apply( - lambda x: (f"v1/SecretList:{x}", - SecretList(f"{x}", opts, **obj)))] - if gvk == "v1/Service": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import Service - return [identifier.apply( - lambda x: (f"v1/Service:{x}", - Service(f"{x}", opts, **obj)))] - if gvk == "v1/ServiceAccount": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import ServiceAccount - return [identifier.apply( - lambda x: (f"v1/ServiceAccount:{x}", - ServiceAccount(f"{x}", opts, **obj)))] - if gvk == "v1/ServiceAccountList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import ServiceAccountList - return [identifier.apply( - lambda x: (f"v1/ServiceAccountList:{x}", - ServiceAccountList(f"{x}", opts, **obj)))] - if gvk == "v1/ServiceList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import ServiceList - return [identifier.apply( - lambda x: (f"v1/ServiceList:{x}", - ServiceList(f"{x}", opts, **obj)))] - if gvk == "discovery.k8s.io/v1beta1/EndpointSlice": - # Import locally to avoid name collisions. - from pulumi_kubernetes.discovery.v1beta1 import EndpointSlice - return [identifier.apply( - lambda x: (f"discovery.k8s.io/v1beta1/EndpointSlice:{x}", - EndpointSlice(f"{x}", opts, **obj)))] - if gvk == "discovery.k8s.io/v1beta1/EndpointSliceList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.discovery.v1beta1 import EndpointSliceList - return [identifier.apply( - lambda x: (f"discovery.k8s.io/v1beta1/EndpointSliceList:{x}", - EndpointSliceList(f"{x}", opts, **obj)))] - if gvk == "events.k8s.io/v1beta1/Event": - # Import locally to avoid name collisions. - from pulumi_kubernetes.events.v1beta1 import Event - return [identifier.apply( - lambda x: (f"events.k8s.io/v1beta1/Event:{x}", - Event(f"{x}", opts, **obj)))] - if gvk == "events.k8s.io/v1beta1/EventList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.events.v1beta1 import EventList - return [identifier.apply( - lambda x: (f"events.k8s.io/v1beta1/EventList:{x}", - EventList(f"{x}", opts, **obj)))] - if gvk == "extensions/v1beta1/DaemonSet": - # Import locally to avoid name collisions. - from pulumi_kubernetes.extensions.v1beta1 import DaemonSet - return [identifier.apply( - lambda x: (f"extensions/v1beta1/DaemonSet:{x}", - DaemonSet(f"{x}", opts, **obj)))] - if gvk == "extensions/v1beta1/DaemonSetList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.extensions.v1beta1 import DaemonSetList - return [identifier.apply( - lambda x: (f"extensions/v1beta1/DaemonSetList:{x}", - DaemonSetList(f"{x}", opts, **obj)))] - if gvk == "extensions/v1beta1/Deployment": - # Import locally to avoid name collisions. - from pulumi_kubernetes.extensions.v1beta1 import Deployment - return [identifier.apply( - lambda x: (f"extensions/v1beta1/Deployment:{x}", - Deployment(f"{x}", opts, **obj)))] - if gvk == "extensions/v1beta1/DeploymentList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.extensions.v1beta1 import DeploymentList - return [identifier.apply( - lambda x: (f"extensions/v1beta1/DeploymentList:{x}", - DeploymentList(f"{x}", opts, **obj)))] - if gvk == "extensions/v1beta1/Ingress": - # Import locally to avoid name collisions. - from pulumi_kubernetes.extensions.v1beta1 import Ingress - return [identifier.apply( - lambda x: (f"extensions/v1beta1/Ingress:{x}", - Ingress(f"{x}", opts, **obj)))] - if gvk == "extensions/v1beta1/IngressList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.extensions.v1beta1 import IngressList - return [identifier.apply( - lambda x: (f"extensions/v1beta1/IngressList:{x}", - IngressList(f"{x}", opts, **obj)))] - if gvk == "extensions/v1beta1/NetworkPolicy": - # Import locally to avoid name collisions. - from pulumi_kubernetes.extensions.v1beta1 import NetworkPolicy - return [identifier.apply( - lambda x: (f"extensions/v1beta1/NetworkPolicy:{x}", - NetworkPolicy(f"{x}", opts, **obj)))] - if gvk == "extensions/v1beta1/NetworkPolicyList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.extensions.v1beta1 import NetworkPolicyList - return [identifier.apply( - lambda x: (f"extensions/v1beta1/NetworkPolicyList:{x}", - NetworkPolicyList(f"{x}", opts, **obj)))] - if gvk == "extensions/v1beta1/PodSecurityPolicy": - # Import locally to avoid name collisions. - from pulumi_kubernetes.extensions.v1beta1 import PodSecurityPolicy - return [identifier.apply( - lambda x: (f"extensions/v1beta1/PodSecurityPolicy:{x}", - PodSecurityPolicy(f"{x}", opts, **obj)))] - if gvk == "extensions/v1beta1/PodSecurityPolicyList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.extensions.v1beta1 import PodSecurityPolicyList - return [identifier.apply( - lambda x: (f"extensions/v1beta1/PodSecurityPolicyList:{x}", - PodSecurityPolicyList(f"{x}", opts, **obj)))] - if gvk == "extensions/v1beta1/ReplicaSet": - # Import locally to avoid name collisions. - from pulumi_kubernetes.extensions.v1beta1 import ReplicaSet - return [identifier.apply( - lambda x: (f"extensions/v1beta1/ReplicaSet:{x}", - ReplicaSet(f"{x}", opts, **obj)))] - if gvk == "extensions/v1beta1/ReplicaSetList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.extensions.v1beta1 import ReplicaSetList - return [identifier.apply( - lambda x: (f"extensions/v1beta1/ReplicaSetList:{x}", - ReplicaSetList(f"{x}", opts, **obj)))] - if gvk == "flowcontrol.apiserver.k8s.io/v1alpha1/FlowSchema": - # Import locally to avoid name collisions. - from pulumi_kubernetes.flowcontrol.v1alpha1 import FlowSchema - return [identifier.apply( - lambda x: (f"flowcontrol.apiserver.k8s.io/v1alpha1/FlowSchema:{x}", - FlowSchema(f"{x}", opts, **obj)))] - if gvk == "flowcontrol.apiserver.k8s.io/v1alpha1/FlowSchemaList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.flowcontrol.v1alpha1 import FlowSchemaList - return [identifier.apply( - lambda x: (f"flowcontrol.apiserver.k8s.io/v1alpha1/FlowSchemaList:{x}", - FlowSchemaList(f"{x}", opts, **obj)))] - if gvk == "flowcontrol.apiserver.k8s.io/v1alpha1/PriorityLevelConfiguration": - # Import locally to avoid name collisions. - from pulumi_kubernetes.flowcontrol.v1alpha1 import PriorityLevelConfiguration - return [identifier.apply( - lambda x: (f"flowcontrol.apiserver.k8s.io/v1alpha1/PriorityLevelConfiguration:{x}", - PriorityLevelConfiguration(f"{x}", opts, **obj)))] - if gvk == "flowcontrol.apiserver.k8s.io/v1alpha1/PriorityLevelConfigurationList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.flowcontrol.v1alpha1 import PriorityLevelConfigurationList - return [identifier.apply( - lambda x: (f"flowcontrol.apiserver.k8s.io/v1alpha1/PriorityLevelConfigurationList:{x}", - PriorityLevelConfigurationList(f"{x}", opts, **obj)))] - if gvk == "meta/v1/Status": - # Import locally to avoid name collisions. - from pulumi_kubernetes.meta.v1 import Status - return [identifier.apply( - lambda x: (f"meta/v1/Status:{x}", - Status(f"{x}", opts, **obj)))] - if gvk == "networking.k8s.io/v1/NetworkPolicy": - # Import locally to avoid name collisions. - from pulumi_kubernetes.networking.v1 import NetworkPolicy - return [identifier.apply( - lambda x: (f"networking.k8s.io/v1/NetworkPolicy:{x}", - NetworkPolicy(f"{x}", opts, **obj)))] - if gvk == "networking.k8s.io/v1/NetworkPolicyList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.networking.v1 import NetworkPolicyList - return [identifier.apply( - lambda x: (f"networking.k8s.io/v1/NetworkPolicyList:{x}", - NetworkPolicyList(f"{x}", opts, **obj)))] - if gvk == "networking.k8s.io/v1beta1/Ingress": - # Import locally to avoid name collisions. - from pulumi_kubernetes.networking.v1beta1 import Ingress - return [identifier.apply( - lambda x: (f"networking.k8s.io/v1beta1/Ingress:{x}", - Ingress(f"{x}", opts, **obj)))] - if gvk == "networking.k8s.io/v1beta1/IngressClass": - # Import locally to avoid name collisions. - from pulumi_kubernetes.networking.v1beta1 import IngressClass - return [identifier.apply( - lambda x: (f"networking.k8s.io/v1beta1/IngressClass:{x}", - IngressClass(f"{x}", opts, **obj)))] - if gvk == "networking.k8s.io/v1beta1/IngressClassList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.networking.v1beta1 import IngressClassList - return [identifier.apply( - lambda x: (f"networking.k8s.io/v1beta1/IngressClassList:{x}", - IngressClassList(f"{x}", opts, **obj)))] - if gvk == "networking.k8s.io/v1beta1/IngressList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.networking.v1beta1 import IngressList - return [identifier.apply( - lambda x: (f"networking.k8s.io/v1beta1/IngressList:{x}", - IngressList(f"{x}", opts, **obj)))] - if gvk == "node.k8s.io/v1alpha1/RuntimeClass": - # Import locally to avoid name collisions. - from pulumi_kubernetes.node.v1alpha1 import RuntimeClass - return [identifier.apply( - lambda x: (f"node.k8s.io/v1alpha1/RuntimeClass:{x}", - RuntimeClass(f"{x}", opts, **obj)))] - if gvk == "node.k8s.io/v1alpha1/RuntimeClassList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.node.v1alpha1 import RuntimeClassList - return [identifier.apply( - lambda x: (f"node.k8s.io/v1alpha1/RuntimeClassList:{x}", - RuntimeClassList(f"{x}", opts, **obj)))] - if gvk == "node.k8s.io/v1beta1/RuntimeClass": - # Import locally to avoid name collisions. - from pulumi_kubernetes.node.v1beta1 import RuntimeClass - return [identifier.apply( - lambda x: (f"node.k8s.io/v1beta1/RuntimeClass:{x}", - RuntimeClass(f"{x}", opts, **obj)))] - if gvk == "node.k8s.io/v1beta1/RuntimeClassList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.node.v1beta1 import RuntimeClassList - return [identifier.apply( - lambda x: (f"node.k8s.io/v1beta1/RuntimeClassList:{x}", - RuntimeClassList(f"{x}", opts, **obj)))] - if gvk == "policy/v1beta1/PodDisruptionBudget": - # Import locally to avoid name collisions. - from pulumi_kubernetes.policy.v1beta1 import PodDisruptionBudget - return [identifier.apply( - lambda x: (f"policy/v1beta1/PodDisruptionBudget:{x}", - PodDisruptionBudget(f"{x}", opts, **obj)))] - if gvk == "policy/v1beta1/PodDisruptionBudgetList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.policy.v1beta1 import PodDisruptionBudgetList - return [identifier.apply( - lambda x: (f"policy/v1beta1/PodDisruptionBudgetList:{x}", - PodDisruptionBudgetList(f"{x}", opts, **obj)))] - if gvk == "policy/v1beta1/PodSecurityPolicy": - # Import locally to avoid name collisions. - from pulumi_kubernetes.policy.v1beta1 import PodSecurityPolicy - return [identifier.apply( - lambda x: (f"policy/v1beta1/PodSecurityPolicy:{x}", - PodSecurityPolicy(f"{x}", opts, **obj)))] - if gvk == "policy/v1beta1/PodSecurityPolicyList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.policy.v1beta1 import PodSecurityPolicyList - return [identifier.apply( - lambda x: (f"policy/v1beta1/PodSecurityPolicyList:{x}", - PodSecurityPolicyList(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1/ClusterRole": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1 import ClusterRole - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1/ClusterRole:{x}", - ClusterRole(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1/ClusterRoleBinding": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1 import ClusterRoleBinding - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1/ClusterRoleBinding:{x}", - ClusterRoleBinding(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1/ClusterRoleBindingList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1 import ClusterRoleBindingList - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1/ClusterRoleBindingList:{x}", - ClusterRoleBindingList(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1/ClusterRoleList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1 import ClusterRoleList - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1/ClusterRoleList:{x}", - ClusterRoleList(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1/Role": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1 import Role - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1/Role:{x}", - Role(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1/RoleBinding": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1 import RoleBinding - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1/RoleBinding:{x}", - RoleBinding(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1/RoleBindingList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1 import RoleBindingList - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1/RoleBindingList:{x}", - RoleBindingList(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1/RoleList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1 import RoleList - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1/RoleList:{x}", - RoleList(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1alpha1/ClusterRole": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1alpha1 import ClusterRole - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1alpha1/ClusterRole:{x}", - ClusterRole(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1alpha1/ClusterRoleBinding": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1alpha1 import ClusterRoleBinding - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1alpha1/ClusterRoleBinding:{x}", - ClusterRoleBinding(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1alpha1/ClusterRoleBindingList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1alpha1 import ClusterRoleBindingList - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1alpha1/ClusterRoleBindingList:{x}", - ClusterRoleBindingList(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1alpha1/ClusterRoleList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1alpha1 import ClusterRoleList - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1alpha1/ClusterRoleList:{x}", - ClusterRoleList(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1alpha1/Role": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1alpha1 import Role - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1alpha1/Role:{x}", - Role(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1alpha1/RoleBinding": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1alpha1 import RoleBinding - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1alpha1/RoleBinding:{x}", - RoleBinding(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1alpha1/RoleBindingList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1alpha1 import RoleBindingList - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1alpha1/RoleBindingList:{x}", - RoleBindingList(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1alpha1/RoleList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1alpha1 import RoleList - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1alpha1/RoleList:{x}", - RoleList(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1beta1/ClusterRole": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1beta1 import ClusterRole - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1beta1/ClusterRole:{x}", - ClusterRole(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1beta1/ClusterRoleBinding": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1beta1 import ClusterRoleBinding - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1beta1/ClusterRoleBinding:{x}", - ClusterRoleBinding(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1beta1/ClusterRoleBindingList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1beta1 import ClusterRoleBindingList - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1beta1/ClusterRoleBindingList:{x}", - ClusterRoleBindingList(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1beta1/ClusterRoleList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1beta1 import ClusterRoleList - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1beta1/ClusterRoleList:{x}", - ClusterRoleList(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1beta1/Role": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1beta1 import Role - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1beta1/Role:{x}", - Role(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1beta1/RoleBinding": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1beta1 import RoleBinding - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1beta1/RoleBinding:{x}", - RoleBinding(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1beta1/RoleBindingList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1beta1 import RoleBindingList - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1beta1/RoleBindingList:{x}", - RoleBindingList(f"{x}", opts, **obj)))] - if gvk == "rbac.authorization.k8s.io/v1beta1/RoleList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.rbac.v1beta1 import RoleList - return [identifier.apply( - lambda x: (f"rbac.authorization.k8s.io/v1beta1/RoleList:{x}", - RoleList(f"{x}", opts, **obj)))] - if gvk == "scheduling.k8s.io/v1/PriorityClass": - # Import locally to avoid name collisions. - from pulumi_kubernetes.scheduling.v1 import PriorityClass - return [identifier.apply( - lambda x: (f"scheduling.k8s.io/v1/PriorityClass:{x}", - PriorityClass(f"{x}", opts, **obj)))] - if gvk == "scheduling.k8s.io/v1/PriorityClassList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.scheduling.v1 import PriorityClassList - return [identifier.apply( - lambda x: (f"scheduling.k8s.io/v1/PriorityClassList:{x}", - PriorityClassList(f"{x}", opts, **obj)))] - if gvk == "scheduling.k8s.io/v1alpha1/PriorityClass": - # Import locally to avoid name collisions. - from pulumi_kubernetes.scheduling.v1alpha1 import PriorityClass - return [identifier.apply( - lambda x: (f"scheduling.k8s.io/v1alpha1/PriorityClass:{x}", - PriorityClass(f"{x}", opts, **obj)))] - if gvk == "scheduling.k8s.io/v1alpha1/PriorityClassList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.scheduling.v1alpha1 import PriorityClassList - return [identifier.apply( - lambda x: (f"scheduling.k8s.io/v1alpha1/PriorityClassList:{x}", - PriorityClassList(f"{x}", opts, **obj)))] - if gvk == "scheduling.k8s.io/v1beta1/PriorityClass": - # Import locally to avoid name collisions. - from pulumi_kubernetes.scheduling.v1beta1 import PriorityClass - return [identifier.apply( - lambda x: (f"scheduling.k8s.io/v1beta1/PriorityClass:{x}", - PriorityClass(f"{x}", opts, **obj)))] - if gvk == "scheduling.k8s.io/v1beta1/PriorityClassList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.scheduling.v1beta1 import PriorityClassList - return [identifier.apply( - lambda x: (f"scheduling.k8s.io/v1beta1/PriorityClassList:{x}", - PriorityClassList(f"{x}", opts, **obj)))] - if gvk == "settings.k8s.io/v1alpha1/PodPreset": - # Import locally to avoid name collisions. - from pulumi_kubernetes.settings.v1alpha1 import PodPreset - return [identifier.apply( - lambda x: (f"settings.k8s.io/v1alpha1/PodPreset:{x}", - PodPreset(f"{x}", opts, **obj)))] - if gvk == "settings.k8s.io/v1alpha1/PodPresetList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.settings.v1alpha1 import PodPresetList - return [identifier.apply( - lambda x: (f"settings.k8s.io/v1alpha1/PodPresetList:{x}", - PodPresetList(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1/CSIDriver": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1 import CSIDriver - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1/CSIDriver:{x}", - CSIDriver(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1/CSIDriverList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1 import CSIDriverList - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1/CSIDriverList:{x}", - CSIDriverList(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1/CSINode": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1 import CSINode - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1/CSINode:{x}", - CSINode(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1/CSINodeList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1 import CSINodeList - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1/CSINodeList:{x}", - CSINodeList(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1/StorageClass": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1 import StorageClass - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1/StorageClass:{x}", - StorageClass(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1/StorageClassList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1 import StorageClassList - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1/StorageClassList:{x}", - StorageClassList(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1/VolumeAttachment": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1 import VolumeAttachment - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1/VolumeAttachment:{x}", - VolumeAttachment(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1/VolumeAttachmentList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1 import VolumeAttachmentList - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1/VolumeAttachmentList:{x}", - VolumeAttachmentList(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1alpha1/VolumeAttachment": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1alpha1 import VolumeAttachment - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1alpha1/VolumeAttachment:{x}", - VolumeAttachment(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1alpha1/VolumeAttachmentList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1alpha1 import VolumeAttachmentList - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1alpha1/VolumeAttachmentList:{x}", - VolumeAttachmentList(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1beta1/CSIDriver": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1beta1 import CSIDriver - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1beta1/CSIDriver:{x}", - CSIDriver(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1beta1/CSIDriverList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1beta1 import CSIDriverList - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1beta1/CSIDriverList:{x}", - CSIDriverList(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1beta1/CSINode": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1beta1 import CSINode - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1beta1/CSINode:{x}", - CSINode(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1beta1/CSINodeList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1beta1 import CSINodeList - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1beta1/CSINodeList:{x}", - CSINodeList(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1beta1/StorageClass": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1beta1 import StorageClass - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1beta1/StorageClass:{x}", - StorageClass(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1beta1/StorageClassList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1beta1 import StorageClassList - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1beta1/StorageClassList:{x}", - StorageClassList(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1beta1/VolumeAttachment": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1beta1 import VolumeAttachment - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1beta1/VolumeAttachment:{x}", - VolumeAttachment(f"{x}", opts, **obj)))] - if gvk == "storage.k8s.io/v1beta1/VolumeAttachmentList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.storage.v1beta1 import VolumeAttachmentList - return [identifier.apply( - lambda x: (f"storage.k8s.io/v1beta1/VolumeAttachmentList:{x}", - VolumeAttachmentList(f"{x}", opts, **obj)))] - return [identifier.apply( - lambda x: (f"{gvk}:{x}", - CustomResource(f"{x}", api_version, kind, spec, metadata, opts)))] From e108ea5185cb520974fa27b90a3dace8a48de8f1 Mon Sep 17 00:00:00 2001 From: komal Date: Tue, 23 Jun 2020 15:03:59 -0700 Subject: [PATCH 19/25] codegen changes --- sdk/python/pulumi_kubernetes/__init__.py | 14 + .../admissionregistration/__init__.py | 10 + .../v1/MutatingWebhookConfiguration.py | 90 ++ .../v1/MutatingWebhookConfigurationList.py | 90 ++ .../v1/ValidatingWebhookConfiguration.py | 90 ++ .../v1/ValidatingWebhookConfigurationList.py | 90 ++ .../admissionregistration/v1/__init__.py | 9 + .../v1beta1/MutatingWebhookConfiguration.py | 90 ++ .../MutatingWebhookConfigurationList.py | 90 ++ .../v1beta1/ValidatingWebhookConfiguration.py | 90 ++ .../ValidatingWebhookConfigurationList.py | 90 ++ .../admissionregistration/v1beta1/__init__.py | 9 + .../apiextensions/CustomResource.py | 93 ++ .../apiextensions/__init__.py | 13 + .../v1/CustomResourceDefinition.py | 93 ++ .../v1/CustomResourceDefinitionList.py | 86 ++ .../apiextensions/v1/__init__.py | 7 + .../v1beta1/CustomResourceDefinition.py | 93 ++ .../v1beta1/CustomResourceDefinitionList.py | 86 ++ .../apiextensions/v1beta1/__init__.py | 7 + .../apiregistration/__init__.py | 10 + .../apiregistration/v1/APIService.py | 91 ++ .../apiregistration/v1/APIServiceList.py | 84 ++ .../apiregistration/v1/__init__.py | 7 + .../apiregistration/v1beta1/APIService.py | 91 ++ .../apiregistration/v1beta1/APIServiceList.py | 84 ++ .../apiregistration/v1beta1/__init__.py | 7 + sdk/python/pulumi_kubernetes/apps/__init__.py | 10 + .../apps/v1/ControllerRevision.py | 98 ++ .../apps/v1/ControllerRevisionList.py | 90 ++ .../pulumi_kubernetes/apps/v1/DaemonSet.py | 95 ++ .../apps/v1/DaemonSetList.py | 90 ++ .../pulumi_kubernetes/apps/v1/Deployment.py | 117 ++ .../apps/v1/DeploymentList.py | 90 ++ .../pulumi_kubernetes/apps/v1/ReplicaSet.py | 95 ++ .../apps/v1/ReplicaSetList.py | 90 ++ .../pulumi_kubernetes/apps/v1/StatefulSet.py | 107 ++ .../apps/v1/StatefulSetList.py | 82 + .../pulumi_kubernetes/apps/v1/__init__.py | 15 + .../apps/v1beta1/ControllerRevision.py | 103 ++ .../apps/v1beta1/ControllerRevisionList.py | 90 ++ .../apps/v1beta1/Deployment.py | 122 ++ .../apps/v1beta1/DeploymentList.py | 90 ++ .../apps/v1beta1/StatefulSet.py | 112 ++ .../apps/v1beta1/StatefulSetList.py | 82 + .../apps/v1beta1/__init__.py | 11 + .../apps/v1beta2/ControllerRevision.py | 103 ++ .../apps/v1beta2/ControllerRevisionList.py | 90 ++ .../apps/v1beta2/DaemonSet.py | 100 ++ .../apps/v1beta2/DaemonSetList.py | 90 ++ .../apps/v1beta2/Deployment.py | 122 ++ .../apps/v1beta2/DeploymentList.py | 90 ++ .../apps/v1beta2/ReplicaSet.py | 100 ++ .../apps/v1beta2/ReplicaSetList.py | 90 ++ .../apps/v1beta2/StatefulSet.py | 112 ++ .../apps/v1beta2/StatefulSetList.py | 82 + .../apps/v1beta2/__init__.py | 15 + .../auditregistration/__init__.py | 10 + .../auditregistration/v1alpha1/AuditSink.py | 84 ++ .../v1alpha1/AuditSinkList.py | 86 ++ .../auditregistration/v1alpha1/__init__.py | 7 + .../authentication/__init__.py | 10 + .../authentication/v1/TokenRequest.py | 84 ++ .../authentication/v1/TokenReview.py | 93 ++ .../authentication/v1/__init__.py | 7 + .../authentication/v1beta1/TokenReview.py | 93 ++ .../authentication/v1beta1/__init__.py | 6 + .../authorization/__init__.py | 10 + .../v1/LocalSubjectAccessReview.py | 93 ++ .../v1/SelfSubjectAccessReview.py | 93 ++ .../v1/SelfSubjectRulesReview.py | 93 ++ .../authorization/v1/SubjectAccessReview.py | 93 ++ .../authorization/v1/__init__.py | 9 + .../v1beta1/LocalSubjectAccessReview.py | 93 ++ .../v1beta1/SelfSubjectAccessReview.py | 93 ++ .../v1beta1/SelfSubjectRulesReview.py | 93 ++ .../v1beta1/SubjectAccessReview.py | 93 ++ .../authorization/v1beta1/__init__.py | 9 + .../pulumi_kubernetes/autoscaling/__init__.py | 10 + .../autoscaling/v1/HorizontalPodAutoscaler.py | 95 ++ .../v1/HorizontalPodAutoscalerList.py | 90 ++ .../autoscaling/v1/__init__.py | 7 + .../v2beta1/HorizontalPodAutoscaler.py | 95 ++ .../v2beta1/HorizontalPodAutoscalerList.py | 90 ++ .../autoscaling/v2beta1/__init__.py | 7 + .../v2beta2/HorizontalPodAutoscaler.py | 95 ++ .../v2beta2/HorizontalPodAutoscalerList.py | 90 ++ .../autoscaling/v2beta2/__init__.py | 7 + .../pulumi_kubernetes/batch/__init__.py | 10 + sdk/python/pulumi_kubernetes/batch/v1/Job.py | 108 ++ .../pulumi_kubernetes/batch/v1/JobList.py | 90 ++ .../pulumi_kubernetes/batch/v1/__init__.py | 7 + .../batch/v1beta1/CronJob.py | 95 ++ .../batch/v1beta1/CronJobList.py | 90 ++ .../batch/v1beta1/__init__.py | 7 + .../batch/v2alpha1/CronJob.py | 95 ++ .../batch/v2alpha1/CronJobList.py | 90 ++ .../batch/v2alpha1/__init__.py | 7 + .../certificates/__init__.py | 10 + .../v1beta1/CertificateSigningRequest.py | 89 ++ .../v1beta1/CertificateSigningRequestList.py | 81 + .../certificates/v1beta1/__init__.py | 7 + .../coordination/__init__.py | 10 + .../coordination/v1/Lease.py | 90 ++ .../coordination/v1/LeaseList.py | 90 ++ .../coordination/v1/__init__.py | 7 + .../coordination/v1beta1/Lease.py | 90 ++ .../coordination/v1beta1/LeaseList.py | 90 ++ .../coordination/v1beta1/__init__.py | 7 + sdk/python/pulumi_kubernetes/core/__init__.py | 10 + .../pulumi_kubernetes/core/v1/Binding.py | 90 ++ .../core/v1/ComponentStatus.py | 88 ++ .../core/v1/ComponentStatusList.py | 90 ++ .../pulumi_kubernetes/core/v1/ConfigMap.py | 100 ++ .../core/v1/ConfigMapList.py | 90 ++ .../pulumi_kubernetes/core/v1/Endpoints.py | 99 ++ .../core/v1/EndpointsList.py | 90 ++ sdk/python/pulumi_kubernetes/core/v1/Event.py | 172 +++ .../pulumi_kubernetes/core/v1/EventList.py | 90 ++ .../pulumi_kubernetes/core/v1/LimitRange.py | 88 ++ .../core/v1/LimitRangeList.py | 90 ++ .../pulumi_kubernetes/core/v1/Namespace.py | 93 ++ .../core/v1/NamespaceList.py | 90 ++ sdk/python/pulumi_kubernetes/core/v1/Node.py | 93 ++ .../pulumi_kubernetes/core/v1/NodeList.py | 90 ++ .../core/v1/PersistentVolume.py | 93 ++ .../core/v1/PersistentVolumeClaim.py | 93 ++ .../core/v1/PersistentVolumeClaimList.py | 90 ++ .../core/v1/PersistentVolumeList.py | 90 ++ sdk/python/pulumi_kubernetes/core/v1/Pod.py | 108 ++ .../pulumi_kubernetes/core/v1/PodList.py | 90 ++ .../pulumi_kubernetes/core/v1/PodTemplate.py | 88 ++ .../core/v1/PodTemplateList.py | 90 ++ .../core/v1/ReplicationController.py | 93 ++ .../core/v1/ReplicationControllerList.py | 90 ++ .../core/v1/ResourceQuota.py | 93 ++ .../core/v1/ResourceQuotaList.py | 90 ++ .../pulumi_kubernetes/core/v1/Secret.py | 116 ++ .../pulumi_kubernetes/core/v1/SecretList.py | 90 ++ .../pulumi_kubernetes/core/v1/Service.py | 118 ++ .../core/v1/ServiceAccount.py | 100 ++ .../core/v1/ServiceAccountList.py | 90 ++ .../pulumi_kubernetes/core/v1/ServiceList.py | 90 ++ .../pulumi_kubernetes/core/v1/__init__.py | 38 + .../pulumi_kubernetes/discovery/__init__.py | 10 + .../discovery/v1beta1/EndpointSlice.py | 104 ++ .../discovery/v1beta1/EndpointSliceList.py | 90 ++ .../discovery/v1beta1/__init__.py | 7 + .../pulumi_kubernetes/events/__init__.py | 10 + .../pulumi_kubernetes/events/v1beta1/Event.py | 166 ++ .../events/v1beta1/EventList.py | 90 ++ .../events/v1beta1/__init__.py | 7 + .../pulumi_kubernetes/extensions/__init__.py | 10 + .../extensions/v1beta1/DaemonSet.py | 100 ++ .../extensions/v1beta1/DaemonSetList.py | 90 ++ .../extensions/v1beta1/Deployment.py | 122 ++ .../extensions/v1beta1/DeploymentList.py | 90 ++ .../extensions/v1beta1/Ingress.py | 114 ++ .../extensions/v1beta1/IngressList.py | 90 ++ .../extensions/v1beta1/NetworkPolicy.py | 90 ++ .../extensions/v1beta1/NetworkPolicyList.py | 90 ++ .../extensions/v1beta1/PodSecurityPolicy.py | 90 ++ .../v1beta1/PodSecurityPolicyList.py | 90 ++ .../extensions/v1beta1/ReplicaSet.py | 100 ++ .../extensions/v1beta1/ReplicaSetList.py | 90 ++ .../extensions/v1beta1/__init__.py | 17 + .../pulumi_kubernetes/flowcontrol/__init__.py | 10 + .../flowcontrol/v1alpha1/FlowSchema.py | 93 ++ .../flowcontrol/v1alpha1/FlowSchemaList.py | 90 ++ .../v1alpha1/PriorityLevelConfiguration.py | 93 ++ .../PriorityLevelConfigurationList.py | 90 ++ .../flowcontrol/v1alpha1/__init__.py | 9 + sdk/python/pulumi_kubernetes/helm/__init__.py | 10 + .../pulumi_kubernetes/helm/v2/__init__.py | 6 + sdk/python/pulumi_kubernetes/helm/v2/helm.py | 502 ++++++ .../pulumi_kubernetes/helm/v3/__init__.py | 6 + sdk/python/pulumi_kubernetes/helm/v3/helm.py | 502 ++++++ sdk/python/pulumi_kubernetes/meta/__init__.py | 10 + .../pulumi_kubernetes/meta/v1/Status.py | 111 ++ .../pulumi_kubernetes/meta/v1/__init__.py | 6 + .../pulumi_kubernetes/networking/__init__.py | 10 + .../networking/v1/NetworkPolicy.py | 90 ++ .../networking/v1/NetworkPolicyList.py | 90 ++ .../networking/v1/__init__.py | 7 + .../networking/v1beta1/Ingress.py | 109 ++ .../networking/v1beta1/IngressClass.py | 88 ++ .../networking/v1beta1/IngressClassList.py | 90 ++ .../networking/v1beta1/IngressList.py | 90 ++ .../networking/v1beta1/__init__.py | 9 + sdk/python/pulumi_kubernetes/node/__init__.py | 10 + .../node/v1alpha1/RuntimeClass.py | 92 ++ .../node/v1alpha1/RuntimeClassList.py | 90 ++ .../node/v1alpha1/__init__.py | 7 + .../node/v1beta1/RuntimeClass.py | 104 ++ .../node/v1beta1/RuntimeClassList.py | 90 ++ .../node/v1beta1/__init__.py | 7 + .../pulumi_kubernetes/policy/__init__.py | 10 + .../policy/v1beta1/PodDisruptionBudget.py | 89 ++ .../policy/v1beta1/PodDisruptionBudgetList.py | 82 + .../policy/v1beta1/PodSecurityPolicy.py | 90 ++ .../policy/v1beta1/PodSecurityPolicyList.py | 90 ++ .../policy/v1beta1/__init__.py | 9 + sdk/python/pulumi_kubernetes/provider.py | 83 + sdk/python/pulumi_kubernetes/rbac/__init__.py | 10 + .../pulumi_kubernetes/rbac/v1/ClusterRole.py | 96 ++ .../rbac/v1/ClusterRoleBinding.py | 98 ++ .../rbac/v1/ClusterRoleBindingList.py | 90 ++ .../rbac/v1/ClusterRoleList.py | 90 ++ sdk/python/pulumi_kubernetes/rbac/v1/Role.py | 90 ++ .../pulumi_kubernetes/rbac/v1/RoleBinding.py | 98 ++ .../rbac/v1/RoleBindingList.py | 90 ++ .../pulumi_kubernetes/rbac/v1/RoleList.py | 90 ++ .../pulumi_kubernetes/rbac/v1/__init__.py | 13 + .../rbac/v1alpha1/ClusterRole.py | 96 ++ .../rbac/v1alpha1/ClusterRoleBinding.py | 98 ++ .../rbac/v1alpha1/ClusterRoleBindingList.py | 90 ++ .../rbac/v1alpha1/ClusterRoleList.py | 90 ++ .../pulumi_kubernetes/rbac/v1alpha1/Role.py | 90 ++ .../rbac/v1alpha1/RoleBinding.py | 98 ++ .../rbac/v1alpha1/RoleBindingList.py | 90 ++ .../rbac/v1alpha1/RoleList.py | 90 ++ .../rbac/v1alpha1/__init__.py | 13 + .../rbac/v1beta1/ClusterRole.py | 96 ++ .../rbac/v1beta1/ClusterRoleBinding.py | 98 ++ .../rbac/v1beta1/ClusterRoleBindingList.py | 90 ++ .../rbac/v1beta1/ClusterRoleList.py | 90 ++ .../pulumi_kubernetes/rbac/v1beta1/Role.py | 90 ++ .../rbac/v1beta1/RoleBinding.py | 98 ++ .../rbac/v1beta1/RoleBindingList.py | 90 ++ .../rbac/v1beta1/RoleList.py | 90 ++ .../rbac/v1beta1/__init__.py | 13 + .../pulumi_kubernetes/scheduling/__init__.py | 10 + .../scheduling/v1/PriorityClass.py | 110 ++ .../scheduling/v1/PriorityClassList.py | 90 ++ .../scheduling/v1/__init__.py | 7 + .../scheduling/v1alpha1/PriorityClass.py | 110 ++ .../scheduling/v1alpha1/PriorityClassList.py | 90 ++ .../scheduling/v1alpha1/__init__.py | 7 + .../scheduling/v1beta1/PriorityClass.py | 110 ++ .../scheduling/v1beta1/PriorityClassList.py | 90 ++ .../scheduling/v1beta1/__init__.py | 7 + .../pulumi_kubernetes/settings/__init__.py | 10 + .../settings/v1alpha1/PodPreset.py | 80 + .../settings/v1alpha1/PodPresetList.py | 90 ++ .../settings/v1alpha1/__init__.py | 7 + .../pulumi_kubernetes/storage/__init__.py | 10 + .../pulumi_kubernetes/storage/v1/CSIDriver.py | 92 ++ .../storage/v1/CSIDriverList.py | 90 ++ .../pulumi_kubernetes/storage/v1/CSINode.py | 92 ++ .../storage/v1/CSINodeList.py | 90 ++ .../storage/v1/StorageClass.py | 130 ++ .../storage/v1/StorageClassList.py | 90 ++ .../storage/v1/VolumeAttachment.py | 99 ++ .../storage/v1/VolumeAttachmentList.py | 90 ++ .../pulumi_kubernetes/storage/v1/__init__.py | 13 + .../storage/v1alpha1/VolumeAttachment.py | 99 ++ .../storage/v1alpha1/VolumeAttachmentList.py | 90 ++ .../storage/v1alpha1/__init__.py | 7 + .../storage/v1beta1/CSIDriver.py | 92 ++ .../storage/v1beta1/CSIDriverList.py | 90 ++ .../storage/v1beta1/CSINode.py | 97 ++ .../storage/v1beta1/CSINodeList.py | 90 ++ .../storage/v1beta1/StorageClass.py | 130 ++ .../storage/v1beta1/StorageClassList.py | 90 ++ .../storage/v1beta1/VolumeAttachment.py | 99 ++ .../storage/v1beta1/VolumeAttachmentList.py | 90 ++ .../storage/v1beta1/__init__.py | 13 + sdk/python/pulumi_kubernetes/tables.py | 923 ++++++++++++ sdk/python/pulumi_kubernetes/utilities.py | 83 + sdk/python/pulumi_kubernetes/yaml.py | 1341 +++++++++++++++++ 270 files changed, 22282 insertions(+) create mode 100644 sdk/python/pulumi_kubernetes/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py create mode 100644 sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py create mode 100644 sdk/python/pulumi_kubernetes/apiextensions/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py create mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py create mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py create mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py create mode 100644 sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apiregistration/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py create mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py create mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py create mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py create mode 100644 sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apps/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/Deployment.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py create mode 100644 sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/auditregistration/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py create mode 100644 sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py create mode 100644 sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/authentication/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py create mode 100644 sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py create mode 100644 sdk/python/pulumi_kubernetes/authentication/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py create mode 100644 sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py create mode 100644 sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py create mode 100644 sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/batch/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v1/Job.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v1/JobList.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py create mode 100644 sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/certificates/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py create mode 100644 sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py create mode 100644 sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/coordination/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/coordination/v1/Lease.py create mode 100644 sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py create mode 100644 sdk/python/pulumi_kubernetes/coordination/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py create mode 100644 sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py create mode 100644 sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/core/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/Binding.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/Endpoints.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/Event.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/EventList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/LimitRange.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/Namespace.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/Node.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/NodeList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/Pod.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/PodList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/Secret.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/SecretList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/Service.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/ServiceList.py create mode 100644 sdk/python/pulumi_kubernetes/core/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/discovery/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py create mode 100644 sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py create mode 100644 sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/events/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/events/v1beta1/Event.py create mode 100644 sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py create mode 100644 sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py create mode 100644 sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py create mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py create mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py create mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py create mode 100644 sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/helm/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/helm/v2/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/helm/v2/helm.py create mode 100644 sdk/python/pulumi_kubernetes/helm/v3/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/helm/v3/helm.py create mode 100644 sdk/python/pulumi_kubernetes/meta/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/meta/v1/Status.py create mode 100644 sdk/python/pulumi_kubernetes/meta/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/networking/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py create mode 100644 sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/node/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py create mode 100644 sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py create mode 100644 sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py create mode 100644 sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py create mode 100644 sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/policy/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py create mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py create mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py create mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py create mode 100644 sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/provider.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/Role.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py create mode 100644 sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py create mode 100644 sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/settings/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py create mode 100644 sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py create mode 100644 sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/storage/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/CSINode.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py create mode 100644 sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py create mode 100644 sdk/python/pulumi_kubernetes/tables.py create mode 100644 sdk/python/pulumi_kubernetes/utilities.py create mode 100644 sdk/python/pulumi_kubernetes/yaml.py diff --git a/sdk/python/pulumi_kubernetes/__init__.py b/sdk/python/pulumi_kubernetes/__init__.py new file mode 100644 index 0000000000..a3cb73b53b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/__init__.py @@ -0,0 +1,14 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['admissionregistration', 'apiextensions', 'apiregistration', 'apps', 'auditregistration', 'authentication', 'authorization', 'autoscaling', 'batch', 'certificates', 'coordination', 'core', 'discovery', 'events', 'extensions', 'flowcontrol', 'helm', 'meta', 'networking', 'node', 'policy', 'rbac', 'scheduling', 'settings', 'storage'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') + +# Export this package's modules as members: +from .provider import * +from .yaml import * diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py new file mode 100644 index 0000000000..4c1e851a21 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py new file mode 100644 index 0000000000..8ba28082b8 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class MutatingWebhookConfiguration(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + """ + webhooks: pulumi.Output[list] + """ + Webhooks is a list of webhooks and the affected resources and operations. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): + """ + MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'admissionregistration.k8s.io/v1' + __props__['kind'] = 'MutatingWebhookConfiguration' + __props__['metadata'] = metadata + __props__['webhooks'] = webhooks + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(MutatingWebhookConfiguration, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing MutatingWebhookConfiguration resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return MutatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py new file mode 100644 index 0000000000..4081595777 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class MutatingWebhookConfigurationList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of MutatingWebhookConfiguration. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of MutatingWebhookConfiguration. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'admissionregistration.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'MutatingWebhookConfigurationList' + __props__['metadata'] = metadata + super(MutatingWebhookConfigurationList, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing MutatingWebhookConfigurationList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return MutatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py new file mode 100644 index 0000000000..87349534db --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ValidatingWebhookConfiguration(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + """ + webhooks: pulumi.Output[list] + """ + Webhooks is a list of webhooks and the affected resources and operations. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): + """ + ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'admissionregistration.k8s.io/v1' + __props__['kind'] = 'ValidatingWebhookConfiguration' + __props__['metadata'] = metadata + __props__['webhooks'] = webhooks + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ValidatingWebhookConfiguration, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ValidatingWebhookConfiguration resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ValidatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py new file mode 100644 index 0000000000..e3060a06ee --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ValidatingWebhookConfigurationList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ValidatingWebhookConfiguration. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ValidatingWebhookConfiguration. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'admissionregistration.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ValidatingWebhookConfigurationList' + __props__['metadata'] = metadata + super(ValidatingWebhookConfigurationList, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfigurationList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ValidatingWebhookConfigurationList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ValidatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py new file mode 100644 index 0000000000..88c4005809 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/__init__.py @@ -0,0 +1,9 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .MutatingWebhookConfiguration import * +from .MutatingWebhookConfigurationList import * +from .ValidatingWebhookConfiguration import * +from .ValidatingWebhookConfigurationList import * diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py new file mode 100644 index 0000000000..dabe074309 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class MutatingWebhookConfiguration(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + """ + webhooks: pulumi.Output[list] + """ + Webhooks is a list of webhooks and the affected resources and operations. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): + """ + MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'admissionregistration.k8s.io/v1beta1' + __props__['kind'] = 'MutatingWebhookConfiguration' + __props__['metadata'] = metadata + __props__['webhooks'] = webhooks + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(MutatingWebhookConfiguration, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing MutatingWebhookConfiguration resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return MutatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py new file mode 100644 index 0000000000..8949b4e97b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class MutatingWebhookConfigurationList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of MutatingWebhookConfiguration. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of MutatingWebhookConfiguration. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'admissionregistration.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'MutatingWebhookConfigurationList' + __props__['metadata'] = metadata + super(MutatingWebhookConfigurationList, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfigurationList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing MutatingWebhookConfigurationList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return MutatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py new file mode 100644 index 0000000000..c7ff332e08 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ValidatingWebhookConfiguration(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + """ + webhooks: pulumi.Output[list] + """ + Webhooks is a list of webhooks and the affected resources and operations. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, webhooks=None, __props__=None, __name__=None, __opts__=None): + """ + ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + :param pulumi.Input[list] webhooks: Webhooks is a list of webhooks and the affected resources and operations. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'admissionregistration.k8s.io/v1beta1' + __props__['kind'] = 'ValidatingWebhookConfiguration' + __props__['metadata'] = metadata + __props__['webhooks'] = webhooks + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ValidatingWebhookConfiguration, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ValidatingWebhookConfiguration resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ValidatingWebhookConfiguration(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py new file mode 100644 index 0000000000..08fc93af4c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ValidatingWebhookConfigurationList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ValidatingWebhookConfiguration. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ValidatingWebhookConfiguration. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'admissionregistration.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ValidatingWebhookConfigurationList' + __props__['metadata'] = metadata + super(ValidatingWebhookConfigurationList, __self__).__init__( + 'kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfigurationList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ValidatingWebhookConfigurationList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ValidatingWebhookConfigurationList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py new file mode 100644 index 0000000000..88c4005809 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/__init__.py @@ -0,0 +1,9 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .MutatingWebhookConfiguration import * +from .MutatingWebhookConfigurationList import * +from .ValidatingWebhookConfiguration import * +from .ValidatingWebhookConfigurationList import * diff --git a/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py b/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py new file mode 100644 index 0000000000..85dba0e1ca --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py @@ -0,0 +1,93 @@ +# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings + +import pulumi +import pulumi.runtime +from pulumi import ResourceOptions + +from .. import tables +from ..utilities import get_version + + +class CustomResource(pulumi.CustomResource): + """ + CustomResource represents an instance of a CustomResourceDefinition (CRD). For example, the + CoreOS Prometheus operator exposes a CRD `monitoring.coreos.com/ServiceMonitor`; to + instantiate this as a Pulumi resource, one could call `new CustomResource`, passing the + `ServiceMonitor` resource definition as an argument. + """ + + def __init__(self, resource_name, api_version, kind, spec=None, metadata=None, opts=None, + __name__=None, __opts__=None): + """ + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param str api_version: The API version of the apiExtensions.CustomResource we + wish to select, as specified by the CustomResourceDefinition that defines it on the + API server. + :param str kind: The kind of the apiextensions.CustomResource we wish to select, + as specified by the CustomResourceDefinition that defines it on the API server. + :param pulumi.Input[Any] spec: Specification of the CustomResource. + :param Optional[pulumi.Input[Any]] metadata: Standard object metadata; More info: + https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if not resource_name: + raise TypeError('Missing resource name argument (for URN creation)') + if not isinstance(resource_name, str): + raise TypeError('Expected resource name to be a string') + if opts and not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + + __props__ = dict() + + __props__['apiVersion'] = api_version + __props__['kind'] = kind + __props__['spec'] = spec + __props__['metadata'] = metadata + + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(version=get_version())) + + super(CustomResource, self).__init__( + f"kubernetes:{api_version}:{kind}", + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, api_version, kind, id, opts=None): + """ + Get the state of an existing `CustomResource` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param str api_version: The API version of the apiExtensions.CustomResource we + wish to select, as specified by the CustomResourceDefinition that defines it on the + API server. + :param str kind: The kind of the apiextensions.CustomResource we wish to select, + as specified by the CustomResourceDefinition that defines it on the API server. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form / or . + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CustomResource(resource_name=resource_name, api_version=api_version, kind=kind, opts=opts) + + def translate_output_property(self, prop: str) -> str: + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop: str) -> str: + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/__init__.py new file mode 100644 index 0000000000..c24be2a8a4 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiextensions/__init__.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') + +# Export this package's modules as members: +from .CustomResource import * diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py new file mode 100644 index 0000000000..86d81d6137 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CustomResourceDefinition(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + spec describes how the user wants the resources to appear + """ + status: pulumi.Output[dict] + """ + status indicates the actual state of the CustomResourceDefinition + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: spec describes how the user wants the resources to appear + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apiextensions.k8s.io/v1' + __props__['kind'] = 'CustomResourceDefinition' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CustomResourceDefinition, __self__).__init__( + 'kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CustomResourceDefinition resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CustomResourceDefinition(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py new file mode 100644 index 0000000000..b3c83c5596 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CustomResourceDefinitionList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items list individual CustomResourceDefinition objects + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items list individual CustomResourceDefinition objects + :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 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apiextensions.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'CustomResourceDefinitionList' + __props__['metadata'] = metadata + super(CustomResourceDefinitionList, __self__).__init__( + 'kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinitionList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CustomResourceDefinitionList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CustomResourceDefinitionList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py new file mode 100644 index 0000000000..5c22c072a0 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .CustomResourceDefinition import * +from .CustomResourceDefinitionList import * diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py new file mode 100644 index 0000000000..a80a815f7c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CustomResourceDefinition(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + spec describes how the user wants the resources to appear + """ + status: pulumi.Output[dict] + """ + status indicates the actual state of the CustomResourceDefinition + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. Deprecated in v1.16, planned for removal in v1.19. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: spec describes how the user wants the resources to appear + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apiextensions.k8s.io/v1beta1' + __props__['kind'] = 'CustomResourceDefinition' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CustomResourceDefinition, __self__).__init__( + 'kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CustomResourceDefinition resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CustomResourceDefinition(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py new file mode 100644 index 0000000000..b000c8303e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CustomResourceDefinitionList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items list individual CustomResourceDefinition objects + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CustomResourceDefinitionList is a list of CustomResourceDefinition objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items list individual CustomResourceDefinition objects + :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 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apiextensions.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'CustomResourceDefinitionList' + __props__['metadata'] = metadata + super(CustomResourceDefinitionList, __self__).__init__( + 'kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinitionList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CustomResourceDefinitionList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CustomResourceDefinitionList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py new file mode 100644 index 0000000000..5c22c072a0 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .CustomResourceDefinition import * +from .CustomResourceDefinitionList import * diff --git a/sdk/python/pulumi_kubernetes/apiregistration/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/__init__.py new file mode 100644 index 0000000000..4c1e851a21 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiregistration/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py new file mode 100644 index 0000000000..587a280804 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py @@ -0,0 +1,91 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class APIService(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec contains information for locating and communicating with a server + """ + status: pulumi.Output[dict] + """ + Status contains derived information about an API server + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + APIService represents a server for a particular GroupVersion. Name must be "version.group". + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec contains information for locating and communicating with a server + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apiregistration.k8s.io/v1' + __props__['kind'] = 'APIService' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration.k8s.io/v1beta1:APIService"), pulumi.Alias(type_="kubernetes:apiregistration/v1beta1:APIService"), pulumi.Alias(type_="kubernetes:apiregistration/v1:APIService")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(APIService, __self__).__init__( + 'kubernetes:apiregistration.k8s.io/v1:APIService', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing APIService resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return APIService(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py new file mode 100644 index 0000000000..71d1536a59 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py @@ -0,0 +1,84 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class APIServiceList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + APIServiceList is a list of APIService objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apiregistration.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'APIServiceList' + __props__['metadata'] = metadata + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration/v1:APIServiceList")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(APIServiceList, __self__).__init__( + 'kubernetes:apiregistration.k8s.io/v1:APIServiceList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing APIServiceList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return APIServiceList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py new file mode 100644 index 0000000000..631222d9d5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .APIService import * +from .APIServiceList import * diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py new file mode 100644 index 0000000000..30b7c0ea6e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py @@ -0,0 +1,91 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class APIService(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec contains information for locating and communicating with a server + """ + status: pulumi.Output[dict] + """ + Status contains derived information about an API server + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + APIService represents a server for a particular GroupVersion. Name must be "version.group". + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec contains information for locating and communicating with a server + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apiregistration.k8s.io/v1beta1' + __props__['kind'] = 'APIService' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration.k8s.io/v1:APIService"), pulumi.Alias(type_="kubernetes:apiregistration/v1:APIService"), pulumi.Alias(type_="kubernetes:apiregistration/v1beta1:APIService")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(APIService, __self__).__init__( + 'kubernetes:apiregistration.k8s.io/v1beta1:APIService', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing APIService resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return APIService(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py new file mode 100644 index 0000000000..08bb9e015f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py @@ -0,0 +1,84 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class APIServiceList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + APIServiceList is a list of APIService objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apiregistration.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'APIServiceList' + __props__['metadata'] = metadata + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apiregistration/v1beta1:APIServiceList")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(APIServiceList, __self__).__init__( + 'kubernetes:apiregistration.k8s.io/v1beta1:APIServiceList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing APIServiceList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return APIServiceList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py new file mode 100644 index 0000000000..631222d9d5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .APIService import * +from .APIServiceList import * diff --git a/sdk/python/pulumi_kubernetes/apps/__init__.py b/sdk/python/pulumi_kubernetes/apps/__init__.py new file mode 100644 index 0000000000..3b707f2a5c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1', 'v1beta1', 'v1beta2'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py new file mode 100644 index 0000000000..d4c0e721c6 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ControllerRevision(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + data: pulumi.Output[dict] + """ + Data is the serialized representation of the state. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + revision: pulumi.Output[float] + """ + Revision indicates the revision of the state represented by Data. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, data=None, kind=None, metadata=None, revision=None, __props__=None, __name__=None, __opts__=None): + """ + ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[dict] data: Data is the serialized representation of the state. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[float] revision: Revision indicates the revision of the state represented by Data. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1' + __props__['data'] = data + __props__['kind'] = 'ControllerRevision' + __props__['metadata'] = metadata + if revision is None: + raise TypeError("Missing required property 'revision'") + __props__['revision'] = revision + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta1:ControllerRevision"), pulumi.Alias(type_="kubernetes:apps/v1beta2:ControllerRevision")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ControllerRevision, __self__).__init__( + 'kubernetes:apps/v1:ControllerRevision', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ControllerRevision resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ControllerRevision(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py new file mode 100644 index 0000000000..b3e722999f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ControllerRevisionList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of ControllerRevisions + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ControllerRevisionList is a resource containing a list of ControllerRevision objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of ControllerRevisions + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ControllerRevisionList' + __props__['metadata'] = metadata + super(ControllerRevisionList, __self__).__init__( + 'kubernetes:apps/v1:ControllerRevisionList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ControllerRevisionList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ControllerRevisionList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py new file mode 100644 index 0000000000..9d5a67f8d3 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py @@ -0,0 +1,95 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DaemonSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + DaemonSet represents the configuration of a daemon set. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1' + __props__['kind'] = 'DaemonSet' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta2:DaemonSet"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:DaemonSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(DaemonSet, __self__).__init__( + 'kubernetes:apps/v1:DaemonSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DaemonSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DaemonSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py new file mode 100644 index 0000000000..d9f76c709a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DaemonSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + A list of daemon sets. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DaemonSetList is a collection of daemon sets. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: A list of daemon sets. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'DaemonSetList' + __props__['metadata'] = metadata + super(DaemonSetList, __self__).__init__( + 'kubernetes:apps/v1:DaemonSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DaemonSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DaemonSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py new file mode 100644 index 0000000000..f0452ee490 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py @@ -0,0 +1,117 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Deployment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of the Deployment. + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the Deployment. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Deployment enables declarative updates for Pods and ReplicaSets. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Deployment has begun to be updated by the Deployment controller. If the current + generation of the Deployment is > 1, then this means that the current generation must + be different from the generation reported by the last outputs. + 2. There exists a ReplicaSet whose revision is equal to the current revision of the + Deployment. + 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' + member is set to 'True'. + 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type + 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is + 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, + because it doesn't do a rollout (i.e., it simply creates the Deployment and + corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. + + If the Deployment has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. + :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1' + __props__['kind'] = 'Deployment' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta2:Deployment"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:Deployment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Deployment, __self__).__init__( + 'kubernetes:apps/v1:Deployment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Deployment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Deployment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py new file mode 100644 index 0000000000..0bbfba12ca --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DeploymentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Deployments. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DeploymentList is a list of Deployments. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Deployments. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'DeploymentList' + __props__['metadata'] = metadata + super(DeploymentList, __self__).__init__( + 'kubernetes:apps/v1:DeploymentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DeploymentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DeploymentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py new file mode 100644 index 0000000000..4eefa1b616 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py @@ -0,0 +1,95 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ReplicaSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicaSet ensures that a specified number of pod replicas are running at any given time. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1' + __props__['kind'] = 'ReplicaSet' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta2:ReplicaSet"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:ReplicaSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ReplicaSet, __self__).__init__( + 'kubernetes:apps/v1:ReplicaSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicaSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicaSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py new file mode 100644 index 0000000000..b5dca41ff3 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ReplicaSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicaSetList is a collection of ReplicaSets. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ReplicaSetList' + __props__['metadata'] = metadata + super(ReplicaSetList, __self__).__init__( + 'kubernetes:apps/v1:ReplicaSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicaSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicaSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py new file mode 100644 index 0000000000..3abe821688 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py @@ -0,0 +1,107 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StatefulSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec defines the desired identities of pods in this set. + """ + status: pulumi.Output[dict] + """ + Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + StatefulSet represents a set of pods with consistent identities. Identities are defined as: + - Network: A single stable DNS and hostname. + - Storage: As many VolumeClaims as requested. + The StatefulSet guarantees that a given network identity will always map to the same storage identity. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', + and '.status.readyReplicas'. + 2. The value of '.status.updateRevision' matches '.status.currentRevision'. + + If the StatefulSet has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1' + __props__['kind'] = 'StatefulSet' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1beta1:StatefulSet"), pulumi.Alias(type_="kubernetes:apps/v1beta2:StatefulSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(StatefulSet, __self__).__init__( + 'kubernetes:apps/v1:StatefulSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StatefulSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StatefulSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py new file mode 100644 index 0000000000..b8c6122fc9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py @@ -0,0 +1,82 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StatefulSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + StatefulSetList is a collection of StatefulSets. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'StatefulSetList' + __props__['metadata'] = metadata + super(StatefulSetList, __self__).__init__( + 'kubernetes:apps/v1:StatefulSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StatefulSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StatefulSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/__init__.py b/sdk/python/pulumi_kubernetes/apps/v1/__init__.py new file mode 100644 index 0000000000..bd15244394 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1/__init__.py @@ -0,0 +1,15 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .ControllerRevision import * +from .ControllerRevisionList import * +from .DaemonSet import * +from .DaemonSetList import * +from .Deployment import * +from .DeploymentList import * +from .ReplicaSet import * +from .ReplicaSetList import * +from .StatefulSet import * +from .StatefulSetList import * diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py new file mode 100644 index 0000000000..3d157d5f4c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py @@ -0,0 +1,103 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + +class ControllerRevision(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + data: pulumi.Output[dict] + """ + Data is the serialized representation of the state. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + revision: pulumi.Output[float] + """ + Revision indicates the revision of the state represented by Data. + """ + warnings.warn("apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + def __init__(__self__, resource_name, opts=None, api_version=None, data=None, kind=None, metadata=None, revision=None, __props__=None, __name__=None, __opts__=None): + """ + ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[dict] data: Data is the serialized representation of the state. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[float] revision: Revision indicates the revision of the state represented by Data. + """ + pulumi.log.warn("ControllerRevision is deprecated: apps/v1beta1/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta1' + __props__['data'] = data + __props__['kind'] = 'ControllerRevision' + __props__['metadata'] = metadata + if revision is None: + raise TypeError("Missing required property 'revision'") + __props__['revision'] = revision + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:ControllerRevision"), pulumi.Alias(type_="kubernetes:apps/v1beta2:ControllerRevision")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ControllerRevision, __self__).__init__( + 'kubernetes:apps/v1beta1:ControllerRevision', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ControllerRevision resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ControllerRevision(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py new file mode 100644 index 0000000000..31690b322d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ControllerRevisionList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of ControllerRevisions + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ControllerRevisionList is a resource containing a list of ControllerRevision objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of ControllerRevisions + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ControllerRevisionList' + __props__['metadata'] = metadata + super(ControllerRevisionList, __self__).__init__( + 'kubernetes:apps/v1beta1:ControllerRevisionList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ControllerRevisionList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ControllerRevisionList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py new file mode 100644 index 0000000000..ddd6ab78ac --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py @@ -0,0 +1,122 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + +class Deployment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of the Deployment. + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the Deployment. + """ + warnings.warn("apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Deployment enables declarative updates for Pods and ReplicaSets. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Deployment has begun to be updated by the Deployment controller. If the current + generation of the Deployment is > 1, then this means that the current generation must + be different from the generation reported by the last outputs. + 2. There exists a ReplicaSet whose revision is equal to the current revision of the + Deployment. + 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' + member is set to 'True'. + 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type + 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is + 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, + because it doesn't do a rollout (i.e., it simply creates the Deployment and + corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. + + If the Deployment has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. + :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. + """ + pulumi.log.warn("Deployment is deprecated: apps/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta1' + __props__['kind'] = 'Deployment' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta2:Deployment"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:Deployment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Deployment, __self__).__init__( + 'kubernetes:apps/v1beta1:Deployment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Deployment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Deployment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py new file mode 100644 index 0000000000..1220942044 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DeploymentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Deployments. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DeploymentList is a list of Deployments. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Deployments. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'DeploymentList' + __props__['metadata'] = metadata + super(DeploymentList, __self__).__init__( + 'kubernetes:apps/v1beta1:DeploymentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DeploymentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DeploymentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py new file mode 100644 index 0000000000..effe9c04e4 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py @@ -0,0 +1,112 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + +class StatefulSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec defines the desired identities of pods in this set. + """ + status: pulumi.Output[dict] + """ + Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + """ + warnings.warn("apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + StatefulSet represents a set of pods with consistent identities. Identities are defined as: + - Network: A single stable DNS and hostname. + - Storage: As many VolumeClaims as requested. + The StatefulSet guarantees that a given network identity will always map to the same storage identity. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', + and '.status.readyReplicas'. + 2. The value of '.status.updateRevision' matches '.status.currentRevision'. + + If the StatefulSet has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. + """ + pulumi.log.warn("StatefulSet is deprecated: apps/v1beta1/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta1' + __props__['kind'] = 'StatefulSet' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:StatefulSet"), pulumi.Alias(type_="kubernetes:apps/v1beta2:StatefulSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(StatefulSet, __self__).__init__( + 'kubernetes:apps/v1beta1:StatefulSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StatefulSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StatefulSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py new file mode 100644 index 0000000000..f42e8c8fae --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py @@ -0,0 +1,82 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StatefulSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + StatefulSetList is a collection of StatefulSets. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'StatefulSetList' + __props__['metadata'] = metadata + super(StatefulSetList, __self__).__init__( + 'kubernetes:apps/v1beta1:StatefulSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StatefulSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StatefulSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py new file mode 100644 index 0000000000..2cd6cda286 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/__init__.py @@ -0,0 +1,11 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .ControllerRevision import * +from .ControllerRevisionList import * +from .Deployment import * +from .DeploymentList import * +from .StatefulSet import * +from .StatefulSetList import * diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py new file mode 100644 index 0000000000..207c85e9d5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py @@ -0,0 +1,103 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + +class ControllerRevision(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + data: pulumi.Output[dict] + """ + Data is the serialized representation of the state. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + revision: pulumi.Output[float] + """ + Revision indicates the revision of the state represented by Data. + """ + warnings.warn("apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + def __init__(__self__, resource_name, opts=None, api_version=None, data=None, kind=None, metadata=None, revision=None, __props__=None, __name__=None, __opts__=None): + """ + ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[dict] data: Data is the serialized representation of the state. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[float] revision: Revision indicates the revision of the state represented by Data. + """ + pulumi.log.warn("ControllerRevision is deprecated: apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta2' + __props__['data'] = data + __props__['kind'] = 'ControllerRevision' + __props__['metadata'] = metadata + if revision is None: + raise TypeError("Missing required property 'revision'") + __props__['revision'] = revision + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:ControllerRevision"), pulumi.Alias(type_="kubernetes:apps/v1beta1:ControllerRevision")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ControllerRevision, __self__).__init__( + 'kubernetes:apps/v1beta2:ControllerRevision', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ControllerRevision resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ControllerRevision(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py new file mode 100644 index 0000000000..fa39dea2f8 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ControllerRevisionList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of ControllerRevisions + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ControllerRevisionList is a resource containing a list of ControllerRevision objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of ControllerRevisions + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta2' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ControllerRevisionList' + __props__['metadata'] = metadata + super(ControllerRevisionList, __self__).__init__( + 'kubernetes:apps/v1beta2:ControllerRevisionList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ControllerRevisionList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ControllerRevisionList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py new file mode 100644 index 0000000000..23fa382a48 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py @@ -0,0 +1,100 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + +class DaemonSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + warnings.warn("apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + DaemonSet represents the configuration of a daemon set. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + pulumi.log.warn("DaemonSet is deprecated: apps/v1beta2/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta2' + __props__['kind'] = 'DaemonSet' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:DaemonSet"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:DaemonSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(DaemonSet, __self__).__init__( + 'kubernetes:apps/v1beta2:DaemonSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DaemonSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DaemonSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py new file mode 100644 index 0000000000..a365422731 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DaemonSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + A list of daemon sets. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DaemonSetList is a collection of daemon sets. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: A list of daemon sets. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta2' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'DaemonSetList' + __props__['metadata'] = metadata + super(DaemonSetList, __self__).__init__( + 'kubernetes:apps/v1beta2:DaemonSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DaemonSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DaemonSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py new file mode 100644 index 0000000000..a663c47fd0 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py @@ -0,0 +1,122 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + +class Deployment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of the Deployment. + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the Deployment. + """ + warnings.warn("apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Deployment enables declarative updates for Pods and ReplicaSets. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Deployment has begun to be updated by the Deployment controller. If the current + generation of the Deployment is > 1, then this means that the current generation must + be different from the generation reported by the last outputs. + 2. There exists a ReplicaSet whose revision is equal to the current revision of the + Deployment. + 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' + member is set to 'True'. + 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type + 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is + 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, + because it doesn't do a rollout (i.e., it simply creates the Deployment and + corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. + + If the Deployment has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. + :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. + """ + pulumi.log.warn("Deployment is deprecated: apps/v1beta2/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta2' + __props__['kind'] = 'Deployment' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta1:Deployment"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:Deployment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Deployment, __self__).__init__( + 'kubernetes:apps/v1beta2:Deployment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Deployment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Deployment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py new file mode 100644 index 0000000000..0150556744 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DeploymentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Deployments. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DeploymentList is a list of Deployments. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Deployments. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta2' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'DeploymentList' + __props__['metadata'] = metadata + super(DeploymentList, __self__).__init__( + 'kubernetes:apps/v1beta2:DeploymentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DeploymentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DeploymentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py new file mode 100644 index 0000000000..0e6b878b5b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py @@ -0,0 +1,100 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + +class ReplicaSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + warnings.warn("apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicaSet ensures that a specified number of pod replicas are running at any given time. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + pulumi.log.warn("ReplicaSet is deprecated: apps/v1beta2/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta2' + __props__['kind'] = 'ReplicaSet' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:ReplicaSet"), pulumi.Alias(type_="kubernetes:extensions/v1beta1:ReplicaSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ReplicaSet, __self__).__init__( + 'kubernetes:apps/v1beta2:ReplicaSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicaSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicaSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py new file mode 100644 index 0000000000..75e2b86140 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ReplicaSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicaSetList is a collection of ReplicaSets. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta2' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ReplicaSetList' + __props__['metadata'] = metadata + super(ReplicaSetList, __self__).__init__( + 'kubernetes:apps/v1beta2:ReplicaSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicaSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicaSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py new file mode 100644 index 0000000000..9bee56bddd --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py @@ -0,0 +1,112 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + +class StatefulSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec defines the desired identities of pods in this set. + """ + status: pulumi.Output[dict] + """ + Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + """ + warnings.warn("apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + StatefulSet represents a set of pods with consistent identities. Identities are defined as: + - Network: A single stable DNS and hostname. + - Storage: As many VolumeClaims as requested. + The StatefulSet guarantees that a given network identity will always map to the same storage identity. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The value of 'spec.replicas' matches '.status.replicas', '.status.currentReplicas', + and '.status.readyReplicas'. + 2. The value of '.status.updateRevision' matches '.status.currentRevision'. + + If the StatefulSet has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec defines the desired identities of pods in this set. + """ + pulumi.log.warn("StatefulSet is deprecated: apps/v1beta2/StatefulSet is deprecated by apps/v1/StatefulSet and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta2' + __props__['kind'] = 'StatefulSet' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:StatefulSet"), pulumi.Alias(type_="kubernetes:apps/v1beta1:StatefulSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(StatefulSet, __self__).__init__( + 'kubernetes:apps/v1beta2:StatefulSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StatefulSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StatefulSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py new file mode 100644 index 0000000000..3329a4e28b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py @@ -0,0 +1,82 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StatefulSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + StatefulSetList is a collection of StatefulSets. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'apps/v1beta2' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'StatefulSetList' + __props__['metadata'] = metadata + super(StatefulSetList, __self__).__init__( + 'kubernetes:apps/v1beta2:StatefulSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StatefulSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StatefulSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py new file mode 100644 index 0000000000..bd15244394 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/__init__.py @@ -0,0 +1,15 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .ControllerRevision import * +from .ControllerRevisionList import * +from .DaemonSet import * +from .DaemonSetList import * +from .Deployment import * +from .DeploymentList import * +from .ReplicaSet import * +from .ReplicaSetList import * +from .StatefulSet import * +from .StatefulSetList import * diff --git a/sdk/python/pulumi_kubernetes/auditregistration/__init__.py b/sdk/python/pulumi_kubernetes/auditregistration/__init__.py new file mode 100644 index 0000000000..d688fb9289 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/auditregistration/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1alpha1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py new file mode 100644 index 0000000000..dbaea019d9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py @@ -0,0 +1,84 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class AuditSink(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec defines the audit configuration spec + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + AuditSink represents a cluster level audit sink + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec defines the audit configuration spec + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'auditregistration.k8s.io/v1alpha1' + __props__['kind'] = 'AuditSink' + __props__['metadata'] = metadata + __props__['spec'] = spec + super(AuditSink, __self__).__init__( + 'kubernetes:auditregistration.k8s.io/v1alpha1:AuditSink', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing AuditSink resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return AuditSink(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py new file mode 100644 index 0000000000..935722c2e2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class AuditSinkList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of audit configurations. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + AuditSinkList is a list of AuditSink items. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of audit configurations. + :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 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'auditregistration.k8s.io/v1alpha1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'AuditSinkList' + __props__['metadata'] = metadata + super(AuditSinkList, __self__).__init__( + 'kubernetes:auditregistration.k8s.io/v1alpha1:AuditSinkList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing AuditSinkList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return AuditSinkList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py new file mode 100644 index 0000000000..cbc631c4d8 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .AuditSink import * +from .AuditSinkList import * diff --git a/sdk/python/pulumi_kubernetes/authentication/__init__.py b/sdk/python/pulumi_kubernetes/authentication/__init__.py new file mode 100644 index 0000000000..4c1e851a21 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authentication/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py new file mode 100644 index 0000000000..a9f8f84a88 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py @@ -0,0 +1,84 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class TokenRequest(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + status: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + TokenRequest requests a token for a given service account. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'authentication.k8s.io/v1' + __props__['kind'] = 'TokenRequest' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + super(TokenRequest, __self__).__init__( + 'kubernetes:authentication.k8s.io/v1:TokenRequest', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing TokenRequest resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return TokenRequest(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py new file mode 100644 index 0000000000..264dfba630 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class TokenReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request can be authenticated. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'authentication.k8s.io/v1' + __props__['kind'] = 'TokenReview' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authentication.k8s.io/v1beta1:TokenReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(TokenReview, __self__).__init__( + 'kubernetes:authentication.k8s.io/v1:TokenReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing TokenReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return TokenReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py b/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py new file mode 100644 index 0000000000..4c19c0eef7 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authentication/v1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .TokenRequest import * +from .TokenReview import * diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py new file mode 100644 index 0000000000..2d82b013cd --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class TokenReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request can be authenticated. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'authentication.k8s.io/v1beta1' + __props__['kind'] = 'TokenReview' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authentication.k8s.io/v1:TokenReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(TokenReview, __self__).__init__( + 'kubernetes:authentication.k8s.io/v1beta1:TokenReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing TokenReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return TokenReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py new file mode 100644 index 0000000000..969b776d63 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/__init__.py @@ -0,0 +1,6 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .TokenReview import * diff --git a/sdk/python/pulumi_kubernetes/authorization/__init__.py b/sdk/python/pulumi_kubernetes/authorization/__init__.py new file mode 100644 index 0000000000..4c1e851a21 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py new file mode 100644 index 0000000000..3d4723fe2c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class LocalSubjectAccessReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request is allowed or not + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'authorization.k8s.io/v1' + __props__['kind'] = 'LocalSubjectAccessReview' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(LocalSubjectAccessReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1:LocalSubjectAccessReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing LocalSubjectAccessReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return LocalSubjectAccessReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py new file mode 100644 index 0000000000..b9cd5606e1 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SelfSubjectAccessReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated. user and groups must be empty + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request is allowed or not + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. user and groups must be empty + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'authorization.k8s.io/v1' + __props__['kind'] = 'SelfSubjectAccessReview' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:SelfSubjectAccessReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(SelfSubjectAccessReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1:SelfSubjectAccessReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SelfSubjectAccessReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SelfSubjectAccessReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py new file mode 100644 index 0000000000..3cbd4ba4d7 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SelfSubjectRulesReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated. + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates the set of actions a user can perform. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'authorization.k8s.io/v1' + __props__['kind'] = 'SelfSubjectRulesReview' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:SelfSubjectRulesReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(SelfSubjectRulesReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1:SelfSubjectRulesReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SelfSubjectRulesReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SelfSubjectRulesReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py new file mode 100644 index 0000000000..86f7e14e98 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SubjectAccessReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request is allowed or not + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + SubjectAccessReview checks whether or not a user or group can perform an action. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'authorization.k8s.io/v1' + __props__['kind'] = 'SubjectAccessReview' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1beta1:SubjectAccessReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(SubjectAccessReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1:SubjectAccessReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SubjectAccessReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SubjectAccessReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py b/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py new file mode 100644 index 0000000000..973ca34da2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1/__init__.py @@ -0,0 +1,9 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .LocalSubjectAccessReview import * +from .SelfSubjectAccessReview import * +from .SelfSubjectRulesReview import * +from .SubjectAccessReview import * diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py new file mode 100644 index 0000000000..50f0413ae8 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class LocalSubjectAccessReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request is allowed or not + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'authorization.k8s.io/v1beta1' + __props__['kind'] = 'LocalSubjectAccessReview' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:LocalSubjectAccessReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(LocalSubjectAccessReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing LocalSubjectAccessReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return LocalSubjectAccessReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py new file mode 100644 index 0000000000..3bd29d571d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SelfSubjectAccessReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated. user and groups must be empty + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request is allowed or not + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should always be able to check whether they can perform an action + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. user and groups must be empty + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'authorization.k8s.io/v1beta1' + __props__['kind'] = 'SelfSubjectAccessReview' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:SelfSubjectAccessReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(SelfSubjectAccessReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1beta1:SelfSubjectAccessReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SelfSubjectAccessReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SelfSubjectAccessReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py new file mode 100644 index 0000000000..1c7cd584bd --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SelfSubjectRulesReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated. + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates the set of actions a user can perform. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'authorization.k8s.io/v1beta1' + __props__['kind'] = 'SelfSubjectRulesReview' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:SelfSubjectRulesReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(SelfSubjectRulesReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1beta1:SelfSubjectRulesReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SelfSubjectRulesReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SelfSubjectRulesReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py new file mode 100644 index 0000000000..e0fe3789c8 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SubjectAccessReview(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Spec holds information about the request being evaluated + """ + status: pulumi.Output[dict] + """ + Status is filled in by the server and indicates whether the request is allowed or not + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + SubjectAccessReview checks whether or not a user or group can perform an action. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Spec holds information about the request being evaluated + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'authorization.k8s.io/v1beta1' + __props__['kind'] = 'SubjectAccessReview' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:authorization.k8s.io/v1:SubjectAccessReview")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(SubjectAccessReview, __self__).__init__( + 'kubernetes:authorization.k8s.io/v1beta1:SubjectAccessReview', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SubjectAccessReview resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SubjectAccessReview(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py new file mode 100644 index 0000000000..973ca34da2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/__init__.py @@ -0,0 +1,9 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .LocalSubjectAccessReview import * +from .SelfSubjectAccessReview import * +from .SelfSubjectRulesReview import * +from .SubjectAccessReview import * diff --git a/sdk/python/pulumi_kubernetes/autoscaling/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/__init__.py new file mode 100644 index 0000000000..aadeed7f52 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1', 'v2beta1', 'v2beta2'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py new file mode 100644 index 0000000000..bcce7eacb7 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py @@ -0,0 +1,95 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class HorizontalPodAutoscaler(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + status: pulumi.Output[dict] + """ + current information about the autoscaler. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + configuration of a horizontal pod autoscaler. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'autoscaling/v1' + __props__['kind'] = 'HorizontalPodAutoscaler' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler"), pulumi.Alias(type_="kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(HorizontalPodAutoscaler, __self__).__init__( + 'kubernetes:autoscaling/v1:HorizontalPodAutoscaler', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing HorizontalPodAutoscaler resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return HorizontalPodAutoscaler(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py new file mode 100644 index 0000000000..f5283e326a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class HorizontalPodAutoscalerList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + list of horizontal pod autoscaler objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + list of horizontal pod autoscaler objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: list of horizontal pod autoscaler objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'autoscaling/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'HorizontalPodAutoscalerList' + __props__['metadata'] = metadata + super(HorizontalPodAutoscalerList, __self__).__init__( + 'kubernetes:autoscaling/v1:HorizontalPodAutoscalerList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing HorizontalPodAutoscalerList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return HorizontalPodAutoscalerList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py new file mode 100644 index 0000000000..3057ccbec9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .HorizontalPodAutoscaler import * +from .HorizontalPodAutoscalerList import * diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py new file mode 100644 index 0000000000..4eb6d83829 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py @@ -0,0 +1,95 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class HorizontalPodAutoscaler(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + status: pulumi.Output[dict] + """ + status is the current information about the autoscaler. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'autoscaling/v2beta1' + __props__['kind'] = 'HorizontalPodAutoscaler' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:autoscaling/v1:HorizontalPodAutoscaler"), pulumi.Alias(type_="kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(HorizontalPodAutoscaler, __self__).__init__( + 'kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing HorizontalPodAutoscaler resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return HorizontalPodAutoscaler(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py new file mode 100644 index 0000000000..5c28643f1f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class HorizontalPodAutoscalerList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of horizontal pod autoscaler objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + metadata is the standard list metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of horizontal pod autoscaler objects. + :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 + :param pulumi.Input[dict] metadata: metadata is the standard list metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'autoscaling/v2beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'HorizontalPodAutoscalerList' + __props__['metadata'] = metadata + super(HorizontalPodAutoscalerList, __self__).__init__( + 'kubernetes:autoscaling/v2beta1:HorizontalPodAutoscalerList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing HorizontalPodAutoscalerList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return HorizontalPodAutoscalerList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py new file mode 100644 index 0000000000..3057ccbec9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .HorizontalPodAutoscaler import * +from .HorizontalPodAutoscalerList import * diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py new file mode 100644 index 0000000000..bcca76ef69 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py @@ -0,0 +1,95 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class HorizontalPodAutoscaler(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + status: pulumi.Output[dict] + """ + status is the current information about the autoscaler. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'autoscaling/v2beta2' + __props__['kind'] = 'HorizontalPodAutoscaler' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:autoscaling/v1:HorizontalPodAutoscaler"), pulumi.Alias(type_="kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(HorizontalPodAutoscaler, __self__).__init__( + 'kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing HorizontalPodAutoscaler resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return HorizontalPodAutoscaler(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py new file mode 100644 index 0000000000..a6c8886421 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class HorizontalPodAutoscalerList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of horizontal pod autoscaler objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + metadata is the standard list metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of horizontal pod autoscaler objects. + :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 + :param pulumi.Input[dict] metadata: metadata is the standard list metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'autoscaling/v2beta2' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'HorizontalPodAutoscalerList' + __props__['metadata'] = metadata + super(HorizontalPodAutoscalerList, __self__).__init__( + 'kubernetes:autoscaling/v2beta2:HorizontalPodAutoscalerList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing HorizontalPodAutoscalerList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return HorizontalPodAutoscalerList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py new file mode 100644 index 0000000000..3057ccbec9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .HorizontalPodAutoscaler import * +from .HorizontalPodAutoscalerList import * diff --git a/sdk/python/pulumi_kubernetes/batch/__init__.py b/sdk/python/pulumi_kubernetes/batch/__init__.py new file mode 100644 index 0000000000..11842b0e79 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1', 'v1beta1', 'v2alpha1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/batch/v1/Job.py b/sdk/python/pulumi_kubernetes/batch/v1/Job.py new file mode 100644 index 0000000000..06faa018be --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v1/Job.py @@ -0,0 +1,108 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Job(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Job represents the configuration of a single job. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Job's '.status.startTime' is set, which indicates that the Job has started running. + 2. The Job's '.status.conditions' has a status of type 'Complete', and a 'status' set + to 'True'. + 3. The Job's '.status.conditions' do not have a status of type 'Failed', with a + 'status' set to 'True'. If this condition is set, we should fail the Job immediately. + + If the Job has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'batch/v1' + __props__['kind'] = 'Job' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(Job, __self__).__init__( + 'kubernetes:batch/v1:Job', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Job resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Job(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py new file mode 100644 index 0000000000..727a52dcb8 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class JobList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of Jobs. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + JobList is a collection of jobs. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of Jobs. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'batch/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'JobList' + __props__['metadata'] = metadata + super(JobList, __self__).__init__( + 'kubernetes:batch/v1:JobList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing JobList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return JobList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1/__init__.py b/sdk/python/pulumi_kubernetes/batch/v1/__init__.py new file mode 100644 index 0000000000..4ab151b0e7 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .Job import * +from .JobList import * diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py new file mode 100644 index 0000000000..560bc05f33 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py @@ -0,0 +1,95 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CronJob(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CronJob represents the configuration of a single cron job. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'batch/v1beta1' + __props__['kind'] = 'CronJob' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:batch/v2alpha1:CronJob")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CronJob, __self__).__init__( + 'kubernetes:batch/v1beta1:CronJob', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CronJob resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CronJob(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py new file mode 100644 index 0000000000..d39d51c84a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CronJobList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of CronJobs. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CronJobList is a collection of cron jobs. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of CronJobs. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'batch/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'CronJobList' + __props__['metadata'] = metadata + super(CronJobList, __self__).__init__( + 'kubernetes:batch/v1beta1:CronJobList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CronJobList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CronJobList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py new file mode 100644 index 0000000000..28944acdc0 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .CronJob import * +from .CronJobList import * diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py new file mode 100644 index 0000000000..e91410c8bc --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py @@ -0,0 +1,95 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CronJob(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CronJob represents the configuration of a single cron job. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'batch/v2alpha1' + __props__['kind'] = 'CronJob' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:batch/v1beta1:CronJob")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CronJob, __self__).__init__( + 'kubernetes:batch/v2alpha1:CronJob', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CronJob resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CronJob(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py new file mode 100644 index 0000000000..4dcd89c96f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CronJobList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of CronJobs. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CronJobList is a collection of cron jobs. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of CronJobs. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'batch/v2alpha1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'CronJobList' + __props__['metadata'] = metadata + super(CronJobList, __self__).__init__( + 'kubernetes:batch/v2alpha1:CronJobList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CronJobList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CronJobList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py new file mode 100644 index 0000000000..28944acdc0 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .CronJob import * +from .CronJobList import * diff --git a/sdk/python/pulumi_kubernetes/certificates/__init__.py b/sdk/python/pulumi_kubernetes/certificates/__init__.py new file mode 100644 index 0000000000..a311e81ad2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/certificates/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py new file mode 100644 index 0000000000..af00135f1d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py @@ -0,0 +1,89 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CertificateSigningRequest(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + The certificate request itself and any additional information. + """ + status: pulumi.Output[dict] + """ + Derived information about the request. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Describes a certificate signing request + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: The certificate request itself and any additional information. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'certificates.k8s.io/v1beta1' + __props__['kind'] = 'CertificateSigningRequest' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(CertificateSigningRequest, __self__).__init__( + 'kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequest', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CertificateSigningRequest resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CertificateSigningRequest(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py new file mode 100644 index 0000000000..976a246d52 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py @@ -0,0 +1,81 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CertificateSigningRequestList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + Create a CertificateSigningRequestList resource with the given unique name, props, and options. + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'certificates.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'CertificateSigningRequestList' + __props__['metadata'] = metadata + super(CertificateSigningRequestList, __self__).__init__( + 'kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequestList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CertificateSigningRequestList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CertificateSigningRequestList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py new file mode 100644 index 0000000000..85e0e2e398 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .CertificateSigningRequest import * +from .CertificateSigningRequestList import * diff --git a/sdk/python/pulumi_kubernetes/coordination/__init__.py b/sdk/python/pulumi_kubernetes/coordination/__init__.py new file mode 100644 index 0000000000..4c1e851a21 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/coordination/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py new file mode 100644 index 0000000000..d92d7af57d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Lease(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Lease defines a lease concept. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'coordination.k8s.io/v1' + __props__['kind'] = 'Lease' + __props__['metadata'] = metadata + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:coordination.k8s.io/v1beta1:Lease")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Lease, __self__).__init__( + 'kubernetes:coordination.k8s.io/v1:Lease', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Lease resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Lease(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py new file mode 100644 index 0000000000..e7697e0dab --- /dev/null +++ b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class LeaseList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + LeaseList is a list of Lease objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'coordination.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'LeaseList' + __props__['metadata'] = metadata + super(LeaseList, __self__).__init__( + 'kubernetes:coordination.k8s.io/v1:LeaseList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing LeaseList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return LeaseList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py b/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py new file mode 100644 index 0000000000..80fc5a5b17 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/coordination/v1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .Lease import * +from .LeaseList import * diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py new file mode 100644 index 0000000000..a2d253324f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Lease(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Lease defines a lease concept. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'coordination.k8s.io/v1beta1' + __props__['kind'] = 'Lease' + __props__['metadata'] = metadata + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:coordination.k8s.io/v1:Lease")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Lease, __self__).__init__( + 'kubernetes:coordination.k8s.io/v1beta1:Lease', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Lease resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Lease(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py new file mode 100644 index 0000000000..d02f7cc3a5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class LeaseList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + LeaseList is a list of Lease objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'coordination.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'LeaseList' + __props__['metadata'] = metadata + super(LeaseList, __self__).__init__( + 'kubernetes:coordination.k8s.io/v1beta1:LeaseList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing LeaseList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return LeaseList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py new file mode 100644 index 0000000000..80fc5a5b17 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .Lease import * +from .LeaseList import * diff --git a/sdk/python/pulumi_kubernetes/core/__init__.py b/sdk/python/pulumi_kubernetes/core/__init__.py new file mode 100644 index 0000000000..e2a396b5dc --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/core/v1/Binding.py b/sdk/python/pulumi_kubernetes/core/v1/Binding.py new file mode 100644 index 0000000000..90726387e7 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/Binding.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Binding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + target: pulumi.Output[dict] + """ + The target object that you want to bind to the standard object. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, target=None, __props__=None, __name__=None, __opts__=None): + """ + Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] target: The target object that you want to bind to the standard object. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['kind'] = 'Binding' + __props__['metadata'] = metadata + if target is None: + raise TypeError("Missing required property 'target'") + __props__['target'] = target + super(Binding, __self__).__init__( + 'kubernetes:core/v1:Binding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Binding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Binding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py new file mode 100644 index 0000000000..be39a3eb1d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py @@ -0,0 +1,88 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ComponentStatus(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + conditions: pulumi.Output[list] + """ + List of component conditions observed + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, conditions=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ComponentStatus (and ComponentStatusList) holds the cluster validation info. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] conditions: List of component conditions observed + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['conditions'] = conditions + __props__['kind'] = 'ComponentStatus' + __props__['metadata'] = metadata + super(ComponentStatus, __self__).__init__( + 'kubernetes:core/v1:ComponentStatus', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ComponentStatus resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ComponentStatus(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py new file mode 100644 index 0000000000..dec69727ac --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ComponentStatusList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ComponentStatus objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + Status of all the conditions for the component as a list of ComponentStatus objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ComponentStatus objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ComponentStatusList' + __props__['metadata'] = metadata + super(ComponentStatusList, __self__).__init__( + 'kubernetes:core/v1:ComponentStatusList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ComponentStatusList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ComponentStatusList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py new file mode 100644 index 0000000000..bfc50183c5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py @@ -0,0 +1,100 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ConfigMap(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + binary_data: pulumi.Output[dict] + """ + BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + """ + data: pulumi.Output[dict] + """ + Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + """ + immutable: pulumi.Output[bool] + """ + 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. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, binary_data=None, data=None, immutable=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ConfigMap holds configuration data for pods to consume. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[dict] binary_data: BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. + :param pulumi.Input[dict] data: Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. + :param pulumi.Input[bool] immutable: 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. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['binary_data'] = binary_data + __props__['data'] = data + __props__['immutable'] = immutable + __props__['kind'] = 'ConfigMap' + __props__['metadata'] = metadata + super(ConfigMap, __self__).__init__( + 'kubernetes:core/v1:ConfigMap', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ConfigMap resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ConfigMap(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py new file mode 100644 index 0000000000..d0bc175c36 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ConfigMapList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of ConfigMaps. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ConfigMapList is a resource containing a list of ConfigMap objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of ConfigMaps. + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ConfigMapList' + __props__['metadata'] = metadata + super(ConfigMapList, __self__).__init__( + 'kubernetes:core/v1:ConfigMapList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ConfigMapList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ConfigMapList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py b/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py new file mode 100644 index 0000000000..e532563151 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py @@ -0,0 +1,99 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Endpoints(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + subsets: pulumi.Output[list] + """ + The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, subsets=None, __props__=None, __name__=None, __opts__=None): + """ + Endpoints is a collection of endpoints that implement the actual service. Example: + Name: "mysvc", + Subsets: [ + { + Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + }, + { + Addresses: [{"ip": "10.10.3.3"}], + Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] + }, + ] + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[list] subsets: The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['kind'] = 'Endpoints' + __props__['metadata'] = metadata + __props__['subsets'] = subsets + super(Endpoints, __self__).__init__( + 'kubernetes:core/v1:Endpoints', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Endpoints resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Endpoints(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py new file mode 100644 index 0000000000..308e8b5d31 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class EndpointsList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of endpoints. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + EndpointsList is a list of endpoints. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of endpoints. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'EndpointsList' + __props__['metadata'] = metadata + super(EndpointsList, __self__).__init__( + 'kubernetes:core/v1:EndpointsList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing EndpointsList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return EndpointsList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Event.py b/sdk/python/pulumi_kubernetes/core/v1/Event.py new file mode 100644 index 0000000000..501ec25ee9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/Event.py @@ -0,0 +1,172 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Event(pulumi.CustomResource): + action: pulumi.Output[str] + """ + What action was taken/failed regarding to the Regarding object. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + count: pulumi.Output[float] + """ + The number of times this event has occurred. + """ + event_time: pulumi.Output[str] + """ + Time when this Event was first observed. + """ + first_timestamp: pulumi.Output[str] + """ + The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + """ + involved_object: pulumi.Output[dict] + """ + The object that this event is about. + """ + kind: pulumi.Output[str] + """ + 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 + """ + last_timestamp: pulumi.Output[str] + """ + The time at which the most recent occurrence of this event was recorded. + """ + message: pulumi.Output[str] + """ + A human-readable description of the status of this operation. + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + reason: pulumi.Output[str] + """ + This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + """ + related: pulumi.Output[dict] + """ + Optional secondary object for more complex actions. + """ + reporting_component: pulumi.Output[str] + """ + Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + """ + reporting_instance: pulumi.Output[str] + """ + ID of the controller instance, e.g. `kubelet-xyzf`. + """ + series: pulumi.Output[dict] + """ + Data about the Event series this event represents or nil if it's a singleton Event. + """ + source: pulumi.Output[dict] + """ + The component reporting this event. Should be a short machine understandable string. + """ + type: pulumi.Output[str] + """ + Type of this event (Normal, Warning), new types could be added in the future + """ + def __init__(__self__, resource_name, opts=None, action=None, api_version=None, count=None, event_time=None, first_timestamp=None, involved_object=None, kind=None, last_timestamp=None, message=None, metadata=None, reason=None, related=None, reporting_component=None, reporting_instance=None, series=None, source=None, type=None, __props__=None, __name__=None, __opts__=None): + """ + Event is a report of an event somewhere in the cluster. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] action: What action was taken/failed regarding to the Regarding object. + :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 + :param pulumi.Input[float] count: The number of times this event has occurred. + :param pulumi.Input[str] event_time: Time when this Event was first observed. + :param pulumi.Input[str] first_timestamp: The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + :param pulumi.Input[dict] involved_object: The object that this event is about. + :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 + :param pulumi.Input[str] last_timestamp: The time at which the most recent occurrence of this event was recorded. + :param pulumi.Input[str] message: A human-readable description of the status of this operation. + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] reason: This should be a short, machine understandable string that gives the reason for the transition into the object's current status. + :param pulumi.Input[dict] related: Optional secondary object for more complex actions. + :param pulumi.Input[str] reporting_component: Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + :param pulumi.Input[str] reporting_instance: ID of the controller instance, e.g. `kubelet-xyzf`. + :param pulumi.Input[dict] series: Data about the Event series this event represents or nil if it's a singleton Event. + :param pulumi.Input[dict] source: The component reporting this event. Should be a short machine understandable string. + :param pulumi.Input[str] type: Type of this event (Normal, Warning), new types could be added in the future + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['action'] = action + __props__['api_version'] = 'v1' + __props__['count'] = count + __props__['event_time'] = event_time + __props__['first_timestamp'] = first_timestamp + if involved_object is None: + raise TypeError("Missing required property 'involved_object'") + __props__['involved_object'] = involved_object + __props__['kind'] = 'Event' + __props__['last_timestamp'] = last_timestamp + __props__['message'] = message + if metadata is None: + raise TypeError("Missing required property 'metadata'") + __props__['metadata'] = metadata + __props__['reason'] = reason + __props__['related'] = related + __props__['reporting_component'] = reporting_component + __props__['reporting_instance'] = reporting_instance + __props__['series'] = series + __props__['source'] = source + __props__['type'] = type + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:events.k8s.io/v1beta1:Event")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Event, __self__).__init__( + 'kubernetes:core/v1:Event', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Event resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Event(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/EventList.py b/sdk/python/pulumi_kubernetes/core/v1/EventList.py new file mode 100644 index 0000000000..521bd02bd6 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/EventList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class EventList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of events + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + EventList is a list of events. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of events + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'EventList' + __props__['metadata'] = metadata + super(EventList, __self__).__init__( + 'kubernetes:core/v1:EventList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing EventList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return EventList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py new file mode 100644 index 0000000000..6b18ebb708 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py @@ -0,0 +1,88 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class LimitRange(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + LimitRange sets resource usage limits for each kind of resource in a Namespace. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['kind'] = 'LimitRange' + __props__['metadata'] = metadata + __props__['spec'] = spec + super(LimitRange, __self__).__init__( + 'kubernetes:core/v1:LimitRange', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing LimitRange resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return LimitRange(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py new file mode 100644 index 0000000000..60d56a6f8e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class LimitRangeList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + LimitRangeList is a list of LimitRange items. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'LimitRangeList' + __props__['metadata'] = metadata + super(LimitRangeList, __self__).__init__( + 'kubernetes:core/v1:LimitRangeList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing LimitRangeList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return LimitRangeList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Namespace.py b/sdk/python/pulumi_kubernetes/core/v1/Namespace.py new file mode 100644 index 0000000000..427732cbc2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/Namespace.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Namespace(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Namespace provides a scope for Names. Use of multiple namespaces is optional. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['kind'] = 'Namespace' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(Namespace, __self__).__init__( + 'kubernetes:core/v1:Namespace', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Namespace resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Namespace(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py new file mode 100644 index 0000000000..6c609129ed --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class NamespaceList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + NamespaceList is a list of Namespaces. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'NamespaceList' + __props__['metadata'] = metadata + super(NamespaceList, __self__).__init__( + 'kubernetes:core/v1:NamespaceList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing NamespaceList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return NamespaceList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Node.py b/sdk/python/pulumi_kubernetes/core/v1/Node.py new file mode 100644 index 0000000000..24cf106a83 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/Node.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Node(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['kind'] = 'Node' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(Node, __self__).__init__( + 'kubernetes:core/v1:Node', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Node resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Node(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py new file mode 100644 index 0000000000..82de885baf --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class NodeList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of nodes + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + NodeList is the whole list of all Nodes which have been registered with master. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of nodes + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'NodeList' + __props__['metadata'] = metadata + super(NodeList, __self__).__init__( + 'kubernetes:core/v1:NodeList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing NodeList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return NodeList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py new file mode 100644 index 0000000000..a276f61d06 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PersistentVolume(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + """ + status: pulumi.Output[dict] + """ + Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['kind'] = 'PersistentVolume' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(PersistentVolume, __self__).__init__( + 'kubernetes:core/v1:PersistentVolume', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PersistentVolume resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PersistentVolume(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py new file mode 100644 index 0000000000..005ea03fed --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PersistentVolumeClaim(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """ + status: pulumi.Output[dict] + """ + Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PersistentVolumeClaim is a user's request for and claim to a persistent volume + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['kind'] = 'PersistentVolumeClaim' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(PersistentVolumeClaim, __self__).__init__( + 'kubernetes:core/v1:PersistentVolumeClaim', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PersistentVolumeClaim resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PersistentVolumeClaim(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py new file mode 100644 index 0000000000..8fa688edf7 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PersistentVolumeClaimList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PersistentVolumeClaimList is a list of PersistentVolumeClaim items. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'PersistentVolumeClaimList' + __props__['metadata'] = metadata + super(PersistentVolumeClaimList, __self__).__init__( + 'kubernetes:core/v1:PersistentVolumeClaimList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PersistentVolumeClaimList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PersistentVolumeClaimList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py new file mode 100644 index 0000000000..ce780121fe --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PersistentVolumeList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PersistentVolumeList is a list of PersistentVolume items. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'PersistentVolumeList' + __props__['metadata'] = metadata + super(PersistentVolumeList, __self__).__init__( + 'kubernetes:core/v1:PersistentVolumeList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PersistentVolumeList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PersistentVolumeList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Pod.py b/sdk/python/pulumi_kubernetes/core/v1/Pod.py new file mode 100644 index 0000000000..e368f68488 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/Pod.py @@ -0,0 +1,108 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Pod(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Pod is scheduled ("PodScheduled"" '.status.condition' is true). + 2. The Pod is initialized ("Initialized" '.status.condition' is true). + 3. The Pod is ready ("Ready" '.status.condition' is true) and the '.status.phase' is + set to "Running". + Or (for Jobs): The Pod succeeded ('.status.phase' set to "Succeeded"). + + If the Pod has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['kind'] = 'Pod' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(Pod, __self__).__init__( + 'kubernetes:core/v1:Pod', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Pod resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Pod(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodList.py b/sdk/python/pulumi_kubernetes/core/v1/PodList.py new file mode 100644 index 0000000000..8e318be7e0 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/PodList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PodList is a list of Pods. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'PodList' + __props__['metadata'] = metadata + super(PodList, __self__).__init__( + 'kubernetes:core/v1:PodList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py new file mode 100644 index 0000000000..0984849455 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py @@ -0,0 +1,88 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodTemplate(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + template: pulumi.Output[dict] + """ + Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, template=None, __props__=None, __name__=None, __opts__=None): + """ + PodTemplate describes a template for creating copies of a predefined pod. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] template: Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['kind'] = 'PodTemplate' + __props__['metadata'] = metadata + __props__['template'] = template + super(PodTemplate, __self__).__init__( + 'kubernetes:core/v1:PodTemplate', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodTemplate resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodTemplate(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py new file mode 100644 index 0000000000..c0b5c846d2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodTemplateList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of pod templates + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PodTemplateList is a list of PodTemplates. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of pod templates + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'PodTemplateList' + __props__['metadata'] = metadata + super(PodTemplateList, __self__).__init__( + 'kubernetes:core/v1:PodTemplateList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodTemplateList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodTemplateList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py new file mode 100644 index 0000000000..94b6514311 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ReplicationController(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicationController represents the configuration of a replication controller. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['kind'] = 'ReplicationController' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(ReplicationController, __self__).__init__( + 'kubernetes:core/v1:ReplicationController', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicationController resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicationController(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py new file mode 100644 index 0000000000..92bb1cfa1c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ReplicationControllerList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicationControllerList is a collection of replication controllers. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ReplicationControllerList' + __props__['metadata'] = metadata + super(ReplicationControllerList, __self__).__init__( + 'kubernetes:core/v1:ReplicationControllerList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicationControllerList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicationControllerList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py new file mode 100644 index 0000000000..fdfb247e7c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ResourceQuota(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + ResourceQuota sets aggregate quota restrictions enforced per namespace + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['kind'] = 'ResourceQuota' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(ResourceQuota, __self__).__init__( + 'kubernetes:core/v1:ResourceQuota', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ResourceQuota resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ResourceQuota(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py new file mode 100644 index 0000000000..b8b99f9d3e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ResourceQuotaList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ResourceQuotaList is a list of ResourceQuota items. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ResourceQuotaList' + __props__['metadata'] = metadata + super(ResourceQuotaList, __self__).__init__( + 'kubernetes:core/v1:ResourceQuotaList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ResourceQuotaList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ResourceQuotaList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Secret.py b/sdk/python/pulumi_kubernetes/core/v1/Secret.py new file mode 100644 index 0000000000..4b4a4ac4e4 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/Secret.py @@ -0,0 +1,116 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Secret(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + data: pulumi.Output[dict] + """ + Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + """ + immutable: pulumi.Output[bool] + """ + Immutable, if set to true, ensures that data stored in the Secret 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. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + string_data: pulumi.Output[dict] + """ + stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. + """ + type: pulumi.Output[str] + """ + Used to facilitate programmatic handling of secret data. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, data=None, immutable=None, kind=None, metadata=None, string_data=None, type=None, __props__=None, __name__=None, __opts__=None): + """ + Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. + + Note: While Pulumi automatically encrypts the 'data' and 'stringData' + fields, this encryption only applies to Pulumi's context, including the state file, + the Service, the CLI, etc. Kubernetes does not encrypt Secret resources by default, + and the contents are visible to users with access to the Secret in Kubernetes using + tools like 'kubectl'. + + For more information on securing Kubernetes Secrets, see the following links: + https://kubernetes.io/docs/concepts/configuration/secret/#security-properties + https://kubernetes.io/docs/concepts/configuration/secret/#risks + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[dict] data: Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + :param pulumi.Input[bool] immutable: Immutable, if set to true, ensures that data stored in the Secret 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. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] string_data: stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. + :param pulumi.Input[str] type: Used to facilitate programmatic handling of secret data. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['data'] = data + __props__['immutable'] = immutable + __props__['kind'] = 'Secret' + __props__['metadata'] = metadata + __props__['string_data'] = string_data + __props__['type'] = type + super(Secret, __self__).__init__( + 'kubernetes:core/v1:Secret', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Secret resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Secret(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py new file mode 100644 index 0000000000..83c3aa5ab9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class SecretList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + SecretList is a list of Secret. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'SecretList' + __props__['metadata'] = metadata + super(SecretList, __self__).__init__( + 'kubernetes:core/v1:SecretList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing SecretList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return SecretList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Service.py b/sdk/python/pulumi_kubernetes/core/v1/Service.py new file mode 100644 index 0000000000..226c2866d9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/Service.py @@ -0,0 +1,118 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Service(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. Service object exists. + 2. Related Endpoint objects are created. Each time we get an update, wait 10 seconds + for any stragglers. + 3. The endpoints objects target some number of living objects (unless the Service is + an "empty headless" Service [1] or a Service with '.spec.type: ExternalName'). + 4. External IP address is allocated (if Service has '.spec.type: LoadBalancer'). + + Known limitations: + Services targeting ReplicaSets (and, by extension, Deployments, + StatefulSets, etc.) with '.spec.replicas' set to 0 are not handled, and will time + out. To work around this limitation, set 'pulumi.com/skipAwait: "true"' on + '.metadata.annotations' for the Service. Work to handle this case is in progress [2]. + + [1] https://kubernetes.io/docs/concepts/services-networking/service/#headless-services + [2] https://github.com/pulumi/pulumi-kubernetes/pull/703 + + If the Service has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['kind'] = 'Service' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(Service, __self__).__init__( + 'kubernetes:core/v1:Service', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Service resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Service(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py new file mode 100644 index 0000000000..2da5b8e295 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py @@ -0,0 +1,100 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ServiceAccount(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + automount_service_account_token: pulumi.Output[bool] + """ + AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + """ + image_pull_secrets: pulumi.Output[list] + """ + ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + secrets: pulumi.Output[list] + """ + Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret + """ + def __init__(__self__, resource_name, opts=None, api_version=None, automount_service_account_token=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None, __props__=None, __name__=None, __opts__=None): + """ + ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[bool] automount_service_account_token: AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. + :param pulumi.Input[list] image_pull_secrets: ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[list] secrets: Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['automount_service_account_token'] = automount_service_account_token + __props__['image_pull_secrets'] = image_pull_secrets + __props__['kind'] = 'ServiceAccount' + __props__['metadata'] = metadata + __props__['secrets'] = secrets + super(ServiceAccount, __self__).__init__( + 'kubernetes:core/v1:ServiceAccount', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ServiceAccount resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ServiceAccount(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py new file mode 100644 index 0000000000..231fe5d5d0 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ServiceAccountList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ServiceAccountList is a list of ServiceAccount objects + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ServiceAccountList' + __props__['metadata'] = metadata + super(ServiceAccountList, __self__).__init__( + 'kubernetes:core/v1:ServiceAccountList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ServiceAccountList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ServiceAccountList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py new file mode 100644 index 0000000000..9baee4e255 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ServiceList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of services + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ServiceList holds a list of services. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of services + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ServiceList' + __props__['metadata'] = metadata + super(ServiceList, __self__).__init__( + 'kubernetes:core/v1:ServiceList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ServiceList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ServiceList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/__init__.py b/sdk/python/pulumi_kubernetes/core/v1/__init__.py new file mode 100644 index 0000000000..04ee08a182 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/core/v1/__init__.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .Binding import * +from .ComponentStatus import * +from .ComponentStatusList import * +from .ConfigMap import * +from .ConfigMapList import * +from .Endpoints import * +from .EndpointsList import * +from .Event import * +from .EventList import * +from .LimitRange import * +from .LimitRangeList import * +from .Namespace import * +from .NamespaceList import * +from .Node import * +from .NodeList import * +from .PersistentVolume import * +from .PersistentVolumeClaim import * +from .PersistentVolumeClaimList import * +from .PersistentVolumeList import * +from .Pod import * +from .PodList import * +from .PodTemplate import * +from .PodTemplateList import * +from .ReplicationController import * +from .ReplicationControllerList import * +from .ResourceQuota import * +from .ResourceQuotaList import * +from .Secret import * +from .SecretList import * +from .Service import * +from .ServiceAccount import * +from .ServiceAccountList import * +from .ServiceList import * diff --git a/sdk/python/pulumi_kubernetes/discovery/__init__.py b/sdk/python/pulumi_kubernetes/discovery/__init__.py new file mode 100644 index 0000000000..a311e81ad2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/discovery/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py new file mode 100644 index 0000000000..28835b5783 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py @@ -0,0 +1,104 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class EndpointSlice(pulumi.CustomResource): + address_type: pulumi.Output[str] + """ + addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + endpoints: pulumi.Output[list] + """ + endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + ports: pulumi.Output[list] + """ + ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + """ + def __init__(__self__, resource_name, opts=None, address_type=None, api_version=None, endpoints=None, kind=None, metadata=None, ports=None, __props__=None, __name__=None, __opts__=None): + """ + EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] address_type: addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. + :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 + :param pulumi.Input[list] endpoints: endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] ports: ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + if address_type is None: + raise TypeError("Missing required property 'address_type'") + __props__['address_type'] = address_type + __props__['api_version'] = 'discovery.k8s.io/v1beta1' + if endpoints is None: + raise TypeError("Missing required property 'endpoints'") + __props__['endpoints'] = endpoints + __props__['kind'] = 'EndpointSlice' + __props__['metadata'] = metadata + __props__['ports'] = ports + super(EndpointSlice, __self__).__init__( + 'kubernetes:discovery.k8s.io/v1beta1:EndpointSlice', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing EndpointSlice resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return EndpointSlice(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py new file mode 100644 index 0000000000..5ac8b3199e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class EndpointSliceList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of endpoint slices + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + EndpointSliceList represents a list of endpoint slices + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of endpoint slices + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'discovery.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'EndpointSliceList' + __props__['metadata'] = metadata + super(EndpointSliceList, __self__).__init__( + 'kubernetes:discovery.k8s.io/v1beta1:EndpointSliceList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing EndpointSliceList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return EndpointSliceList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py new file mode 100644 index 0000000000..d69646b079 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .EndpointSlice import * +from .EndpointSliceList import * diff --git a/sdk/python/pulumi_kubernetes/events/__init__.py b/sdk/python/pulumi_kubernetes/events/__init__.py new file mode 100644 index 0000000000..a311e81ad2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/events/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py b/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py new file mode 100644 index 0000000000..8f24ac379c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py @@ -0,0 +1,166 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Event(pulumi.CustomResource): + action: pulumi.Output[str] + """ + What action was taken/failed regarding to the regarding object. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + deprecated_count: pulumi.Output[float] + """ + Deprecated field assuring backward compatibility with core.v1 Event type + """ + deprecated_first_timestamp: pulumi.Output[str] + """ + Deprecated field assuring backward compatibility with core.v1 Event type + """ + deprecated_last_timestamp: pulumi.Output[str] + """ + Deprecated field assuring backward compatibility with core.v1 Event type + """ + deprecated_source: pulumi.Output[dict] + """ + Deprecated field assuring backward compatibility with core.v1 Event type + """ + event_time: pulumi.Output[str] + """ + Required. Time when this Event was first observed. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + note: pulumi.Output[str] + """ + Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + """ + reason: pulumi.Output[str] + """ + Why the action was taken. + """ + regarding: pulumi.Output[dict] + """ + The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + """ + related: pulumi.Output[dict] + """ + Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + """ + reporting_controller: pulumi.Output[str] + """ + Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + """ + reporting_instance: pulumi.Output[str] + """ + ID of the controller instance, e.g. `kubelet-xyzf`. + """ + series: pulumi.Output[dict] + """ + Data about the Event series this event represents or nil if it's a singleton Event. + """ + type: pulumi.Output[str] + """ + Type of this event (Normal, Warning), new types could be added in the future. + """ + def __init__(__self__, resource_name, opts=None, action=None, api_version=None, deprecated_count=None, deprecated_first_timestamp=None, deprecated_last_timestamp=None, deprecated_source=None, event_time=None, kind=None, metadata=None, note=None, reason=None, regarding=None, related=None, reporting_controller=None, reporting_instance=None, series=None, type=None, __props__=None, __name__=None, __opts__=None): + """ + Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] action: What action was taken/failed regarding to the regarding object. + :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 + :param pulumi.Input[float] deprecated_count: Deprecated field assuring backward compatibility with core.v1 Event type + :param pulumi.Input[str] deprecated_first_timestamp: Deprecated field assuring backward compatibility with core.v1 Event type + :param pulumi.Input[str] deprecated_last_timestamp: Deprecated field assuring backward compatibility with core.v1 Event type + :param pulumi.Input[dict] deprecated_source: Deprecated field assuring backward compatibility with core.v1 Event type + :param pulumi.Input[str] event_time: Required. Time when this Event was first observed. + :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 + :param pulumi.Input[str] note: Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. + :param pulumi.Input[str] reason: Why the action was taken. + :param pulumi.Input[dict] regarding: The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + :param pulumi.Input[dict] related: Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + :param pulumi.Input[str] reporting_controller: Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + :param pulumi.Input[str] reporting_instance: ID of the controller instance, e.g. `kubelet-xyzf`. + :param pulumi.Input[dict] series: Data about the Event series this event represents or nil if it's a singleton Event. + :param pulumi.Input[str] type: Type of this event (Normal, Warning), new types could be added in the future. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['action'] = action + __props__['api_version'] = 'events.k8s.io/v1beta1' + __props__['deprecated_count'] = deprecated_count + __props__['deprecated_first_timestamp'] = deprecated_first_timestamp + __props__['deprecated_last_timestamp'] = deprecated_last_timestamp + __props__['deprecated_source'] = deprecated_source + if event_time is None: + raise TypeError("Missing required property 'event_time'") + __props__['event_time'] = event_time + __props__['kind'] = 'Event' + __props__['metadata'] = metadata + __props__['note'] = note + __props__['reason'] = reason + __props__['regarding'] = regarding + __props__['related'] = related + __props__['reporting_controller'] = reporting_controller + __props__['reporting_instance'] = reporting_instance + __props__['series'] = series + __props__['type'] = type + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:core/v1:Event")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Event, __self__).__init__( + 'kubernetes:events.k8s.io/v1beta1:Event', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Event resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Event(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py new file mode 100644 index 0000000000..ae8e33a427 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class EventList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + EventList is a list of Event objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'events.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'EventList' + __props__['metadata'] = metadata + super(EventList, __self__).__init__( + 'kubernetes:events.k8s.io/v1beta1:EventList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing EventList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return EventList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py new file mode 100644 index 0000000000..da6c993426 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .Event import * +from .EventList import * diff --git a/sdk/python/pulumi_kubernetes/extensions/__init__.py b/sdk/python/pulumi_kubernetes/extensions/__init__.py new file mode 100644 index 0000000000..a311e81ad2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py new file mode 100644 index 0000000000..ad81258f24 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py @@ -0,0 +1,100 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + +class DaemonSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + warnings.warn("extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + DaemonSet represents the configuration of a daemon set. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + pulumi.log.warn("DaemonSet is deprecated: extensions/v1beta1/DaemonSet is deprecated by apps/v1/DaemonSet and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'extensions/v1beta1' + __props__['kind'] = 'DaemonSet' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:DaemonSet"), pulumi.Alias(type_="kubernetes:apps/v1beta2:DaemonSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(DaemonSet, __self__).__init__( + 'kubernetes:extensions/v1beta1:DaemonSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DaemonSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DaemonSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py new file mode 100644 index 0000000000..f9a2e6a8cc --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DaemonSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + A list of daemon sets. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DaemonSetList is a collection of daemon sets. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: A list of daemon sets. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'extensions/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'DaemonSetList' + __props__['metadata'] = metadata + super(DaemonSetList, __self__).__init__( + 'kubernetes:extensions/v1beta1:DaemonSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DaemonSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DaemonSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py new file mode 100644 index 0000000000..36cbec5eb3 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py @@ -0,0 +1,122 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + +class Deployment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of the Deployment. + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the Deployment. + """ + warnings.warn("extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Deployment enables declarative updates for Pods and ReplicaSets. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. The Deployment has begun to be updated by the Deployment controller. If the current + generation of the Deployment is > 1, then this means that the current generation must + be different from the generation reported by the last outputs. + 2. There exists a ReplicaSet whose revision is equal to the current revision of the + Deployment. + 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status' + member is set to 'True'. + 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type + 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is + 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist, + because it doesn't do a rollout (i.e., it simply creates the Deployment and + corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'. + + If the Deployment has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. + :param pulumi.Input[dict] spec: Specification of the desired behavior of the Deployment. + """ + pulumi.log.warn("Deployment is deprecated: extensions/v1beta1/Deployment is deprecated by apps/v1/Deployment and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'extensions/v1beta1' + __props__['kind'] = 'Deployment' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta1:Deployment"), pulumi.Alias(type_="kubernetes:apps/v1beta2:Deployment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Deployment, __self__).__init__( + 'kubernetes:extensions/v1beta1:Deployment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Deployment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Deployment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py new file mode 100644 index 0000000000..8fb637d3dc --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class DeploymentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Deployments. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DeploymentList is a list of Deployments. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Deployments. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'extensions/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'DeploymentList' + __props__['metadata'] = metadata + super(DeploymentList, __self__).__init__( + 'kubernetes:extensions/v1beta1:DeploymentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing DeploymentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DeploymentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py new file mode 100644 index 0000000000..c5989f9372 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py @@ -0,0 +1,114 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.", DeprecationWarning) + + +class Ingress(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + warnings.warn("extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.", DeprecationWarning) + + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. Ingress object exists. + 2. Endpoint objects exist with matching names for each Ingress path (except when Service + type is ExternalName). + 3. Ingress entry exists for '.status.loadBalancer.ingress'. + + If the Ingress has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + pulumi.log.warn("Ingress is deprecated: extensions/v1beta1/Ingress is deprecated by networking.k8s.io/v1beta1/Ingress and not supported by Kubernetes v1.20+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'extensions/v1beta1' + __props__['kind'] = 'Ingress' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:networking.k8s.io/v1beta1:Ingress")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Ingress, __self__).__init__( + 'kubernetes:extensions/v1beta1:Ingress', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Ingress resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Ingress(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py new file mode 100644 index 0000000000..6f322702ab --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class IngressList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Ingress. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + IngressList is a collection of Ingress. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Ingress. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'extensions/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'IngressList' + __props__['metadata'] = metadata + super(IngressList, __self__).__init__( + 'kubernetes:extensions/v1beta1:IngressList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing IngressList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return IngressList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py new file mode 100644 index 0000000000..b496c2894f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class NetworkPolicy(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior for this NetworkPolicy. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. NetworkPolicy describes what network traffic is allowed for a set of Pods + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired behavior for this NetworkPolicy. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'extensions/v1beta1' + __props__['kind'] = 'NetworkPolicy' + __props__['metadata'] = metadata + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:networking.k8s.io/v1:NetworkPolicy")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(NetworkPolicy, __self__).__init__( + 'kubernetes:extensions/v1beta1:NetworkPolicy', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing NetworkPolicy resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return NetworkPolicy(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py new file mode 100644 index 0000000000..7e8745ac94 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class NetworkPolicyList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList. Network Policy List is a list of NetworkPolicy objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'extensions/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'NetworkPolicyList' + __props__['metadata'] = metadata + super(NetworkPolicyList, __self__).__init__( + 'kubernetes:extensions/v1beta1:NetworkPolicyList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing NetworkPolicyList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return NetworkPolicyList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py new file mode 100644 index 0000000000..f9ed6228b9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodSecurityPolicy(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + spec defines the policy enforced. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated: use PodSecurityPolicy from policy API Group instead. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: spec defines the policy enforced. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'extensions/v1beta1' + __props__['kind'] = 'PodSecurityPolicy' + __props__['metadata'] = metadata + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:policy/v1beta1:PodSecurityPolicy")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(PodSecurityPolicy, __self__).__init__( + 'kubernetes:extensions/v1beta1:PodSecurityPolicy', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodSecurityPolicy resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodSecurityPolicy(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py new file mode 100644 index 0000000000..769821dbeb --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodSecurityPolicyList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is a list of schema objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PodSecurityPolicyList is a list of PodSecurityPolicy objects. Deprecated: use PodSecurityPolicyList from policy API Group instead. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'extensions/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'PodSecurityPolicyList' + __props__['metadata'] = metadata + super(PodSecurityPolicyList, __self__).__init__( + 'kubernetes:extensions/v1beta1:PodSecurityPolicyList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodSecurityPolicyList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodSecurityPolicyList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py new file mode 100644 index 0000000000..3c8288a491 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py @@ -0,0 +1,100 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + +class ReplicaSet(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + warnings.warn("extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.", DeprecationWarning) + + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicaSet ensures that a specified number of pod replicas are running at any given time. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + pulumi.log.warn("ReplicaSet is deprecated: extensions/v1beta1/ReplicaSet is deprecated by apps/v1/ReplicaSet and not supported by Kubernetes v1.16+ clusters.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'extensions/v1beta1' + __props__['kind'] = 'ReplicaSet' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:apps/v1:ReplicaSet"), pulumi.Alias(type_="kubernetes:apps/v1beta2:ReplicaSet")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ReplicaSet, __self__).__init__( + 'kubernetes:extensions/v1beta1:ReplicaSet', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicaSet resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicaSet(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py new file mode 100644 index 0000000000..afb2d6bbad --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ReplicaSetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ReplicaSetList is a collection of ReplicaSets. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'extensions/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ReplicaSetList' + __props__['metadata'] = metadata + super(ReplicaSetList, __self__).__init__( + 'kubernetes:extensions/v1beta1:ReplicaSetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ReplicaSetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ReplicaSetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py new file mode 100644 index 0000000000..44252ee76a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/__init__.py @@ -0,0 +1,17 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .DaemonSet import * +from .DaemonSetList import * +from .Deployment import * +from .DeploymentList import * +from .Ingress import * +from .IngressList import * +from .NetworkPolicy import * +from .NetworkPolicyList import * +from .PodSecurityPolicy import * +from .PodSecurityPolicyList import * +from .ReplicaSet import * +from .ReplicaSetList import * diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py b/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py new file mode 100644 index 0000000000..d688fb9289 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1alpha1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py new file mode 100644 index 0000000000..e322500ee7 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class FlowSchema(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + `status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a "flow distinguisher". + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: `spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' + __props__['kind'] = 'FlowSchema' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(FlowSchema, __self__).__init__( + 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchema', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing FlowSchema resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return FlowSchema(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py new file mode 100644 index 0000000000..8a75a02248 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class FlowSchemaList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + `items` is a list of FlowSchemas. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + FlowSchemaList is a list of FlowSchema objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: `items` is a list of FlowSchemas. + :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 + :param pulumi.Input[dict] metadata: `metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'FlowSchemaList' + __props__['metadata'] = metadata + super(FlowSchemaList, __self__).__init__( + 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchemaList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing FlowSchemaList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return FlowSchemaList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py new file mode 100644 index 0000000000..5aa86462f7 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityLevelConfiguration(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + `status` is the current status of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PriorityLevelConfiguration represents the configuration of a priority level. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: `spec` is the specification of the desired behavior of a "request-priority". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' + __props__['kind'] = 'PriorityLevelConfiguration' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(PriorityLevelConfiguration, __self__).__init__( + 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfiguration', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityLevelConfiguration resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityLevelConfiguration(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py new file mode 100644 index 0000000000..03e73ecf6b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityLevelConfigurationList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + `items` is a list of request-priorities. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: `items` is a list of request-priorities. + :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 + :param pulumi.Input[dict] metadata: `metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'flowcontrol.apiserver.k8s.io/v1alpha1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'PriorityLevelConfigurationList' + __props__['metadata'] = metadata + super(PriorityLevelConfigurationList, __self__).__init__( + 'kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfigurationList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityLevelConfigurationList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityLevelConfigurationList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py new file mode 100644 index 0000000000..052ed3de86 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py @@ -0,0 +1,9 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .FlowSchema import * +from .FlowSchemaList import * +from .PriorityLevelConfiguration import * +from .PriorityLevelConfigurationList import * diff --git a/sdk/python/pulumi_kubernetes/helm/__init__.py b/sdk/python/pulumi_kubernetes/helm/__init__.py new file mode 100644 index 0000000000..4c217c1e5c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/helm/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v2', 'v3'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/helm/v2/__init__.py b/sdk/python/pulumi_kubernetes/helm/v2/__init__.py new file mode 100644 index 0000000000..181dde1ce6 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/helm/v2/__init__.py @@ -0,0 +1,6 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .helm import * diff --git a/sdk/python/pulumi_kubernetes/helm/v2/helm.py b/sdk/python/pulumi_kubernetes/helm/v2/helm.py new file mode 100644 index 0000000000..bfb837300e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/helm/v2/helm.py @@ -0,0 +1,502 @@ +# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import os.path +import shutil +import subprocess +import re +from tempfile import mkdtemp, mkstemp +from typing import Any, Callable, List, Optional, TextIO, Tuple, Union + +import pulumi.runtime +from ...utilities import get_version +from pulumi_kubernetes.yaml import _parse_yaml_document + + +class FetchOpts: + """ + FetchOpts is a bag of configuration options to customize the fetching of the Helm chart. + """ + + version: Optional[pulumi.Input[str]] + """ + Specific version of a chart. If unset, the latest version is fetched. + """ + + ca_file: Optional[pulumi.Input[str]] + """ + Verify certificates of HTTPS-enabled servers using this CA bundle. + """ + + cert_file: Optional[pulumi.Input[str]] + """ + Identify HTTPS client using this SSL certificate file. + """ + + key_file: Optional[pulumi.Input[str]] + """ + Identify HTTPS client using this SSL key file. + """ + + destination: Optional[pulumi.Input[str]] + """ + Location to write the chart. If this and [tardir] are specified, tardir is appended + to this (default "."). + """ + + keyring: Optional[pulumi.Input[str]] + """ + Keyring containing public keys (default "/Users/alex/.gnupg/pubring.gpg"). + """ + + password: Optional[pulumi.Input[str]] + """ + Chart repository password. + """ + + repo: Optional[pulumi.Input[str]] + """ + Chart repository url where to locate the requested chart. + """ + + untar_dir: Optional[pulumi.Input[str]] + """ + If [untar] is specified, this flag specifies the name of the directory into which + the chart is expanded (default "."). + """ + + username: Optional[pulumi.Input[str]] + """ + Chart repository username. + """ + + home: Optional[pulumi.Input[str]] + """ + Location of your Helm config. Overrides $HELM_HOME (default "/Users/alex/.helm"). + """ + + devel: Optional[pulumi.Input[bool]] + """ + Use development versions, too. Equivalent to version '>0.0.0-0'. If [version] is set, + this is ignored. + """ + + prov: Optional[pulumi.Input[bool]] + """ + Fetch the provenance file, but don't perform verification. + """ + + untar: Optional[pulumi.Input[bool]] + """ + If set to false, will leave the chart as a tarball after downloading. + """ + + verify: Optional[pulumi.Input[bool]] + """ + Verify the package against its signature. + """ + + def __init__(self, version=None, ca_file=None, cert_file=None, key_file=None, destination=None, keyring=None, + password=None, repo=None, untar_dir=None, username=None, home=None, devel=None, prov=None, + untar=None, verify=None): + """ + :param Optional[pulumi.Input[str]] version: Specific version of a chart. If unset, + the latest version is fetched. + :param Optional[pulumi.Input[str]] ca_file: Verify certificates of HTTPS-enabled + servers using this CA bundle. + :param Optional[pulumi.Input[str]] cert_file: Identify HTTPS client using this SSL + certificate file. + :param Optional[pulumi.Input[str]] key_file: Identify HTTPS client using this SSL + key file. + :param Optional[pulumi.Input[str]] destination: Location to write the chart. + If this and [tardir] are specified, tardir is appended to this (default "."). + :param Optional[pulumi.Input[str]] keyring: Keyring containing public keys + (default "/Users//.gnupg/pubring.gpg"). + :param Optional[pulumi.Input[str]] password: Chart repository password. + :param Optional[pulumi.Input[str]] repo: Chart repository url where to locate + the requested chart. + :param Optional[pulumi.Input[str]] untar_dir: If [untar] is specified, this flag + specifies the name of the directory into which the chart is + expanded (default "."). + :param Optional[pulumi.Input[str]] username: Chart repository username. + :param Optional[pulumi.Input[str]] home: Location of your Helm config. Overrides + $HELM_HOME (default "/Users//.helm"). + :param Optional[pulumi.Input[bool]] devel: Use development versions, too. + Equivalent to version '>0.0.0-0'. If [version] is set, this is ignored. + :param Optional[pulumi.Input[bool]] prov: Fetch the provenance file, but don't + perform verification. + :param Optional[pulumi.Input[bool]] untar: If set to false, will leave the + chart as a tarball after downloading. + :param Optional[pulumi.Input[bool]] verify: Verify the package against its signature. + """ + self.version = version + self.ca_file = ca_file + self.cert_file = cert_file + self.key_file = key_file + self.destination = destination + self.keyring = keyring + self.password = password + self.repo = repo + self.untar_dir = untar_dir + self.username = username + self.home = home + self.devel = devel + self.prov = prov + self.untar = untar + self.verify = verify + + +class BaseChartOpts: + """ + BaseChartOpts is a bag of common configuration options for a Helm chart. + """ + + namespace: Optional[pulumi.Input[str]] + """ + Optional namespace to install chart resources into. + """ + + values: Optional[pulumi.Inputs] + """ + Optional overrides for chart values. + """ + + transformations: Optional[List[Callable]] + """ + Optional list of transformations to apply to resources that will be created by this chart prior to + creation. Allows customization of the chart behaviour without directly modifying the chart itself. + """ + + resource_prefix: Optional[str] + """ + Optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + """ + + def __init__(self, namespace=None, values=None, transformations=None, resource_prefix=None): + """ + :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. + :param Optional[pulumi.Inputs] values: Optional overrides for chart values. + :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list + of transformations to apply to resources that will be created by this chart prior to creation. + Allows customization of the chart behaviour without directly modifying the chart itself. + :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + """ + self.namespace = namespace + self.values = values + self.transformations = transformations + self.resource_prefix = resource_prefix + + +class ChartOpts(BaseChartOpts): + """ + ChartOpts is a bag of configuration options for a remote Helm chart. + """ + + chart: pulumi.Input[str] + """ + The name of the chart to deploy. If `repo` is provided, this chart name will be prefixed by the repo name. + Example: repo: "stable", chart: "nginx-ingress" -> "stable/nginx-ingress" + Example: chart: "stable/nginx-ingress" -> "stable/nginx-ingress" + """ + + repo: Optional[pulumi.Input[str]] + """ + The repository name of the chart to deploy. + Example: "stable" + """ + + version: Optional[pulumi.Input[str]] + """ + The version of the chart to deploy. If not provided, the latest version will be deployed. + """ + + fetch_opts: Optional[pulumi.Input[FetchOpts]] + """ + Additional options to customize the fetching of the Helm chart. + """ + + def __init__(self, chart, namespace=None, values=None, transformations=None, resource_prefix=None, repo=None, + version=None, fetch_opts=None): + """ + :param pulumi.Input[str] chart: The name of the chart to deploy. If `repo` is provided, this chart name + will be prefixed by the repo name. + Example: repo: "stable", chart: "nginx-ingress" -> "stable/nginx-ingress" + Example: chart: "stable/nginx-ingress" -> "stable/nginx-ingress" + :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. + :param Optional[pulumi.Inputs] values: Optional overrides for chart values. + :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list of + transformations to apply to resources that will be created by this chart prior to creation. + Allows customization of the chart behaviour without directly modifying the chart itself. + :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + :param Optional[pulumi.Input[str]] repo: The repository name of the chart to deploy. + Example: "stable" + :param Optional[pulumi.Input[str]] version: The version of the chart to deploy. If not provided, + the latest version will be deployed. + :param Optional[pulumi.Input[FetchOpts]] fetch_opts: Additional options to customize the + fetching of the Helm chart. + """ + super(ChartOpts, self).__init__(namespace, values, transformations, resource_prefix) + self.chart = chart + self.repo = repo + self.version = version + self.fetch_opts = fetch_opts + + +class LocalChartOpts(BaseChartOpts): + """ + LocalChartOpts is a bag of configuration options for a local Helm chart. + """ + + path: pulumi.Input[str] + """ + The path to the chart directory which contains the `Chart.yaml` file. + """ + + def __init__(self, path, namespace=None, values=None, transformations=None, resource_prefix=None): + """ + :param pulumi.Input[str] path: The path to the chart directory which contains the + `Chart.yaml` file. + :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. + :param Optional[pulumi.Inputs] values: Optional overrides for chart values. + :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list of + transformations to apply to resources that will be created by this chart prior to creation. + Allows customization of the chart behaviour without directly modifying the chart itself. + :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + """ + + super(LocalChartOpts, self).__init__(namespace, values, transformations, resource_prefix) + self.path = path + + +def _run_helm_cmd(all_config: Tuple[List[Union[str, bytes]], Any]) -> str: + cmd, _ = all_config + + output = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, check=True) + yaml_str: str = output.stdout + return yaml_str + +def _is_helm_v3() -> bool: + + cmd: List[str] = ['helm', 'version', '--short'] + + """ + Helm v2 returns version like this: + Client: v2.16.7+g5f2584f + Helm v3 returns a version like this: + v3.1.2+gd878d4d + --include-crds is available in helm v3.1+ so check for a regex matching that version + """ + output = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, universal_newlines=True, check=True) + version: str = output.stdout + regexp = re.compile(r'^v3\.[1-9]') + return(bool(regexp.search(version))) + + +def _write_override_file(all_config: Tuple[TextIO, str]) -> None: + file, data = all_config + + file.write(data) + file.flush() + + +def _cleanup_temp_dir(all_config: Tuple[TextIO, Union[bytes, str], Any]) -> None: + file, chart_dir, _ = all_config + + file.close() + shutil.rmtree(chart_dir) + + +def _parse_chart(all_config: Tuple[str, Union[ChartOpts, LocalChartOpts], pulumi.ResourceOptions]) -> pulumi.Output: + release_name, config, opts = all_config + + # Create temporary directory and file to hold chart data and override values. + # Note: We're intentionally using the lower-level APIs here because the async Outputs are being handled in + # a different scope, which was causing the temporary files/directory to be deleted before they were referenced + # in the Output handlers. We manually clean these up once we're done with another async handler that depends + # on the result of the operations. + overrides, overrides_filename = mkstemp() + chart_dir = mkdtemp() + + if isinstance(config, ChartOpts): + if config.repo and 'http' in config.repo: + raise ValueError('`repo` specifies the name of the Helm chart repo.' + 'Use `fetch_opts.repo` to specify a URL.') + chart_to_fetch = f'{config.repo}/{config.chart}' if config.repo else config.chart + + # Configure fetch options. + fetch_opts_dict = {} + if config.fetch_opts is not None: + fetch_opts_dict = {k: v for k, v in vars(config.fetch_opts).items() if v is not None} + fetch_opts_dict["destination"] = chart_dir + if config.version is not None: + fetch_opts_dict["version"] = config.version + fetch_opts = FetchOpts(**fetch_opts_dict) + + # Fetch the chart. + _fetch(chart_to_fetch, fetch_opts) + # Sort the directories into alphabetical order, and choose the first + fetched_chart_name = sorted(os.listdir(chart_dir), key=str.lower)[0] + chart = os.path.join(chart_dir, fetched_chart_name) + else: + chart = config.path + + default_values = os.path.join(chart, 'values.yaml') + + # Write overrides file. + vals = config.values if config.values is not None else {} + data = pulumi.Output.from_input(vals).apply(lambda x: json.dumps(x)) + file = open(overrides, 'w') + pulumi.Output.all(file, data).apply(_write_override_file) + + namespace_arg = ['--namespace', config.namespace] if config.namespace else [] + crd_arg = [ '--include-crds' ] if _is_helm_v3() else [] + + # Use 'helm template' to create a combined YAML manifest. + cmd = ['helm', 'template', chart, '--name-template', release_name, + '--values', default_values, '--values', overrides_filename] + cmd.extend(namespace_arg) + cmd.extend(crd_arg) + + chart_resources = pulumi.Output.all(cmd, data).apply(_run_helm_cmd) + + # Rather than using the default provider for the following invoke call, use the version specified + # in package.json. + invoke_opts = pulumi.InvokeOptions(version=get_version()) + + objects = chart_resources.apply( + lambda text: pulumi.runtime.invoke('kubernetes:yaml:decode', { + 'text': text, 'defaultNamespace': config.namespace}, invoke_opts).value['result']) + + # Parse the manifest and create the specified resources. + resources = objects.apply( + lambda objects: _parse_yaml_document(objects, opts, config.transformations)) + + pulumi.Output.all(file, chart_dir, resources).apply(_cleanup_temp_dir) + return resources + + +def _fetch(chart: str, opts: FetchOpts) -> None: + cmd: List[str] = ['helm', 'fetch', chart] + + # Untar by default. + if opts.untar is not False: + cmd.append('--untar') + + env = os.environ + # Helm v3 removed the `--home` flag, so we must use an env var instead. + if opts.home: + env['HELM_HOME'] = opts.home + + if opts.version: + cmd.extend(['--version', opts.version]) + if opts.ca_file: + cmd.extend(['--ca-file', opts.ca_file]) + if opts.cert_file: + cmd.extend(['--cert-file', opts.cert_file]) + if opts.key_file: + cmd.extend(['--key-file', opts.key_file]) + if opts.destination: + cmd.extend(['--destination', opts.destination]) + if opts.keyring: + cmd.extend(['--keyring', opts.keyring]) + if opts.password: + cmd.extend(['--password', opts.password]) + if opts.repo: + cmd.extend(['--repo', opts.repo]) + if opts.untar_dir: + cmd.extend(['--untardir', opts.untar_dir]) + if opts.username: + cmd.extend(['--username', opts.username]) + if opts.devel: + cmd.append('--devel') + if opts.prov: + cmd.append('--prov') + if opts.verify: + cmd.append('--verify') + + subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, check=True, env=env) + + +class Chart(pulumi.ComponentResource): + """ + Chart is a component representing a collection of resources described by an arbitrary Helm + Chart. The Chart can be fetched from any source that is accessible to the `helm` command + line. Values in the `values.yml` file can be overridden using `ChartOpts.values` (equivalent + to `--set` or having multiple `values.yml` files). Objects can be transformed arbitrarily by + supplying callbacks to `ChartOpts.transformations`. + + Chart does not use Tiller. The Chart specified is copied and expanded locally; the semantics + are equivalent to running `helm template` and then using Pulumi to manage the resulting YAML + manifests. Any values that would be retrieved in-cluster are assigned fake values, and + none of Tiller's server-side validity testing is executed. + """ + + resources: pulumi.Output[dict] + """ + Kubernetes resources contained in this Chart. + """ + + def __init__(self, release_name, config, opts=None): + """ + Create an instance of the specified Helm chart. + + :param str release_name: Name of the Chart (e.g., nginx-ingress). + :param Union[ChartOpts, LocalChartOpts] config: Configuration options for the Chart. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + if not release_name: + raise TypeError('Missing release name argument') + if not isinstance(release_name, str): + raise TypeError('Expected release name to be a string') + if config and not isinstance(config, ChartOpts) and not isinstance(config, LocalChartOpts): + raise TypeError('Expected config to be a ChartOpts or LocalChartOpts instance') + if opts and not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + + __props__ = dict() + + if config.resource_prefix: + release_name = f"{config.resource_prefix}-{release_name}" + + super(Chart, self).__init__( + "kubernetes:helm.sh/v2:Chart", + release_name, + __props__, + opts) + + if opts is not None: + opts.parent = self + else: + opts = pulumi.ResourceOptions(parent=self) + + all_config = pulumi.Output.from_input((release_name, config, opts)) + + # Note: Unlike NodeJS, Python requires that we "pull" on our futures in order to get them scheduled for + # execution. In order to do this, we leverage the engine's RegisterResourceOutputs to wait for the + # resolution of all resources that this Helm chart created. + self.resources = all_config.apply(_parse_chart) + self.register_outputs({"resources": self.resources}) + + def get_resource(self, group_version_kind, name, namespace=None) -> pulumi.Output[pulumi.CustomResource]: + """ + get_resource returns a resource defined by a built-in Kubernetes group/version/kind and + name. For example: `get_resource("apps/v1/Deployment", "nginx")` + + :param str group_version_kind: Group/Version/Kind of the resource, e.g., `apps/v1/Deployment` + :param str name: Name of the resource to retrieve + :param str namespace: Optional namespace of the resource to retrieve + """ + + # `id` will either be `${name}` or `${namespace}/${name}`. + id = pulumi.Output.from_input(name) + if namespace is not None: + id = pulumi.Output.concat(namespace, '/', name) + + resource_id = id.apply(lambda x: f'{group_version_kind}:{x}') + return resource_id.apply(lambda x: self.resources[x]) diff --git a/sdk/python/pulumi_kubernetes/helm/v3/__init__.py b/sdk/python/pulumi_kubernetes/helm/v3/__init__.py new file mode 100644 index 0000000000..181dde1ce6 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/helm/v3/__init__.py @@ -0,0 +1,6 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .helm import * diff --git a/sdk/python/pulumi_kubernetes/helm/v3/helm.py b/sdk/python/pulumi_kubernetes/helm/v3/helm.py new file mode 100644 index 0000000000..bfb837300e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/helm/v3/helm.py @@ -0,0 +1,502 @@ +# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import os.path +import shutil +import subprocess +import re +from tempfile import mkdtemp, mkstemp +from typing import Any, Callable, List, Optional, TextIO, Tuple, Union + +import pulumi.runtime +from ...utilities import get_version +from pulumi_kubernetes.yaml import _parse_yaml_document + + +class FetchOpts: + """ + FetchOpts is a bag of configuration options to customize the fetching of the Helm chart. + """ + + version: Optional[pulumi.Input[str]] + """ + Specific version of a chart. If unset, the latest version is fetched. + """ + + ca_file: Optional[pulumi.Input[str]] + """ + Verify certificates of HTTPS-enabled servers using this CA bundle. + """ + + cert_file: Optional[pulumi.Input[str]] + """ + Identify HTTPS client using this SSL certificate file. + """ + + key_file: Optional[pulumi.Input[str]] + """ + Identify HTTPS client using this SSL key file. + """ + + destination: Optional[pulumi.Input[str]] + """ + Location to write the chart. If this and [tardir] are specified, tardir is appended + to this (default "."). + """ + + keyring: Optional[pulumi.Input[str]] + """ + Keyring containing public keys (default "/Users/alex/.gnupg/pubring.gpg"). + """ + + password: Optional[pulumi.Input[str]] + """ + Chart repository password. + """ + + repo: Optional[pulumi.Input[str]] + """ + Chart repository url where to locate the requested chart. + """ + + untar_dir: Optional[pulumi.Input[str]] + """ + If [untar] is specified, this flag specifies the name of the directory into which + the chart is expanded (default "."). + """ + + username: Optional[pulumi.Input[str]] + """ + Chart repository username. + """ + + home: Optional[pulumi.Input[str]] + """ + Location of your Helm config. Overrides $HELM_HOME (default "/Users/alex/.helm"). + """ + + devel: Optional[pulumi.Input[bool]] + """ + Use development versions, too. Equivalent to version '>0.0.0-0'. If [version] is set, + this is ignored. + """ + + prov: Optional[pulumi.Input[bool]] + """ + Fetch the provenance file, but don't perform verification. + """ + + untar: Optional[pulumi.Input[bool]] + """ + If set to false, will leave the chart as a tarball after downloading. + """ + + verify: Optional[pulumi.Input[bool]] + """ + Verify the package against its signature. + """ + + def __init__(self, version=None, ca_file=None, cert_file=None, key_file=None, destination=None, keyring=None, + password=None, repo=None, untar_dir=None, username=None, home=None, devel=None, prov=None, + untar=None, verify=None): + """ + :param Optional[pulumi.Input[str]] version: Specific version of a chart. If unset, + the latest version is fetched. + :param Optional[pulumi.Input[str]] ca_file: Verify certificates of HTTPS-enabled + servers using this CA bundle. + :param Optional[pulumi.Input[str]] cert_file: Identify HTTPS client using this SSL + certificate file. + :param Optional[pulumi.Input[str]] key_file: Identify HTTPS client using this SSL + key file. + :param Optional[pulumi.Input[str]] destination: Location to write the chart. + If this and [tardir] are specified, tardir is appended to this (default "."). + :param Optional[pulumi.Input[str]] keyring: Keyring containing public keys + (default "/Users//.gnupg/pubring.gpg"). + :param Optional[pulumi.Input[str]] password: Chart repository password. + :param Optional[pulumi.Input[str]] repo: Chart repository url where to locate + the requested chart. + :param Optional[pulumi.Input[str]] untar_dir: If [untar] is specified, this flag + specifies the name of the directory into which the chart is + expanded (default "."). + :param Optional[pulumi.Input[str]] username: Chart repository username. + :param Optional[pulumi.Input[str]] home: Location of your Helm config. Overrides + $HELM_HOME (default "/Users//.helm"). + :param Optional[pulumi.Input[bool]] devel: Use development versions, too. + Equivalent to version '>0.0.0-0'. If [version] is set, this is ignored. + :param Optional[pulumi.Input[bool]] prov: Fetch the provenance file, but don't + perform verification. + :param Optional[pulumi.Input[bool]] untar: If set to false, will leave the + chart as a tarball after downloading. + :param Optional[pulumi.Input[bool]] verify: Verify the package against its signature. + """ + self.version = version + self.ca_file = ca_file + self.cert_file = cert_file + self.key_file = key_file + self.destination = destination + self.keyring = keyring + self.password = password + self.repo = repo + self.untar_dir = untar_dir + self.username = username + self.home = home + self.devel = devel + self.prov = prov + self.untar = untar + self.verify = verify + + +class BaseChartOpts: + """ + BaseChartOpts is a bag of common configuration options for a Helm chart. + """ + + namespace: Optional[pulumi.Input[str]] + """ + Optional namespace to install chart resources into. + """ + + values: Optional[pulumi.Inputs] + """ + Optional overrides for chart values. + """ + + transformations: Optional[List[Callable]] + """ + Optional list of transformations to apply to resources that will be created by this chart prior to + creation. Allows customization of the chart behaviour without directly modifying the chart itself. + """ + + resource_prefix: Optional[str] + """ + Optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + """ + + def __init__(self, namespace=None, values=None, transformations=None, resource_prefix=None): + """ + :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. + :param Optional[pulumi.Inputs] values: Optional overrides for chart values. + :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list + of transformations to apply to resources that will be created by this chart prior to creation. + Allows customization of the chart behaviour without directly modifying the chart itself. + :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + """ + self.namespace = namespace + self.values = values + self.transformations = transformations + self.resource_prefix = resource_prefix + + +class ChartOpts(BaseChartOpts): + """ + ChartOpts is a bag of configuration options for a remote Helm chart. + """ + + chart: pulumi.Input[str] + """ + The name of the chart to deploy. If `repo` is provided, this chart name will be prefixed by the repo name. + Example: repo: "stable", chart: "nginx-ingress" -> "stable/nginx-ingress" + Example: chart: "stable/nginx-ingress" -> "stable/nginx-ingress" + """ + + repo: Optional[pulumi.Input[str]] + """ + The repository name of the chart to deploy. + Example: "stable" + """ + + version: Optional[pulumi.Input[str]] + """ + The version of the chart to deploy. If not provided, the latest version will be deployed. + """ + + fetch_opts: Optional[pulumi.Input[FetchOpts]] + """ + Additional options to customize the fetching of the Helm chart. + """ + + def __init__(self, chart, namespace=None, values=None, transformations=None, resource_prefix=None, repo=None, + version=None, fetch_opts=None): + """ + :param pulumi.Input[str] chart: The name of the chart to deploy. If `repo` is provided, this chart name + will be prefixed by the repo name. + Example: repo: "stable", chart: "nginx-ingress" -> "stable/nginx-ingress" + Example: chart: "stable/nginx-ingress" -> "stable/nginx-ingress" + :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. + :param Optional[pulumi.Inputs] values: Optional overrides for chart values. + :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list of + transformations to apply to resources that will be created by this chart prior to creation. + Allows customization of the chart behaviour without directly modifying the chart itself. + :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + :param Optional[pulumi.Input[str]] repo: The repository name of the chart to deploy. + Example: "stable" + :param Optional[pulumi.Input[str]] version: The version of the chart to deploy. If not provided, + the latest version will be deployed. + :param Optional[pulumi.Input[FetchOpts]] fetch_opts: Additional options to customize the + fetching of the Helm chart. + """ + super(ChartOpts, self).__init__(namespace, values, transformations, resource_prefix) + self.chart = chart + self.repo = repo + self.version = version + self.fetch_opts = fetch_opts + + +class LocalChartOpts(BaseChartOpts): + """ + LocalChartOpts is a bag of configuration options for a local Helm chart. + """ + + path: pulumi.Input[str] + """ + The path to the chart directory which contains the `Chart.yaml` file. + """ + + def __init__(self, path, namespace=None, values=None, transformations=None, resource_prefix=None): + """ + :param pulumi.Input[str] path: The path to the chart directory which contains the + `Chart.yaml` file. + :param Optional[pulumi.Input[str]] namespace: Optional namespace to install chart resources into. + :param Optional[pulumi.Inputs] values: Optional overrides for chart values. + :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: Optional list of + transformations to apply to resources that will be created by this chart prior to creation. + Allows customization of the chart behaviour without directly modifying the chart itself. + :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + """ + + super(LocalChartOpts, self).__init__(namespace, values, transformations, resource_prefix) + self.path = path + + +def _run_helm_cmd(all_config: Tuple[List[Union[str, bytes]], Any]) -> str: + cmd, _ = all_config + + output = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, check=True) + yaml_str: str = output.stdout + return yaml_str + +def _is_helm_v3() -> bool: + + cmd: List[str] = ['helm', 'version', '--short'] + + """ + Helm v2 returns version like this: + Client: v2.16.7+g5f2584f + Helm v3 returns a version like this: + v3.1.2+gd878d4d + --include-crds is available in helm v3.1+ so check for a regex matching that version + """ + output = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, universal_newlines=True, check=True) + version: str = output.stdout + regexp = re.compile(r'^v3\.[1-9]') + return(bool(regexp.search(version))) + + +def _write_override_file(all_config: Tuple[TextIO, str]) -> None: + file, data = all_config + + file.write(data) + file.flush() + + +def _cleanup_temp_dir(all_config: Tuple[TextIO, Union[bytes, str], Any]) -> None: + file, chart_dir, _ = all_config + + file.close() + shutil.rmtree(chart_dir) + + +def _parse_chart(all_config: Tuple[str, Union[ChartOpts, LocalChartOpts], pulumi.ResourceOptions]) -> pulumi.Output: + release_name, config, opts = all_config + + # Create temporary directory and file to hold chart data and override values. + # Note: We're intentionally using the lower-level APIs here because the async Outputs are being handled in + # a different scope, which was causing the temporary files/directory to be deleted before they were referenced + # in the Output handlers. We manually clean these up once we're done with another async handler that depends + # on the result of the operations. + overrides, overrides_filename = mkstemp() + chart_dir = mkdtemp() + + if isinstance(config, ChartOpts): + if config.repo and 'http' in config.repo: + raise ValueError('`repo` specifies the name of the Helm chart repo.' + 'Use `fetch_opts.repo` to specify a URL.') + chart_to_fetch = f'{config.repo}/{config.chart}' if config.repo else config.chart + + # Configure fetch options. + fetch_opts_dict = {} + if config.fetch_opts is not None: + fetch_opts_dict = {k: v for k, v in vars(config.fetch_opts).items() if v is not None} + fetch_opts_dict["destination"] = chart_dir + if config.version is not None: + fetch_opts_dict["version"] = config.version + fetch_opts = FetchOpts(**fetch_opts_dict) + + # Fetch the chart. + _fetch(chart_to_fetch, fetch_opts) + # Sort the directories into alphabetical order, and choose the first + fetched_chart_name = sorted(os.listdir(chart_dir), key=str.lower)[0] + chart = os.path.join(chart_dir, fetched_chart_name) + else: + chart = config.path + + default_values = os.path.join(chart, 'values.yaml') + + # Write overrides file. + vals = config.values if config.values is not None else {} + data = pulumi.Output.from_input(vals).apply(lambda x: json.dumps(x)) + file = open(overrides, 'w') + pulumi.Output.all(file, data).apply(_write_override_file) + + namespace_arg = ['--namespace', config.namespace] if config.namespace else [] + crd_arg = [ '--include-crds' ] if _is_helm_v3() else [] + + # Use 'helm template' to create a combined YAML manifest. + cmd = ['helm', 'template', chart, '--name-template', release_name, + '--values', default_values, '--values', overrides_filename] + cmd.extend(namespace_arg) + cmd.extend(crd_arg) + + chart_resources = pulumi.Output.all(cmd, data).apply(_run_helm_cmd) + + # Rather than using the default provider for the following invoke call, use the version specified + # in package.json. + invoke_opts = pulumi.InvokeOptions(version=get_version()) + + objects = chart_resources.apply( + lambda text: pulumi.runtime.invoke('kubernetes:yaml:decode', { + 'text': text, 'defaultNamespace': config.namespace}, invoke_opts).value['result']) + + # Parse the manifest and create the specified resources. + resources = objects.apply( + lambda objects: _parse_yaml_document(objects, opts, config.transformations)) + + pulumi.Output.all(file, chart_dir, resources).apply(_cleanup_temp_dir) + return resources + + +def _fetch(chart: str, opts: FetchOpts) -> None: + cmd: List[str] = ['helm', 'fetch', chart] + + # Untar by default. + if opts.untar is not False: + cmd.append('--untar') + + env = os.environ + # Helm v3 removed the `--home` flag, so we must use an env var instead. + if opts.home: + env['HELM_HOME'] = opts.home + + if opts.version: + cmd.extend(['--version', opts.version]) + if opts.ca_file: + cmd.extend(['--ca-file', opts.ca_file]) + if opts.cert_file: + cmd.extend(['--cert-file', opts.cert_file]) + if opts.key_file: + cmd.extend(['--key-file', opts.key_file]) + if opts.destination: + cmd.extend(['--destination', opts.destination]) + if opts.keyring: + cmd.extend(['--keyring', opts.keyring]) + if opts.password: + cmd.extend(['--password', opts.password]) + if opts.repo: + cmd.extend(['--repo', opts.repo]) + if opts.untar_dir: + cmd.extend(['--untardir', opts.untar_dir]) + if opts.username: + cmd.extend(['--username', opts.username]) + if opts.devel: + cmd.append('--devel') + if opts.prov: + cmd.append('--prov') + if opts.verify: + cmd.append('--verify') + + subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, check=True, env=env) + + +class Chart(pulumi.ComponentResource): + """ + Chart is a component representing a collection of resources described by an arbitrary Helm + Chart. The Chart can be fetched from any source that is accessible to the `helm` command + line. Values in the `values.yml` file can be overridden using `ChartOpts.values` (equivalent + to `--set` or having multiple `values.yml` files). Objects can be transformed arbitrarily by + supplying callbacks to `ChartOpts.transformations`. + + Chart does not use Tiller. The Chart specified is copied and expanded locally; the semantics + are equivalent to running `helm template` and then using Pulumi to manage the resulting YAML + manifests. Any values that would be retrieved in-cluster are assigned fake values, and + none of Tiller's server-side validity testing is executed. + """ + + resources: pulumi.Output[dict] + """ + Kubernetes resources contained in this Chart. + """ + + def __init__(self, release_name, config, opts=None): + """ + Create an instance of the specified Helm chart. + + :param str release_name: Name of the Chart (e.g., nginx-ingress). + :param Union[ChartOpts, LocalChartOpts] config: Configuration options for the Chart. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + if not release_name: + raise TypeError('Missing release name argument') + if not isinstance(release_name, str): + raise TypeError('Expected release name to be a string') + if config and not isinstance(config, ChartOpts) and not isinstance(config, LocalChartOpts): + raise TypeError('Expected config to be a ChartOpts or LocalChartOpts instance') + if opts and not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + + __props__ = dict() + + if config.resource_prefix: + release_name = f"{config.resource_prefix}-{release_name}" + + super(Chart, self).__init__( + "kubernetes:helm.sh/v2:Chart", + release_name, + __props__, + opts) + + if opts is not None: + opts.parent = self + else: + opts = pulumi.ResourceOptions(parent=self) + + all_config = pulumi.Output.from_input((release_name, config, opts)) + + # Note: Unlike NodeJS, Python requires that we "pull" on our futures in order to get them scheduled for + # execution. In order to do this, we leverage the engine's RegisterResourceOutputs to wait for the + # resolution of all resources that this Helm chart created. + self.resources = all_config.apply(_parse_chart) + self.register_outputs({"resources": self.resources}) + + def get_resource(self, group_version_kind, name, namespace=None) -> pulumi.Output[pulumi.CustomResource]: + """ + get_resource returns a resource defined by a built-in Kubernetes group/version/kind and + name. For example: `get_resource("apps/v1/Deployment", "nginx")` + + :param str group_version_kind: Group/Version/Kind of the resource, e.g., `apps/v1/Deployment` + :param str name: Name of the resource to retrieve + :param str namespace: Optional namespace of the resource to retrieve + """ + + # `id` will either be `${name}` or `${namespace}/${name}`. + id = pulumi.Output.from_input(name) + if namespace is not None: + id = pulumi.Output.concat(namespace, '/', name) + + resource_id = id.apply(lambda x: f'{group_version_kind}:{x}') + return resource_id.apply(lambda x: self.resources[x]) diff --git a/sdk/python/pulumi_kubernetes/meta/__init__.py b/sdk/python/pulumi_kubernetes/meta/__init__.py new file mode 100644 index 0000000000..e2a396b5dc --- /dev/null +++ b/sdk/python/pulumi_kubernetes/meta/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/meta/v1/Status.py b/sdk/python/pulumi_kubernetes/meta/v1/Status.py new file mode 100644 index 0000000000..b8b3ec0cf2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/meta/v1/Status.py @@ -0,0 +1,111 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Status(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + code: pulumi.Output[float] + """ + Suggested HTTP return code for this status, 0 if not set. + """ + details: pulumi.Output[dict] + """ + Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + """ + kind: pulumi.Output[str] + """ + 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 + """ + message: pulumi.Output[str] + """ + A human-readable description of the status of this operation. + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + """ + reason: pulumi.Output[str] + """ + A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + """ + status: pulumi.Output[str] + """ + Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, code=None, details=None, kind=None, message=None, metadata=None, reason=None, __props__=None, __name__=None, __opts__=None): + """ + Status is a return value for calls that don't return other objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[float] code: Suggested HTTP return code for this status, 0 if not set. + :param pulumi.Input[dict] details: Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + :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 + :param pulumi.Input[str] message: A human-readable description of the status of this operation. + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + :param pulumi.Input[str] reason: A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'v1' + __props__['code'] = code + __props__['details'] = details + __props__['kind'] = 'Status' + __props__['message'] = message + __props__['metadata'] = metadata + __props__['reason'] = reason + __props__['status'] = None + super(Status, __self__).__init__( + 'kubernetes:meta/v1:Status', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Status resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Status(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/meta/v1/__init__.py b/sdk/python/pulumi_kubernetes/meta/v1/__init__.py new file mode 100644 index 0000000000..efd40f5ec2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/meta/v1/__init__.py @@ -0,0 +1,6 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .Status import * diff --git a/sdk/python/pulumi_kubernetes/networking/__init__.py b/sdk/python/pulumi_kubernetes/networking/__init__.py new file mode 100644 index 0000000000..4c1e851a21 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py new file mode 100644 index 0000000000..4ebd5da677 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class NetworkPolicy(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the desired behavior for this NetworkPolicy. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + NetworkPolicy describes what network traffic is allowed for a set of Pods + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired behavior for this NetworkPolicy. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'networking.k8s.io/v1' + __props__['kind'] = 'NetworkPolicy' + __props__['metadata'] = metadata + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:extensions/v1beta1:NetworkPolicy")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(NetworkPolicy, __self__).__init__( + 'kubernetes:networking.k8s.io/v1:NetworkPolicy', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing NetworkPolicy resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return NetworkPolicy(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py new file mode 100644 index 0000000000..1e4be0abd4 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class NetworkPolicyList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + NetworkPolicyList is a list of NetworkPolicy objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'networking.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'NetworkPolicyList' + __props__['metadata'] = metadata + super(NetworkPolicyList, __self__).__init__( + 'kubernetes:networking.k8s.io/v1:NetworkPolicyList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing NetworkPolicyList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return NetworkPolicyList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1/__init__.py b/sdk/python/pulumi_kubernetes/networking/v1/__init__.py new file mode 100644 index 0000000000..2b70c0b4c0 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .NetworkPolicy import * +from .NetworkPolicyList import * diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py new file mode 100644 index 0000000000..2ec17e184b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py @@ -0,0 +1,109 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Ingress(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + status: pulumi.Output[dict] + """ + Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. + + This resource waits until its status is ready before registering success + for create/update, and populating output properties from the current state of the resource. + The following conditions are used to determine whether the resource creation has + succeeded or failed: + + 1. Ingress object exists. + 2. Endpoint objects exist with matching names for each Ingress path (except when Service + type is ExternalName). + 3. Ingress entry exists for '.status.loadBalancer.ingress'. + + If the Ingress has not reached a Ready state after 10 minutes, it will + time out and mark the resource update as Failed. You can override the default timeout value + by setting the 'customTimeouts' option on the resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'networking.k8s.io/v1beta1' + __props__['kind'] = 'Ingress' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:extensions/v1beta1:Ingress")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Ingress, __self__).__init__( + 'kubernetes:networking.k8s.io/v1beta1:Ingress', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Ingress resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Ingress(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py new file mode 100644 index 0000000000..479d141713 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py @@ -0,0 +1,88 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class IngressClass(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'networking.k8s.io/v1beta1' + __props__['kind'] = 'IngressClass' + __props__['metadata'] = metadata + __props__['spec'] = spec + super(IngressClass, __self__).__init__( + 'kubernetes:networking.k8s.io/v1beta1:IngressClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing IngressClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return IngressClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py new file mode 100644 index 0000000000..7b3176da96 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class IngressClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of IngressClasses. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + IngressClassList is a collection of IngressClasses. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of IngressClasses. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'networking.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'IngressClassList' + __props__['metadata'] = metadata + super(IngressClassList, __self__).__init__( + 'kubernetes:networking.k8s.io/v1beta1:IngressClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing IngressClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return IngressClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py new file mode 100644 index 0000000000..f996912fd5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class IngressList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of Ingress. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + IngressList is a collection of Ingress. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of Ingress. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'networking.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'IngressList' + __props__['metadata'] = metadata + super(IngressList, __self__).__init__( + 'kubernetes:networking.k8s.io/v1beta1:IngressList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing IngressList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return IngressList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py new file mode 100644 index 0000000000..b0f44db632 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/__init__.py @@ -0,0 +1,9 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .Ingress import * +from .IngressClass import * +from .IngressClassList import * +from .IngressList import * diff --git a/sdk/python/pulumi_kubernetes/node/__init__.py b/sdk/python/pulumi_kubernetes/node/__init__.py new file mode 100644 index 0000000000..b7445a56eb --- /dev/null +++ b/sdk/python/pulumi_kubernetes/node/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1alpha1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py new file mode 100644 index 0000000000..1b2b3a52ab --- /dev/null +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py @@ -0,0 +1,92 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RuntimeClass(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'node.k8s.io/v1alpha1' + __props__['kind'] = 'RuntimeClass' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:node.k8s.io/v1beta1:RuntimeClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(RuntimeClass, __self__).__init__( + 'kubernetes:node.k8s.io/v1alpha1:RuntimeClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RuntimeClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RuntimeClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py new file mode 100644 index 0000000000..00302265a2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RuntimeClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RuntimeClassList is a list of RuntimeClass objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'node.k8s.io/v1alpha1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'RuntimeClassList' + __props__['metadata'] = metadata + super(RuntimeClassList, __self__).__init__( + 'kubernetes:node.k8s.io/v1alpha1:RuntimeClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RuntimeClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RuntimeClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py new file mode 100644 index 0000000000..8d424b8363 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .RuntimeClass import * +from .RuntimeClassList import * diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py new file mode 100644 index 0000000000..8ccb8d94b7 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py @@ -0,0 +1,104 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RuntimeClass(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + handler: pulumi.Output[str] + """ + Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + overhead: pulumi.Output[dict] + """ + Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. + """ + scheduling: pulumi.Output[dict] + """ + Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, handler=None, kind=None, metadata=None, overhead=None, scheduling=None, __props__=None, __name__=None, __opts__=None): + """ + RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[str] handler: Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. + :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 + :param pulumi.Input[dict] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] overhead: Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature. + :param pulumi.Input[dict] scheduling: Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'node.k8s.io/v1beta1' + if handler is None: + raise TypeError("Missing required property 'handler'") + __props__['handler'] = handler + __props__['kind'] = 'RuntimeClass' + __props__['metadata'] = metadata + __props__['overhead'] = overhead + __props__['scheduling'] = scheduling + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:node.k8s.io/v1alpha1:RuntimeClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(RuntimeClass, __self__).__init__( + 'kubernetes:node.k8s.io/v1beta1:RuntimeClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RuntimeClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RuntimeClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py new file mode 100644 index 0000000000..4403da6a6d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RuntimeClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RuntimeClassList is a list of RuntimeClass objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'node.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'RuntimeClassList' + __props__['metadata'] = metadata + super(RuntimeClassList, __self__).__init__( + 'kubernetes:node.k8s.io/v1beta1:RuntimeClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RuntimeClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RuntimeClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py new file mode 100644 index 0000000000..8d424b8363 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .RuntimeClass import * +from .RuntimeClassList import * diff --git a/sdk/python/pulumi_kubernetes/policy/__init__.py b/sdk/python/pulumi_kubernetes/policy/__init__.py new file mode 100644 index 0000000000..a311e81ad2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/policy/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py new file mode 100644 index 0000000000..462c81f765 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py @@ -0,0 +1,89 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodDisruptionBudget(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + """ + Specification of the desired behavior of the PodDisruptionBudget. + """ + status: pulumi.Output[dict] + """ + Most recently observed status of the PodDisruptionBudget. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] spec: Specification of the desired behavior of the PodDisruptionBudget. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'policy/v1beta1' + __props__['kind'] = 'PodDisruptionBudget' + __props__['metadata'] = metadata + __props__['spec'] = spec + __props__['status'] = None + super(PodDisruptionBudget, __self__).__init__( + 'kubernetes:policy/v1beta1:PodDisruptionBudget', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodDisruptionBudget resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodDisruptionBudget(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py new file mode 100644 index 0000000000..3a06311796 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py @@ -0,0 +1,82 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodDisruptionBudgetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PodDisruptionBudgetList is a collection of PodDisruptionBudgets. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'policy/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'PodDisruptionBudgetList' + __props__['metadata'] = metadata + super(PodDisruptionBudgetList, __self__).__init__( + 'kubernetes:policy/v1beta1:PodDisruptionBudgetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodDisruptionBudgetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodDisruptionBudgetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py new file mode 100644 index 0000000000..7aec18b162 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodSecurityPolicy(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + spec defines the policy enforced. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: spec defines the policy enforced. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'policy/v1beta1' + __props__['kind'] = 'PodSecurityPolicy' + __props__['metadata'] = metadata + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:extensions/v1beta1:PodSecurityPolicy")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(PodSecurityPolicy, __self__).__init__( + 'kubernetes:policy/v1beta1:PodSecurityPolicy', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodSecurityPolicy resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodSecurityPolicy(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py new file mode 100644 index 0000000000..3b8749e3df --- /dev/null +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodSecurityPolicyList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is a list of schema objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PodSecurityPolicyList is a list of PodSecurityPolicy objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'policy/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'PodSecurityPolicyList' + __props__['metadata'] = metadata + super(PodSecurityPolicyList, __self__).__init__( + 'kubernetes:policy/v1beta1:PodSecurityPolicyList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodSecurityPolicyList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodSecurityPolicyList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py new file mode 100644 index 0000000000..1c30569dbe --- /dev/null +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/__init__.py @@ -0,0 +1,9 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .PodDisruptionBudget import * +from .PodDisruptionBudgetList import * +from .PodSecurityPolicy import * +from .PodSecurityPolicyList import * diff --git a/sdk/python/pulumi_kubernetes/provider.py b/sdk/python/pulumi_kubernetes/provider.py new file mode 100644 index 0000000000..003374614c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/provider.py @@ -0,0 +1,83 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from . import utilities, tables + + +class Provider(pulumi.ProviderResource): + def __init__(__self__, resource_name, opts=None, cluster=None, context=None, enable_dry_run=None, kubeconfig=None, namespace=None, render_yaml_to_directory=None, suppress_deprecation_warnings=None, __props__=None, __name__=None, __opts__=None): + """ + The provider type for the kubernetes package. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] cluster: If present, the name of the kubeconfig cluster to use. + :param pulumi.Input[str] context: If present, the name of the kubeconfig context to use. + :param pulumi.Input[bool] enable_dry_run: BETA FEATURE - If present and set to true, enable server-side diff calculations. + This feature is in developer preview, and is disabled by default. + + This config can be specified in the following ways, using this precedence: + 1. This `enableDryRun` parameter. + 2. The `PULUMI_K8S_ENABLE_DRY_RUN` environment variable. + :param pulumi.Input[str] kubeconfig: The contents of a kubeconfig file. If this is set, this config will be used instead of $KUBECONFIG. + :param pulumi.Input[str] namespace: If present, the default namespace to use. This flag is ignored for cluster-scoped resources. + + A namespace can be specified in multiple places, and the precedence is as follows: + 1. `.metadata.namespace` set on the resource. + 2. This `namespace` parameter. + 3. `namespace` set for the active context in the kubeconfig. + :param pulumi.Input[str] render_yaml_to_directory: BETA FEATURE - If present, render resource manifests to this directory. In this mode, resources will not + be created on a Kubernetes cluster, but the rendered manifests will be kept in sync with changes + to the Pulumi program. This feature is in developer preview, and is disabled by default. + + Note that some computed Outputs such as status fields will not be populated + since the resources are not created on a Kubernetes cluster. These Output values will remain undefined, + and may result in an error if they are referenced by other resources. Also note that any secret values + used in these resources will be rendered in plaintext to the resulting YAML. + :param pulumi.Input[bool] suppress_deprecation_warnings: If present and set to true, suppress apiVersion deprecation warnings from the CLI. + + This config can be specified in the following ways, using this precedence: + 1. This `suppressDeprecationWarnings` parameter. + 2. The `PULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGS` environment variable. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['cluster'] = cluster + __props__['context'] = context + __props__['enable_dry_run'] = pulumi.Output.from_input(enable_dry_run).apply(json.dumps) if enable_dry_run is not None else None + __props__['kubeconfig'] = kubeconfig + __props__['namespace'] = namespace + __props__['render_yaml_to_directory'] = render_yaml_to_directory + __props__['suppress_deprecation_warnings'] = pulumi.Output.from_input(suppress_deprecation_warnings).apply(json.dumps) if suppress_deprecation_warnings is not None else None + super(Provider, __self__).__init__( + 'kubernetes', + resource_name, + __props__, + opts) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/__init__.py b/sdk/python/pulumi_kubernetes/rbac/__init__.py new file mode 100644 index 0000000000..1f87cd7749 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1', 'v1alpha1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py new file mode 100644 index 0000000000..2d0e742d3f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py @@ -0,0 +1,96 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRole(pulumi.CustomResource): + aggregation_rule: pulumi.Output[dict] + """ + AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + rules: pulumi.Output[list] + """ + Rules holds all the PolicyRules for this ClusterRole + """ + def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['aggregation_rule'] = aggregation_rule + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' + __props__['kind'] = 'ClusterRole' + __props__['metadata'] = metadata + __props__['rules'] = rules + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ClusterRole, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRole', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRole resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRole(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py new file mode 100644 index 0000000000..16e9d9ec8c --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleBinding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + role_ref: pulumi.Output[dict] + """ + RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """ + subjects: pulumi.Output[list] + """ + Subjects holds references to the objects the role applies to. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' + __props__['kind'] = 'ClusterRoleBinding' + __props__['metadata'] = metadata + if role_ref is None: + raise TypeError("Missing required property 'role_ref'") + __props__['role_ref'] = role_ref + __props__['subjects'] = subjects + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ClusterRoleBinding, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleBinding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleBinding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py new file mode 100644 index 0000000000..ce9c7b5b04 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleBindingList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ClusterRoleBindings + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleBindingList is a collection of ClusterRoleBindings + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ClusterRoleBindingList' + __props__['metadata'] = metadata + super(ClusterRoleBindingList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBindingList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleBindingList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleBindingList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py new file mode 100644 index 0000000000..cb44f6e954 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ClusterRoles + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleList is a collection of ClusterRoles + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ClusterRoles + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ClusterRoleList' + __props__['metadata'] = metadata + super(ClusterRoleList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1/Role.py new file mode 100644 index 0000000000..22eca3ae77 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/Role.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Role(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + rules: pulumi.Output[list] + """ + Rules holds all the PolicyRules for this Role + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): + """ + Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' + __props__['kind'] = 'Role' + __props__['metadata'] = metadata + __props__['rules'] = rules + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:Role"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:Role")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Role, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:Role', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Role resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Role(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py new file mode 100644 index 0000000000..2ef3a11f1e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleBinding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + role_ref: pulumi.Output[dict] + """ + RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """ + subjects: pulumi.Output[list] + """ + Subjects holds references to the objects the role applies to. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): + """ + RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' + __props__['kind'] = 'RoleBinding' + __props__['metadata'] = metadata + if role_ref is None: + raise TypeError("Missing required property 'role_ref'") + __props__['role_ref'] = role_ref + __props__['subjects'] = subjects + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(RoleBinding, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:RoleBinding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleBinding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleBinding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py new file mode 100644 index 0000000000..e80dcdc73e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleBindingList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of RoleBindings + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RoleBindingList is a collection of RoleBindings + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of RoleBindings + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'RoleBindingList' + __props__['metadata'] = metadata + super(RoleBindingList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:RoleBindingList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleBindingList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleBindingList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py new file mode 100644 index 0000000000..782d383d55 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of Roles + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RoleList is a collection of Roles + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of Roles + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'RoleList' + __props__['metadata'] = metadata + super(RoleList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1:RoleList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py b/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py new file mode 100644 index 0000000000..e86bf253d5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1/__init__.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .ClusterRole import * +from .ClusterRoleBinding import * +from .ClusterRoleBindingList import * +from .ClusterRoleList import * +from .Role import * +from .RoleBinding import * +from .RoleBindingList import * +from .RoleList import * diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py new file mode 100644 index 0000000000..d6fcdc86a0 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py @@ -0,0 +1,96 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRole(pulumi.CustomResource): + aggregation_rule: pulumi.Output[dict] + """ + AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + rules: pulumi.Output[list] + """ + Rules holds all the PolicyRules for this ClusterRole + """ + def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['aggregation_rule'] = aggregation_rule + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' + __props__['kind'] = 'ClusterRole' + __props__['metadata'] = metadata + __props__['rules'] = rules + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRole"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ClusterRole, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRole resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRole(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py new file mode 100644 index 0000000000..4559f9a01b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleBinding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + role_ref: pulumi.Output[dict] + """ + RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """ + subjects: pulumi.Output[list] + """ + Subjects holds references to the objects the role applies to. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' + __props__['kind'] = 'ClusterRoleBinding' + __props__['metadata'] = metadata + if role_ref is None: + raise TypeError("Missing required property 'role_ref'") + __props__['role_ref'] = role_ref + __props__['subjects'] = subjects + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ClusterRoleBinding, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleBinding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleBinding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py new file mode 100644 index 0000000000..d70c89578a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleBindingList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ClusterRoleBindings + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ClusterRoleBindingList' + __props__['metadata'] = metadata + super(ClusterRoleBindingList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBindingList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleBindingList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleBindingList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py new file mode 100644 index 0000000000..1e062467a8 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ClusterRoles + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ClusterRoles + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ClusterRoleList' + __props__['metadata'] = metadata + super(ClusterRoleList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py new file mode 100644 index 0000000000..4267f21831 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Role(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + rules: pulumi.Output[list] + """ + Rules holds all the PolicyRules for this Role + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): + """ + Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' + __props__['kind'] = 'Role' + __props__['metadata'] = metadata + __props__['rules'] = rules + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:Role"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:Role")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Role, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:Role', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Role resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Role(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py new file mode 100644 index 0000000000..0db54ce08e --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleBinding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + role_ref: pulumi.Output[dict] + """ + RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """ + subjects: pulumi.Output[list] + """ + Subjects holds references to the objects the role applies to. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): + """ + RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' + __props__['kind'] = 'RoleBinding' + __props__['metadata'] = metadata + if role_ref is None: + raise TypeError("Missing required property 'role_ref'") + __props__['role_ref'] = role_ref + __props__['subjects'] = subjects + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:RoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(RoleBinding, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleBinding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleBinding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py new file mode 100644 index 0000000000..5ef646170f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleBindingList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of RoleBindings + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of RoleBindings + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'RoleBindingList' + __props__['metadata'] = metadata + super(RoleBindingList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBindingList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleBindingList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleBindingList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py new file mode 100644 index 0000000000..b7edcc10b8 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of Roles + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RoleList is a collection of Roles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of Roles + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1alpha1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'RoleList' + __props__['metadata'] = metadata + super(RoleList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py new file mode 100644 index 0000000000..e86bf253d5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/__init__.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .ClusterRole import * +from .ClusterRoleBinding import * +from .ClusterRoleBindingList import * +from .ClusterRoleList import * +from .Role import * +from .RoleBinding import * +from .RoleBindingList import * +from .RoleList import * diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py new file mode 100644 index 0000000000..6cc4ab3734 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py @@ -0,0 +1,96 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRole(pulumi.CustomResource): + aggregation_rule: pulumi.Output[dict] + """ + AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + rules: pulumi.Output[list] + """ + Rules holds all the PolicyRules for this ClusterRole + """ + def __init__(__self__, resource_name, opts=None, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[dict] aggregation_rule: AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this ClusterRole + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['aggregation_rule'] = aggregation_rule + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' + __props__['kind'] = 'ClusterRole' + __props__['metadata'] = metadata + __props__['rules'] = rules + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRole"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ClusterRole, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRole resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRole(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py new file mode 100644 index 0000000000..f11be2fbac --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleBinding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + role_ref: pulumi.Output[dict] + """ + RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """ + subjects: pulumi.Output[list] + """ + Subjects holds references to the objects the role applies to. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[dict] role_ref: RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' + __props__['kind'] = 'ClusterRoleBinding' + __props__['metadata'] = metadata + if role_ref is None: + raise TypeError("Missing required property 'role_ref'") + __props__['role_ref'] = role_ref + __props__['subjects'] = subjects + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(ClusterRoleBinding, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleBinding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleBinding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py new file mode 100644 index 0000000000..34dc66aaba --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleBindingList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ClusterRoleBindings + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindingList, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ClusterRoleBindings + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ClusterRoleBindingList' + __props__['metadata'] = metadata + super(ClusterRoleBindingList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBindingList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleBindingList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleBindingList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py new file mode 100644 index 0000000000..2471d985a5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class ClusterRoleList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of ClusterRoles + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of ClusterRoles + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'ClusterRoleList' + __props__['metadata'] = metadata + super(ClusterRoleList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing ClusterRoleList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return ClusterRoleList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py new file mode 100644 index 0000000000..a60355a204 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class Role(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + rules: pulumi.Output[list] + """ + Rules holds all the PolicyRules for this Role + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, rules=None, __props__=None, __name__=None, __opts__=None): + """ + Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[list] rules: Rules holds all the PolicyRules for this Role + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' + __props__['kind'] = 'Role' + __props__['metadata'] = metadata + __props__['rules'] = rules + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:Role"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:Role")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(Role, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:Role', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing Role resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return Role(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py new file mode 100644 index 0000000000..02ead8d445 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleBinding(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + role_ref: pulumi.Output[dict] + """ + RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + """ + subjects: pulumi.Output[list] + """ + Subjects holds references to the objects the role applies to. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, __props__=None, __name__=None, __opts__=None): + """ + RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + :param pulumi.Input[dict] role_ref: RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + :param pulumi.Input[list] subjects: Subjects holds references to the objects the role applies to. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' + __props__['kind'] = 'RoleBinding' + __props__['metadata'] = metadata + if role_ref is None: + raise TypeError("Missing required property 'role_ref'") + __props__['role_ref'] = role_ref + __props__['subjects'] = subjects + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1:RoleBinding"), pulumi.Alias(type_="kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(RoleBinding, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleBinding resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleBinding(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py new file mode 100644 index 0000000000..4d667fb22b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleBindingList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of RoleBindings + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of RoleBindings + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'RoleBindingList' + __props__['metadata'] = metadata + super(RoleBindingList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBindingList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleBindingList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleBindingList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py new file mode 100644 index 0000000000..430ec71d28 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class RoleList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of Roles + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + RoleList is a collection of Roles Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.20. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of Roles + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'rbac.authorization.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'RoleList' + __props__['metadata'] = metadata + super(RoleList, __self__).__init__( + 'kubernetes:rbac.authorization.k8s.io/v1beta1:RoleList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing RoleList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return RoleList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py new file mode 100644 index 0000000000..e86bf253d5 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/__init__.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .ClusterRole import * +from .ClusterRoleBinding import * +from .ClusterRoleBindingList import * +from .ClusterRoleList import * +from .Role import * +from .RoleBinding import * +from .RoleBindingList import * +from .RoleList import * diff --git a/sdk/python/pulumi_kubernetes/scheduling/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/__init__.py new file mode 100644 index 0000000000..1f87cd7749 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1', 'v1alpha1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py new file mode 100644 index 0000000000..70b01be4af --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py @@ -0,0 +1,110 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityClass(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + description: pulumi.Output[str] + """ + description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """ + global_default: pulumi.Output[bool] + """ + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + preemption_policy: pulumi.Output[str] + """ + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + """ + value: pulumi.Output[float] + """ + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, __props__=None, __name__=None, __opts__=None): + """ + PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this priority class should be used. + :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + :param pulumi.Input[float] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'scheduling.k8s.io/v1' + __props__['description'] = description + __props__['global_default'] = global_default + __props__['kind'] = 'PriorityClass' + __props__['metadata'] = metadata + __props__['preemption_policy'] = preemption_policy + if value is None: + raise TypeError("Missing required property 'value'") + __props__['value'] = value + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass"), pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1beta1:PriorityClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(PriorityClass, __self__).__init__( + 'kubernetes:scheduling.k8s.io/v1:PriorityClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py new file mode 100644 index 0000000000..e092668fd4 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of PriorityClasses + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PriorityClassList is a collection of priority classes. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of PriorityClasses + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'scheduling.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'PriorityClassList' + __props__['metadata'] = metadata + super(PriorityClassList, __self__).__init__( + 'kubernetes:scheduling.k8s.io/v1:PriorityClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py new file mode 100644 index 0000000000..db19940172 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .PriorityClass import * +from .PriorityClassList import * diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py new file mode 100644 index 0000000000..963366ab54 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py @@ -0,0 +1,110 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityClass(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + description: pulumi.Output[str] + """ + description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """ + global_default: pulumi.Output[bool] + """ + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + preemption_policy: pulumi.Output[str] + """ + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + """ + value: pulumi.Output[float] + """ + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, __props__=None, __name__=None, __opts__=None): + """ + DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this priority class should be used. + :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + :param pulumi.Input[float] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'scheduling.k8s.io/v1alpha1' + __props__['description'] = description + __props__['global_default'] = global_default + __props__['kind'] = 'PriorityClass' + __props__['metadata'] = metadata + __props__['preemption_policy'] = preemption_policy + if value is None: + raise TypeError("Missing required property 'value'") + __props__['value'] = value + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1:PriorityClass"), pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1beta1:PriorityClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(PriorityClass, __self__).__init__( + 'kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py new file mode 100644 index 0000000000..0724f2b85d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of PriorityClasses + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PriorityClassList is a collection of priority classes. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of PriorityClasses + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'scheduling.k8s.io/v1alpha1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'PriorityClassList' + __props__['metadata'] = metadata + super(PriorityClassList, __self__).__init__( + 'kubernetes:scheduling.k8s.io/v1alpha1:PriorityClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py new file mode 100644 index 0000000000..db19940172 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .PriorityClass import * +from .PriorityClassList import * diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py new file mode 100644 index 0000000000..3ed23631ed --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py @@ -0,0 +1,110 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityClass(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + description: pulumi.Output[str] + """ + description is an arbitrary string that usually provides guidelines on when this priority class should be used. + """ + global_default: pulumi.Output[bool] + """ + globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + preemption_policy: pulumi.Output[str] + """ + PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + """ + value: pulumi.Output[float] + """ + The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, __props__=None, __name__=None, __opts__=None): + """ + DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[str] description: description is an arbitrary string that usually provides guidelines on when this priority class should be used. + :param pulumi.Input[bool] global_default: globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[str] preemption_policy: PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + :param pulumi.Input[float] value: The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'scheduling.k8s.io/v1beta1' + __props__['description'] = description + __props__['global_default'] = global_default + __props__['kind'] = 'PriorityClass' + __props__['metadata'] = metadata + __props__['preemption_policy'] = preemption_policy + if value is None: + raise TypeError("Missing required property 'value'") + __props__['value'] = value + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1:PriorityClass"), pulumi.Alias(type_="kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(PriorityClass, __self__).__init__( + 'kubernetes:scheduling.k8s.io/v1beta1:PriorityClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py new file mode 100644 index 0000000000..f8ce6cf840 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PriorityClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of PriorityClasses + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PriorityClassList is a collection of priority classes. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of PriorityClasses + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'scheduling.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'PriorityClassList' + __props__['metadata'] = metadata + super(PriorityClassList, __self__).__init__( + 'kubernetes:scheduling.k8s.io/v1beta1:PriorityClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PriorityClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PriorityClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py new file mode 100644 index 0000000000..db19940172 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .PriorityClass import * +from .PriorityClassList import * diff --git a/sdk/python/pulumi_kubernetes/settings/__init__.py b/sdk/python/pulumi_kubernetes/settings/__init__.py new file mode 100644 index 0000000000..d688fb9289 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/settings/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1alpha1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py new file mode 100644 index 0000000000..2a159a0399 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py @@ -0,0 +1,80 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodPreset(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + spec: pulumi.Output[dict] + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + PodPreset is a policy resource that defines additional runtime requirements for a Pod. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'settings.k8s.io/v1alpha1' + __props__['kind'] = 'PodPreset' + __props__['metadata'] = metadata + __props__['spec'] = spec + super(PodPreset, __self__).__init__( + 'kubernetes:settings.k8s.io/v1alpha1:PodPreset', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodPreset resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodPreset(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py new file mode 100644 index 0000000000..0c3361815b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class PodPresetList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is a list of schema objects. + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + PodPresetList is a list of PodPreset objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is a list of schema objects. + :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 + :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'settings.k8s.io/v1alpha1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'PodPresetList' + __props__['metadata'] = metadata + super(PodPresetList, __self__).__init__( + 'kubernetes:settings.k8s.io/v1alpha1:PodPresetList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing PodPresetList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PodPresetList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py new file mode 100644 index 0000000000..c69aa08339 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .PodPreset import * +from .PodPresetList import * diff --git a/sdk/python/pulumi_kubernetes/storage/__init__.py b/sdk/python/pulumi_kubernetes/storage/__init__.py new file mode 100644 index 0000000000..1f87cd7749 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import importlib +# Make subpackages available: +__all__ = ['v1', 'v1alpha1', 'v1beta1'] +for pkg in __all__: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py new file mode 100644 index 0000000000..8b27bd047b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py @@ -0,0 +1,92 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSIDriver(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the CSI Driver. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the CSI Driver. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1' + __props__['kind'] = 'CSIDriver' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:CSIDriver")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CSIDriver, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:CSIDriver', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSIDriver resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSIDriver(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py new file mode 100644 index 0000000000..42d8f4b5d7 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSIDriverList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of CSIDriver + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CSIDriverList is a collection of CSIDriver objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of CSIDriver + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'CSIDriverList' + __props__['metadata'] = metadata + super(CSIDriverList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:CSIDriverList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSIDriverList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSIDriverList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py new file mode 100644 index 0000000000..20b513cd6a --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py @@ -0,0 +1,92 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSINode(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + metadata.name must be the Kubernetes node name. + """ + spec: pulumi.Output[dict] + """ + spec is the specification of CSINode + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: metadata.name must be the Kubernetes node name. + :param pulumi.Input[dict] spec: spec is the specification of CSINode + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1' + __props__['kind'] = 'CSINode' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:CSINode")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CSINode, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:CSINode', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSINode resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSINode(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py new file mode 100644 index 0000000000..128a51955f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSINodeList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of CSINode + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CSINodeList is a collection of CSINode objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of CSINode + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'CSINodeList' + __props__['metadata'] = metadata + super(CSINodeList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:CSINodeList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSINodeList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSINodeList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py new file mode 100644 index 0000000000..87986f28a9 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py @@ -0,0 +1,130 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StorageClass(pulumi.CustomResource): + allow_volume_expansion: pulumi.Output[bool] + """ + AllowVolumeExpansion shows whether the storage class allow volume expand + """ + allowed_topologies: pulumi.Output[list] + """ + Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + mount_options: pulumi.Output[list] + """ + Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + """ + parameters: pulumi.Output[dict] + """ + Parameters holds the parameters for the provisioner that should create volumes of this storage class. + """ + provisioner: pulumi.Output[str] + """ + Provisioner indicates the type of the provisioner. + """ + reclaim_policy: pulumi.Output[str] + """ + Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + """ + volume_binding_mode: pulumi.Output[str] + """ + VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """ + def __init__(__self__, resource_name, opts=None, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None, __props__=None, __name__=None, __opts__=None): + """ + StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. + + StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[bool] allow_volume_expansion: AllowVolumeExpansion shows whether the storage class allow volume expand + :param pulumi.Input[list] allowed_topologies: Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[list] mount_options: Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + :param pulumi.Input[dict] parameters: Parameters holds the parameters for the provisioner that should create volumes of this storage class. + :param pulumi.Input[str] provisioner: Provisioner indicates the type of the provisioner. + :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['allow_volume_expansion'] = allow_volume_expansion + __props__['allowed_topologies'] = allowed_topologies + __props__['api_version'] = 'storage.k8s.io/v1' + __props__['kind'] = 'StorageClass' + __props__['metadata'] = metadata + __props__['mount_options'] = mount_options + __props__['parameters'] = parameters + if provisioner is None: + raise TypeError("Missing required property 'provisioner'") + __props__['provisioner'] = provisioner + __props__['reclaim_policy'] = reclaim_policy + __props__['volume_binding_mode'] = volume_binding_mode + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:StorageClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(StorageClass, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:StorageClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StorageClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StorageClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py new file mode 100644 index 0000000000..acd2729045 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StorageClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of StorageClasses + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + StorageClassList is a collection of storage classes. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of StorageClasses + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'StorageClassList' + __props__['metadata'] = metadata + super(StorageClassList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:StorageClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StorageClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StorageClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py new file mode 100644 index 0000000000..9f4a2d000f --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py @@ -0,0 +1,99 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class VolumeAttachment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """ + status: pulumi.Output[dict] + """ + Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + + VolumeAttachment objects are non-namespaced. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1' + __props__['kind'] = 'VolumeAttachment' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment"), pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:VolumeAttachment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(VolumeAttachment, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:VolumeAttachment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing VolumeAttachment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return VolumeAttachment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py new file mode 100644 index 0000000000..977a95b40d --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class VolumeAttachmentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of VolumeAttachments + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + VolumeAttachmentList is a collection of VolumeAttachment objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of VolumeAttachments + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'VolumeAttachmentList' + __props__['metadata'] = metadata + super(VolumeAttachmentList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1:VolumeAttachmentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing VolumeAttachmentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return VolumeAttachmentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/__init__.py b/sdk/python/pulumi_kubernetes/storage/v1/__init__.py new file mode 100644 index 0000000000..c245ce2669 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1/__init__.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .CSIDriver import * +from .CSIDriverList import * +from .CSINode import * +from .CSINodeList import * +from .StorageClass import * +from .StorageClassList import * +from .VolumeAttachment import * +from .VolumeAttachmentList import * diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py new file mode 100644 index 0000000000..6b9f74bae4 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py @@ -0,0 +1,99 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class VolumeAttachment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """ + status: pulumi.Output[dict] + """ + Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + + VolumeAttachment objects are non-namespaced. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1alpha1' + __props__['kind'] = 'VolumeAttachment' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:VolumeAttachment"), pulumi.Alias(type_="kubernetes:storage.k8s.io/v1beta1:VolumeAttachment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(VolumeAttachment, __self__).__init__( + 'kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing VolumeAttachment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return VolumeAttachment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py new file mode 100644 index 0000000000..3d24e2ad84 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class VolumeAttachmentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of VolumeAttachments + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + VolumeAttachmentList is a collection of VolumeAttachment objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of VolumeAttachments + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1alpha1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'VolumeAttachmentList' + __props__['metadata'] = metadata + super(VolumeAttachmentList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1alpha1:VolumeAttachmentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing VolumeAttachmentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return VolumeAttachmentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py new file mode 100644 index 0000000000..9f5aca33a0 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/__init__.py @@ -0,0 +1,7 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .VolumeAttachment import * +from .VolumeAttachmentList import * diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py new file mode 100644 index 0000000000..e5b1537b57 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py @@ -0,0 +1,92 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSIDriver(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the CSI Driver. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. CSI drivers do not need to create the CSIDriver object directly. Instead they may use the cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically creates a CSIDriver object representing the driver. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the CSI Driver. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1beta1' + __props__['kind'] = 'CSIDriver' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:CSIDriver")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CSIDriver, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:CSIDriver', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSIDriver resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSIDriver(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py new file mode 100644 index 0000000000..e7496f14fb --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSIDriverList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of CSIDriver + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CSIDriverList is a collection of CSIDriver objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of CSIDriver + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'CSIDriverList' + __props__['metadata'] = metadata + super(CSIDriverList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:CSIDriverList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSIDriverList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSIDriverList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py new file mode 100644 index 0000000000..fdc0f3f2f2 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py @@ -0,0 +1,97 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + +warnings.warn("storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.", DeprecationWarning) + + +class CSINode(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + metadata.name must be the Kubernetes node name. + """ + spec: pulumi.Output[dict] + """ + spec is the specification of CSINode + """ + warnings.warn("storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.", DeprecationWarning) + + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: metadata.name must be the Kubernetes node name. + :param pulumi.Input[dict] spec: spec is the specification of CSINode + """ + pulumi.log.warn("CSINode is deprecated: storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode.") + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1beta1' + __props__['kind'] = 'CSINode' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:CSINode")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(CSINode, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:CSINode', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSINode resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSINode(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py new file mode 100644 index 0000000000..6ca17bdaa8 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class CSINodeList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + items is the list of CSINode + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + CSINodeList is a collection of CSINode objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: items is the list of CSINode + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'CSINodeList' + __props__['metadata'] = metadata + super(CSINodeList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:CSINodeList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing CSINodeList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return CSINodeList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py new file mode 100644 index 0000000000..1af2f64808 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py @@ -0,0 +1,130 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StorageClass(pulumi.CustomResource): + allow_volume_expansion: pulumi.Output[bool] + """ + AllowVolumeExpansion shows whether the storage class allow volume expand + """ + allowed_topologies: pulumi.Output[list] + """ + Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + """ + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + mount_options: pulumi.Output[list] + """ + Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + """ + parameters: pulumi.Output[dict] + """ + Parameters holds the parameters for the provisioner that should create volumes of this storage class. + """ + provisioner: pulumi.Output[str] + """ + Provisioner indicates the type of the provisioner. + """ + reclaim_policy: pulumi.Output[str] + """ + Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + """ + volume_binding_mode: pulumi.Output[str] + """ + VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """ + def __init__(__self__, resource_name, opts=None, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None, __props__=None, __name__=None, __opts__=None): + """ + StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. + + StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[bool] allow_volume_expansion: AllowVolumeExpansion shows whether the storage class allow volume expand + :param pulumi.Input[list] allowed_topologies: Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[list] mount_options: Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid. + :param pulumi.Input[dict] parameters: Parameters holds the parameters for the provisioner that should create volumes of this storage class. + :param pulumi.Input[str] provisioner: Provisioner indicates the type of the provisioner. + :param pulumi.Input[str] reclaim_policy: Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. + :param pulumi.Input[str] volume_binding_mode: VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['allow_volume_expansion'] = allow_volume_expansion + __props__['allowed_topologies'] = allowed_topologies + __props__['api_version'] = 'storage.k8s.io/v1beta1' + __props__['kind'] = 'StorageClass' + __props__['metadata'] = metadata + __props__['mount_options'] = mount_options + __props__['parameters'] = parameters + if provisioner is None: + raise TypeError("Missing required property 'provisioner'") + __props__['provisioner'] = provisioner + __props__['reclaim_policy'] = reclaim_policy + __props__['volume_binding_mode'] = volume_binding_mode + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:StorageClass")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(StorageClass, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:StorageClass', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StorageClass resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StorageClass(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py new file mode 100644 index 0000000000..af772a5d57 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class StorageClassList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of StorageClasses + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + StorageClassList is a collection of storage classes. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of StorageClasses + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'StorageClassList' + __props__['metadata'] = metadata + super(StorageClassList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:StorageClassList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing StorageClassList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return StorageClassList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py new file mode 100644 index 0000000000..66efb6ac36 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py @@ -0,0 +1,99 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class VolumeAttachment(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + spec: pulumi.Output[dict] + """ + Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """ + status: pulumi.Output[dict] + """ + Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + """ + def __init__(__self__, resource_name, opts=None, api_version=None, kind=None, metadata=None, spec=None, __props__=None, __name__=None, __opts__=None): + """ + VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. + + VolumeAttachment objects are non-namespaced. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :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 + :param pulumi.Input[dict] metadata: Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + :param pulumi.Input[dict] spec: Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1beta1' + __props__['kind'] = 'VolumeAttachment' + __props__['metadata'] = metadata + if spec is None: + raise TypeError("Missing required property 'spec'") + __props__['spec'] = spec + __props__['status'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:storage.k8s.io/v1:VolumeAttachment"), pulumi.Alias(type_="kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(VolumeAttachment, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:VolumeAttachment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing VolumeAttachment resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return VolumeAttachment(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py new file mode 100644 index 0000000000..34c9f71159 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +import warnings +import pulumi +import pulumi.runtime +from typing import Union +from ... import utilities, tables + + +class VolumeAttachmentList(pulumi.CustomResource): + api_version: pulumi.Output[str] + """ + 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 + """ + items: pulumi.Output[list] + """ + Items is the list of VolumeAttachments + """ + kind: pulumi.Output[str] + """ + 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 + """ + metadata: pulumi.Output[dict] + """ + Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): + """ + VolumeAttachmentList is a collection of VolumeAttachment objects. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :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 + :param pulumi.Input[list] items: Items is the list of VolumeAttachments + :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 + :param pulumi.Input[dict] metadata: Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['api_version'] = 'storage.k8s.io/v1beta1' + if items is None: + raise TypeError("Missing required property 'items'") + __props__['items'] = items + __props__['kind'] = 'VolumeAttachmentList' + __props__['metadata'] = metadata + super(VolumeAttachmentList, __self__).__init__( + 'kubernetes:storage.k8s.io/v1beta1:VolumeAttachmentList', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name, id, opts=None): + """ + Get an existing VolumeAttachmentList resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param str id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return VolumeAttachmentList(resource_name, opts=opts, __props__=__props__) + + def translate_output_property(self, prop): + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py new file mode 100644 index 0000000000..c245ce2669 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/__init__.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .CSIDriver import * +from .CSIDriverList import * +from .CSINode import * +from .CSINodeList import * +from .StorageClass import * +from .StorageClassList import * +from .VolumeAttachment import * +from .VolumeAttachmentList import * diff --git a/sdk/python/pulumi_kubernetes/tables.py b/sdk/python/pulumi_kubernetes/tables.py new file mode 100644 index 0000000000..634022cc4b --- /dev/null +++ b/sdk/python/pulumi_kubernetes/tables.py @@ -0,0 +1,923 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +_SNAKE_TO_CAMEL_CASE_TABLE = { + "_ref": "$ref", + "_schema": "$schema", + "accepted_names": "acceptedNames", + "access_modes": "accessModes", + "acquire_time": "acquireTime", + "active_deadline_seconds": "activeDeadlineSeconds", + "additional_items": "additionalItems", + "additional_printer_columns": "additionalPrinterColumns", + "additional_properties": "additionalProperties", + "address_type": "addressType", + "admission_review_versions": "admissionReviewVersions", + "aggregation_rule": "aggregationRule", + "all_of": "allOf", + "allow_privilege_escalation": "allowPrivilegeEscalation", + "allow_volume_expansion": "allowVolumeExpansion", + "allowed_capabilities": "allowedCapabilities", + "allowed_csi_drivers": "allowedCSIDrivers", + "allowed_flex_volumes": "allowedFlexVolumes", + "allowed_host_paths": "allowedHostPaths", + "allowed_proc_mount_types": "allowedProcMountTypes", + "allowed_runtime_class_names": "allowedRuntimeClassNames", + "allowed_topologies": "allowedTopologies", + "allowed_unsafe_sysctls": "allowedUnsafeSysctls", + "any_of": "anyOf", + "api_group": "apiGroup", + "api_groups": "apiGroups", + "api_version": "apiVersion", + "api_versions": "apiVersions", + "app_protocol": "appProtocol", + "assured_concurrency_shares": "assuredConcurrencyShares", + "attach_error": "attachError", + "attach_required": "attachRequired", + "attachment_metadata": "attachmentMetadata", + "automount_service_account_token": "automountServiceAccountToken", + "available_replicas": "availableReplicas", + "average_utilization": "averageUtilization", + "average_value": "averageValue", + "aws_elastic_block_store": "awsElasticBlockStore", + "azure_disk": "azureDisk", + "azure_file": "azureFile", + "backoff_limit": "backoffLimit", + "binary_data": "binaryData", + "block_owner_deletion": "blockOwnerDeletion", + "boot_id": "bootID", + "bound_object_ref": "boundObjectRef", + "build_date": "buildDate", + "ca_bundle": "caBundle", + "caching_mode": "cachingMode", + "chap_auth_discovery": "chapAuthDiscovery", + "chap_auth_session": "chapAuthSession", + "claim_name": "claimName", + "claim_ref": "claimRef", + "client_cidr": "clientCIDR", + "client_config": "clientConfig", + "client_ip": "clientIP", + "cluster_ip": "clusterIP", + "cluster_name": "clusterName", + "cluster_role_selectors": "clusterRoleSelectors", + "cluster_scope": "clusterScope", + "collision_count": "collisionCount", + "completion_time": "completionTime", + "concurrency_policy": "concurrencyPolicy", + "condition_type": "conditionType", + "config_map": "configMap", + "config_map_key_ref": "configMapKeyRef", + "config_map_ref": "configMapRef", + "config_source": "configSource", + "container_id": "containerID", + "container_name": "containerName", + "container_port": "containerPort", + "container_runtime_version": "containerRuntimeVersion", + "container_statuses": "containerStatuses", + "continue_": "continue", + "controller_expand_secret_ref": "controllerExpandSecretRef", + "controller_publish_secret_ref": "controllerPublishSecretRef", + "conversion_review_versions": "conversionReviewVersions", + "creation_timestamp": "creationTimestamp", + "current_average_utilization": "currentAverageUtilization", + "current_average_value": "currentAverageValue", + "current_cpu_utilization_percentage": "currentCPUUtilizationPercentage", + "current_healthy": "currentHealthy", + "current_metrics": "currentMetrics", + "current_number_scheduled": "currentNumberScheduled", + "current_replicas": "currentReplicas", + "current_revision": "currentRevision", + "current_value": "currentValue", + "daemon_endpoints": "daemonEndpoints", + "data_source": "dataSource", + "dataset_name": "datasetName", + "dataset_uuid": "datasetUUID", + "default_add_capabilities": "defaultAddCapabilities", + "default_allow_privilege_escalation": "defaultAllowPrivilegeEscalation", + "default_mode": "defaultMode", + "default_request": "defaultRequest", + "default_runtime_class_name": "defaultRuntimeClassName", + "delete_options": "deleteOptions", + "deletion_grace_period_seconds": "deletionGracePeriodSeconds", + "deletion_timestamp": "deletionTimestamp", + "deprecated_count": "deprecatedCount", + "deprecated_first_timestamp": "deprecatedFirstTimestamp", + "deprecated_last_timestamp": "deprecatedLastTimestamp", + "deprecated_source": "deprecatedSource", + "described_object": "describedObject", + "desired_healthy": "desiredHealthy", + "desired_number_scheduled": "desiredNumberScheduled", + "desired_replicas": "desiredReplicas", + "detach_error": "detachError", + "device_path": "devicePath", + "disk_name": "diskName", + "disk_uri": "diskURI", + "disrupted_pods": "disruptedPods", + "disruptions_allowed": "disruptionsAllowed", + "distinguisher_method": "distinguisherMethod", + "dns_config": "dnsConfig", + "dns_policy": "dnsPolicy", + "downward_api": "downwardAPI", + "dry_run": "dryRun", + "empty_dir": "emptyDir", + "enable_service_links": "enableServiceLinks", + "endpoints_namespace": "endpointsNamespace", + "env_from": "envFrom", + "ephemeral_container_statuses": "ephemeralContainerStatuses", + "ephemeral_containers": "ephemeralContainers", + "evaluation_error": "evaluationError", + "event_time": "eventTime", + "except_": "except", + "exclusive_maximum": "exclusiveMaximum", + "exclusive_minimum": "exclusiveMinimum", + "exec_": "exec", + "exit_code": "exitCode", + "expected_pods": "expectedPods", + "expiration_seconds": "expirationSeconds", + "expiration_timestamp": "expirationTimestamp", + "external_docs": "externalDocs", + "external_i_ps": "externalIPs", + "external_id": "externalID", + "external_name": "externalName", + "external_traffic_policy": "externalTrafficPolicy", + "failed_jobs_history_limit": "failedJobsHistoryLimit", + "failure_policy": "failurePolicy", + "failure_threshold": "failureThreshold", + "field_path": "fieldPath", + "field_ref": "fieldRef", + "fields_type": "fieldsType", + "fields_v1": "fieldsV1", + "finished_at": "finishedAt", + "first_timestamp": "firstTimestamp", + "flex_volume": "flexVolume", + "forbidden_sysctls": "forbiddenSysctls", + "from_": "from", + "fs_group": "fsGroup", + "fs_group_change_policy": "fsGroupChangePolicy", + "fs_type": "fsType", + "fully_labeled_replicas": "fullyLabeledReplicas", + "gce_persistent_disk": "gcePersistentDisk", + "generate_name": "generateName", + "git_commit": "gitCommit", + "git_repo": "gitRepo", + "git_tree_state": "gitTreeState", + "git_version": "gitVersion", + "global_default": "globalDefault", + "gmsa_credential_spec": "gmsaCredentialSpec", + "gmsa_credential_spec_name": "gmsaCredentialSpecName", + "go_version": "goVersion", + "grace_period_seconds": "gracePeriodSeconds", + "group_priority_minimum": "groupPriorityMinimum", + "group_version": "groupVersion", + "hand_size": "handSize", + "health_check_node_port": "healthCheckNodePort", + "holder_identity": "holderIdentity", + "host_aliases": "hostAliases", + "host_ip": "hostIP", + "host_ipc": "hostIPC", + "host_network": "hostNetwork", + "host_path": "hostPath", + "host_pid": "hostPID", + "host_port": "hostPort", + "host_ports": "hostPorts", + "http_get": "httpGet", + "http_headers": "httpHeaders", + "image_id": "imageID", + "image_pull_policy": "imagePullPolicy", + "image_pull_secrets": "imagePullSecrets", + "ingress_class_name": "ingressClassName", + "init_container_statuses": "initContainerStatuses", + "init_containers": "initContainers", + "initial_delay_seconds": "initialDelaySeconds", + "initiator_name": "initiatorName", + "inline_volume_spec": "inlineVolumeSpec", + "insecure_skip_tls_verify": "insecureSkipTLSVerify", + "involved_object": "involvedObject", + "ip_block": "ipBlock", + "ip_family": "ipFamily", + "iscsi_interface": "iscsiInterface", + "job_template": "jobTemplate", + "json_path": "JSONPath", + "kernel_version": "kernelVersion", + "kube_proxy_version": "kubeProxyVersion", + "kubelet_config_key": "kubeletConfigKey", + "kubelet_endpoint": "kubeletEndpoint", + "kubelet_version": "kubeletVersion", + "label_selector": "labelSelector", + "label_selector_path": "labelSelectorPath", + "last_heartbeat_time": "lastHeartbeatTime", + "last_known_good": "lastKnownGood", + "last_observed_time": "lastObservedTime", + "last_probe_time": "lastProbeTime", + "last_scale_time": "lastScaleTime", + "last_schedule_time": "lastScheduleTime", + "last_state": "lastState", + "last_timestamp": "lastTimestamp", + "last_transition_time": "lastTransitionTime", + "last_update_time": "lastUpdateTime", + "lease_duration_seconds": "leaseDurationSeconds", + "lease_transitions": "leaseTransitions", + "limit_response": "limitResponse", + "list_kind": "listKind", + "liveness_probe": "livenessProbe", + "load_balancer": "loadBalancer", + "load_balancer_ip": "loadBalancerIP", + "load_balancer_source_ranges": "loadBalancerSourceRanges", + "machine_id": "machineID", + "managed_fields": "managedFields", + "manual_selector": "manualSelector", + "match_expressions": "matchExpressions", + "match_fields": "matchFields", + "match_label_expressions": "matchLabelExpressions", + "match_labels": "matchLabels", + "match_policy": "matchPolicy", + "matching_precedence": "matchingPrecedence", + "max_items": "maxItems", + "max_length": "maxLength", + "max_limit_request_ratio": "maxLimitRequestRatio", + "max_properties": "maxProperties", + "max_replicas": "maxReplicas", + "max_skew": "maxSkew", + "max_surge": "maxSurge", + "max_unavailable": "maxUnavailable", + "metric_name": "metricName", + "metric_selector": "metricSelector", + "min_available": "minAvailable", + "min_items": "minItems", + "min_length": "minLength", + "min_properties": "minProperties", + "min_ready_seconds": "minReadySeconds", + "min_replicas": "minReplicas", + "mount_options": "mountOptions", + "mount_path": "mountPath", + "mount_propagation": "mountPropagation", + "multiple_of": "multipleOf", + "namespace_selector": "namespaceSelector", + "node_affinity": "nodeAffinity", + "node_id": "nodeID", + "node_info": "nodeInfo", + "node_name": "nodeName", + "node_port": "nodePort", + "node_publish_secret_ref": "nodePublishSecretRef", + "node_selector": "nodeSelector", + "node_selector_terms": "nodeSelectorTerms", + "node_stage_secret_ref": "nodeStageSecretRef", + "nominated_node_name": "nominatedNodeName", + "non_resource_attributes": "nonResourceAttributes", + "non_resource_rules": "nonResourceRules", + "non_resource_ur_ls": "nonResourceURLs", + "not_": "not", + "not_ready_addresses": "notReadyAddresses", + "number_available": "numberAvailable", + "number_misscheduled": "numberMisscheduled", + "number_ready": "numberReady", + "number_unavailable": "numberUnavailable", + "object_selector": "objectSelector", + "observed_generation": "observedGeneration", + "one_of": "oneOf", + "open_apiv3_schema": "openAPIV3Schema", + "operating_system": "operatingSystem", + "orphan_dependents": "orphanDependents", + "os_image": "osImage", + "owner_references": "ownerReferences", + "path_prefix": "pathPrefix", + "path_type": "pathType", + "pattern_properties": "patternProperties", + "pd_id": "pdID", + "pd_name": "pdName", + "period_seconds": "periodSeconds", + "persistent_volume_claim": "persistentVolumeClaim", + "persistent_volume_name": "persistentVolumeName", + "persistent_volume_reclaim_policy": "persistentVolumeReclaimPolicy", + "photon_persistent_disk": "photonPersistentDisk", + "pod_affinity": "podAffinity", + "pod_affinity_term": "podAffinityTerm", + "pod_anti_affinity": "podAntiAffinity", + "pod_cid_rs": "podCIDRs", + "pod_cidr": "podCIDR", + "pod_fixed": "podFixed", + "pod_i_ps": "podIPs", + "pod_info_on_mount": "podInfoOnMount", + "pod_ip": "podIP", + "pod_management_policy": "podManagementPolicy", + "pod_selector": "podSelector", + "policy_types": "policyTypes", + "portworx_volume": "portworxVolume", + "post_start": "postStart", + "pre_stop": "preStop", + "preemption_policy": "preemptionPolicy", + "preferred_during_scheduling_ignored_during_execution": "preferredDuringSchedulingIgnoredDuringExecution", + "preferred_version": "preferredVersion", + "preserve_unknown_fields": "preserveUnknownFields", + "priority_class_name": "priorityClassName", + "priority_level_configuration": "priorityLevelConfiguration", + "proc_mount": "procMount", + "progress_deadline_seconds": "progressDeadlineSeconds", + "propagation_policy": "propagationPolicy", + "protection_domain": "protectionDomain", + "provider_id": "providerID", + "publish_not_ready_addresses": "publishNotReadyAddresses", + "qos_class": "qosClass", + "queue_length_limit": "queueLengthLimit", + "read_only": "readOnly", + "read_only_root_filesystem": "readOnlyRootFilesystem", + "readiness_gates": "readinessGates", + "readiness_probe": "readinessProbe", + "ready_replicas": "readyReplicas", + "reclaim_policy": "reclaimPolicy", + "reinvocation_policy": "reinvocationPolicy", + "remaining_item_count": "remainingItemCount", + "renew_time": "renewTime", + "reporting_component": "reportingComponent", + "reporting_controller": "reportingController", + "reporting_instance": "reportingInstance", + "required_drop_capabilities": "requiredDropCapabilities", + "required_during_scheduling_ignored_during_execution": "requiredDuringSchedulingIgnoredDuringExecution", + "resource_attributes": "resourceAttributes", + "resource_field_ref": "resourceFieldRef", + "resource_names": "resourceNames", + "resource_rules": "resourceRules", + "resource_version": "resourceVersion", + "restart_count": "restartCount", + "restart_policy": "restartPolicy", + "retry_after_seconds": "retryAfterSeconds", + "revision_history_limit": "revisionHistoryLimit", + "role_ref": "roleRef", + "rollback_to": "rollbackTo", + "rolling_update": "rollingUpdate", + "run_as_group": "runAsGroup", + "run_as_non_root": "runAsNonRoot", + "run_as_user": "runAsUser", + "run_as_user_name": "runAsUserName", + "runtime_class": "runtimeClass", + "runtime_class_name": "runtimeClassName", + "runtime_handler": "runtimeHandler", + "scale_down": "scaleDown", + "scale_io": "scaleIO", + "scale_target_ref": "scaleTargetRef", + "scale_up": "scaleUp", + "scheduler_name": "schedulerName", + "scope_name": "scopeName", + "scope_selector": "scopeSelector", + "se_linux": "seLinux", + "se_linux_options": "seLinuxOptions", + "secret_file": "secretFile", + "secret_key_ref": "secretKeyRef", + "secret_name": "secretName", + "secret_namespace": "secretNamespace", + "secret_ref": "secretRef", + "security_context": "securityContext", + "select_policy": "selectPolicy", + "self_link": "selfLink", + "server_address": "serverAddress", + "server_address_by_client_cid_rs": "serverAddressByClientCIDRs", + "service_account": "serviceAccount", + "service_account_name": "serviceAccountName", + "service_account_token": "serviceAccountToken", + "service_name": "serviceName", + "service_port": "servicePort", + "session_affinity": "sessionAffinity", + "session_affinity_config": "sessionAffinityConfig", + "share_name": "shareName", + "share_process_namespace": "shareProcessNamespace", + "short_names": "shortNames", + "side_effects": "sideEffects", + "signer_name": "signerName", + "singular_name": "singularName", + "size_bytes": "sizeBytes", + "size_limit": "sizeLimit", + "spec_replicas_path": "specReplicasPath", + "ssl_enabled": "sslEnabled", + "stabilization_window_seconds": "stabilizationWindowSeconds", + "start_time": "startTime", + "started_at": "startedAt", + "starting_deadline_seconds": "startingDeadlineSeconds", + "startup_probe": "startupProbe", + "status_replicas_path": "statusReplicasPath", + "stdin_once": "stdinOnce", + "storage_class_name": "storageClassName", + "storage_mode": "storageMode", + "storage_policy_id": "storagePolicyID", + "storage_policy_name": "storagePolicyName", + "storage_pool": "storagePool", + "storage_version_hash": "storageVersionHash", + "stored_versions": "storedVersions", + "string_data": "stringData", + "sub_path": "subPath", + "sub_path_expr": "subPathExpr", + "success_threshold": "successThreshold", + "successful_jobs_history_limit": "successfulJobsHistoryLimit", + "supplemental_groups": "supplementalGroups", + "system_uuid": "systemUUID", + "target_average_utilization": "targetAverageUtilization", + "target_average_value": "targetAverageValue", + "target_container_name": "targetContainerName", + "target_cpu_utilization_percentage": "targetCPUUtilizationPercentage", + "target_port": "targetPort", + "target_portal": "targetPortal", + "target_ref": "targetRef", + "target_selector": "targetSelector", + "target_value": "targetValue", + "target_ww_ns": "targetWWNs", + "tcp_socket": "tcpSocket", + "template_generation": "templateGeneration", + "termination_grace_period_seconds": "terminationGracePeriodSeconds", + "termination_message_path": "terminationMessagePath", + "termination_message_policy": "terminationMessagePolicy", + "time_added": "timeAdded", + "timeout_seconds": "timeoutSeconds", + "toleration_seconds": "tolerationSeconds", + "topology_key": "topologyKey", + "topology_keys": "topologyKeys", + "topology_spread_constraints": "topologySpreadConstraints", + "ttl_seconds_after_finished": "ttlSecondsAfterFinished", + "unavailable_replicas": "unavailableReplicas", + "unique_items": "uniqueItems", + "update_revision": "updateRevision", + "update_strategy": "updateStrategy", + "updated_annotations": "updatedAnnotations", + "updated_number_scheduled": "updatedNumberScheduled", + "updated_replicas": "updatedReplicas", + "value_from": "valueFrom", + "version_priority": "versionPriority", + "volume_attributes": "volumeAttributes", + "volume_binding_mode": "volumeBindingMode", + "volume_claim_templates": "volumeClaimTemplates", + "volume_devices": "volumeDevices", + "volume_handle": "volumeHandle", + "volume_id": "volumeID", + "volume_lifecycle_modes": "volumeLifecycleModes", + "volume_mode": "volumeMode", + "volume_mounts": "volumeMounts", + "volume_name": "volumeName", + "volume_namespace": "volumeNamespace", + "volume_path": "volumePath", + "volumes_attached": "volumesAttached", + "volumes_in_use": "volumesInUse", + "vsphere_volume": "vsphereVolume", + "webhook_client_config": "webhookClientConfig", + "when_unsatisfiable": "whenUnsatisfiable", + "windows_options": "windowsOptions", + "working_dir": "workingDir", +} + +_CAMEL_TO_SNAKE_CASE_TABLE = { + "$ref": "_ref", + "$schema": "_schema", + "acceptedNames": "accepted_names", + "accessModes": "access_modes", + "acquireTime": "acquire_time", + "activeDeadlineSeconds": "active_deadline_seconds", + "additionalItems": "additional_items", + "additionalPrinterColumns": "additional_printer_columns", + "additionalProperties": "additional_properties", + "addressType": "address_type", + "admissionReviewVersions": "admission_review_versions", + "aggregationRule": "aggregation_rule", + "allOf": "all_of", + "allowPrivilegeEscalation": "allow_privilege_escalation", + "allowVolumeExpansion": "allow_volume_expansion", + "allowedCapabilities": "allowed_capabilities", + "allowedCSIDrivers": "allowed_csi_drivers", + "allowedFlexVolumes": "allowed_flex_volumes", + "allowedHostPaths": "allowed_host_paths", + "allowedProcMountTypes": "allowed_proc_mount_types", + "allowedRuntimeClassNames": "allowed_runtime_class_names", + "allowedTopologies": "allowed_topologies", + "allowedUnsafeSysctls": "allowed_unsafe_sysctls", + "anyOf": "any_of", + "apiGroup": "api_group", + "apiGroups": "api_groups", + "apiVersion": "api_version", + "apiVersions": "api_versions", + "appProtocol": "app_protocol", + "assuredConcurrencyShares": "assured_concurrency_shares", + "attachError": "attach_error", + "attachRequired": "attach_required", + "attachmentMetadata": "attachment_metadata", + "automountServiceAccountToken": "automount_service_account_token", + "availableReplicas": "available_replicas", + "averageUtilization": "average_utilization", + "averageValue": "average_value", + "awsElasticBlockStore": "aws_elastic_block_store", + "azureDisk": "azure_disk", + "azureFile": "azure_file", + "backoffLimit": "backoff_limit", + "binaryData": "binary_data", + "blockOwnerDeletion": "block_owner_deletion", + "bootID": "boot_id", + "boundObjectRef": "bound_object_ref", + "buildDate": "build_date", + "caBundle": "ca_bundle", + "cachingMode": "caching_mode", + "chapAuthDiscovery": "chap_auth_discovery", + "chapAuthSession": "chap_auth_session", + "claimName": "claim_name", + "claimRef": "claim_ref", + "clientCIDR": "client_cidr", + "clientConfig": "client_config", + "clientIP": "client_ip", + "clusterIP": "cluster_ip", + "clusterName": "cluster_name", + "clusterRoleSelectors": "cluster_role_selectors", + "clusterScope": "cluster_scope", + "collisionCount": "collision_count", + "completionTime": "completion_time", + "concurrencyPolicy": "concurrency_policy", + "conditionType": "condition_type", + "configMap": "config_map", + "configMapKeyRef": "config_map_key_ref", + "configMapRef": "config_map_ref", + "configSource": "config_source", + "containerID": "container_id", + "containerName": "container_name", + "containerPort": "container_port", + "containerRuntimeVersion": "container_runtime_version", + "containerStatuses": "container_statuses", + "continue": "continue_", + "controllerExpandSecretRef": "controller_expand_secret_ref", + "controllerPublishSecretRef": "controller_publish_secret_ref", + "conversionReviewVersions": "conversion_review_versions", + "creationTimestamp": "creation_timestamp", + "currentAverageUtilization": "current_average_utilization", + "currentAverageValue": "current_average_value", + "currentCPUUtilizationPercentage": "current_cpu_utilization_percentage", + "currentHealthy": "current_healthy", + "currentMetrics": "current_metrics", + "currentNumberScheduled": "current_number_scheduled", + "currentReplicas": "current_replicas", + "currentRevision": "current_revision", + "currentValue": "current_value", + "daemonEndpoints": "daemon_endpoints", + "dataSource": "data_source", + "datasetName": "dataset_name", + "datasetUUID": "dataset_uuid", + "defaultAddCapabilities": "default_add_capabilities", + "defaultAllowPrivilegeEscalation": "default_allow_privilege_escalation", + "defaultMode": "default_mode", + "defaultRequest": "default_request", + "defaultRuntimeClassName": "default_runtime_class_name", + "deleteOptions": "delete_options", + "deletionGracePeriodSeconds": "deletion_grace_period_seconds", + "deletionTimestamp": "deletion_timestamp", + "deprecatedCount": "deprecated_count", + "deprecatedFirstTimestamp": "deprecated_first_timestamp", + "deprecatedLastTimestamp": "deprecated_last_timestamp", + "deprecatedSource": "deprecated_source", + "describedObject": "described_object", + "desiredHealthy": "desired_healthy", + "desiredNumberScheduled": "desired_number_scheduled", + "desiredReplicas": "desired_replicas", + "detachError": "detach_error", + "devicePath": "device_path", + "diskName": "disk_name", + "diskURI": "disk_uri", + "disruptedPods": "disrupted_pods", + "disruptionsAllowed": "disruptions_allowed", + "distinguisherMethod": "distinguisher_method", + "dnsConfig": "dns_config", + "dnsPolicy": "dns_policy", + "downwardAPI": "downward_api", + "dryRun": "dry_run", + "emptyDir": "empty_dir", + "enableServiceLinks": "enable_service_links", + "endpointsNamespace": "endpoints_namespace", + "envFrom": "env_from", + "ephemeralContainerStatuses": "ephemeral_container_statuses", + "ephemeralContainers": "ephemeral_containers", + "evaluationError": "evaluation_error", + "eventTime": "event_time", + "except": "except_", + "exclusiveMaximum": "exclusive_maximum", + "exclusiveMinimum": "exclusive_minimum", + "exec": "exec_", + "exitCode": "exit_code", + "expectedPods": "expected_pods", + "expirationSeconds": "expiration_seconds", + "expirationTimestamp": "expiration_timestamp", + "externalDocs": "external_docs", + "externalIPs": "external_i_ps", + "externalID": "external_id", + "externalName": "external_name", + "externalTrafficPolicy": "external_traffic_policy", + "failedJobsHistoryLimit": "failed_jobs_history_limit", + "failurePolicy": "failure_policy", + "failureThreshold": "failure_threshold", + "fieldPath": "field_path", + "fieldRef": "field_ref", + "fieldsType": "fields_type", + "fieldsV1": "fields_v1", + "finishedAt": "finished_at", + "firstTimestamp": "first_timestamp", + "flexVolume": "flex_volume", + "forbiddenSysctls": "forbidden_sysctls", + "from": "from_", + "fsGroup": "fs_group", + "fsGroupChangePolicy": "fs_group_change_policy", + "fsType": "fs_type", + "fullyLabeledReplicas": "fully_labeled_replicas", + "gcePersistentDisk": "gce_persistent_disk", + "generateName": "generate_name", + "gitCommit": "git_commit", + "gitRepo": "git_repo", + "gitTreeState": "git_tree_state", + "gitVersion": "git_version", + "globalDefault": "global_default", + "gmsaCredentialSpec": "gmsa_credential_spec", + "gmsaCredentialSpecName": "gmsa_credential_spec_name", + "goVersion": "go_version", + "gracePeriodSeconds": "grace_period_seconds", + "groupPriorityMinimum": "group_priority_minimum", + "groupVersion": "group_version", + "handSize": "hand_size", + "healthCheckNodePort": "health_check_node_port", + "holderIdentity": "holder_identity", + "hostAliases": "host_aliases", + "hostIP": "host_ip", + "hostIPC": "host_ipc", + "hostNetwork": "host_network", + "hostPath": "host_path", + "hostPID": "host_pid", + "hostPort": "host_port", + "hostPorts": "host_ports", + "httpGet": "http_get", + "httpHeaders": "http_headers", + "imageID": "image_id", + "imagePullPolicy": "image_pull_policy", + "imagePullSecrets": "image_pull_secrets", + "ingressClassName": "ingress_class_name", + "initContainerStatuses": "init_container_statuses", + "initContainers": "init_containers", + "initialDelaySeconds": "initial_delay_seconds", + "initiatorName": "initiator_name", + "inlineVolumeSpec": "inline_volume_spec", + "insecureSkipTLSVerify": "insecure_skip_tls_verify", + "involvedObject": "involved_object", + "ipBlock": "ip_block", + "ipFamily": "ip_family", + "iscsiInterface": "iscsi_interface", + "jobTemplate": "job_template", + "JSONPath": "json_path", + "kernelVersion": "kernel_version", + "kubeProxyVersion": "kube_proxy_version", + "kubeletConfigKey": "kubelet_config_key", + "kubeletEndpoint": "kubelet_endpoint", + "kubeletVersion": "kubelet_version", + "labelSelector": "label_selector", + "labelSelectorPath": "label_selector_path", + "lastHeartbeatTime": "last_heartbeat_time", + "lastKnownGood": "last_known_good", + "lastObservedTime": "last_observed_time", + "lastProbeTime": "last_probe_time", + "lastScaleTime": "last_scale_time", + "lastScheduleTime": "last_schedule_time", + "lastState": "last_state", + "lastTimestamp": "last_timestamp", + "lastTransitionTime": "last_transition_time", + "lastUpdateTime": "last_update_time", + "leaseDurationSeconds": "lease_duration_seconds", + "leaseTransitions": "lease_transitions", + "limitResponse": "limit_response", + "listKind": "list_kind", + "livenessProbe": "liveness_probe", + "loadBalancer": "load_balancer", + "loadBalancerIP": "load_balancer_ip", + "loadBalancerSourceRanges": "load_balancer_source_ranges", + "machineID": "machine_id", + "managedFields": "managed_fields", + "manualSelector": "manual_selector", + "matchExpressions": "match_expressions", + "matchFields": "match_fields", + "matchLabelExpressions": "match_label_expressions", + "matchLabels": "match_labels", + "matchPolicy": "match_policy", + "matchingPrecedence": "matching_precedence", + "maxItems": "max_items", + "maxLength": "max_length", + "maxLimitRequestRatio": "max_limit_request_ratio", + "maxProperties": "max_properties", + "maxReplicas": "max_replicas", + "maxSkew": "max_skew", + "maxSurge": "max_surge", + "maxUnavailable": "max_unavailable", + "metricName": "metric_name", + "metricSelector": "metric_selector", + "minAvailable": "min_available", + "minItems": "min_items", + "minLength": "min_length", + "minProperties": "min_properties", + "minReadySeconds": "min_ready_seconds", + "minReplicas": "min_replicas", + "mountOptions": "mount_options", + "mountPath": "mount_path", + "mountPropagation": "mount_propagation", + "multipleOf": "multiple_of", + "namespaceSelector": "namespace_selector", + "nodeAffinity": "node_affinity", + "nodeID": "node_id", + "nodeInfo": "node_info", + "nodeName": "node_name", + "nodePort": "node_port", + "nodePublishSecretRef": "node_publish_secret_ref", + "nodeSelector": "node_selector", + "nodeSelectorTerms": "node_selector_terms", + "nodeStageSecretRef": "node_stage_secret_ref", + "nominatedNodeName": "nominated_node_name", + "nonResourceAttributes": "non_resource_attributes", + "nonResourceRules": "non_resource_rules", + "nonResourceURLs": "non_resource_ur_ls", + "not": "not_", + "notReadyAddresses": "not_ready_addresses", + "numberAvailable": "number_available", + "numberMisscheduled": "number_misscheduled", + "numberReady": "number_ready", + "numberUnavailable": "number_unavailable", + "objectSelector": "object_selector", + "observedGeneration": "observed_generation", + "oneOf": "one_of", + "openAPIV3Schema": "open_apiv3_schema", + "operatingSystem": "operating_system", + "orphanDependents": "orphan_dependents", + "osImage": "os_image", + "ownerReferences": "owner_references", + "pathPrefix": "path_prefix", + "pathType": "path_type", + "patternProperties": "pattern_properties", + "pdID": "pd_id", + "pdName": "pd_name", + "periodSeconds": "period_seconds", + "persistentVolumeClaim": "persistent_volume_claim", + "persistentVolumeName": "persistent_volume_name", + "persistentVolumeReclaimPolicy": "persistent_volume_reclaim_policy", + "photonPersistentDisk": "photon_persistent_disk", + "podAffinity": "pod_affinity", + "podAffinityTerm": "pod_affinity_term", + "podAntiAffinity": "pod_anti_affinity", + "podCIDRs": "pod_cid_rs", + "podCIDR": "pod_cidr", + "podFixed": "pod_fixed", + "podIPs": "pod_i_ps", + "podInfoOnMount": "pod_info_on_mount", + "podIP": "pod_ip", + "podManagementPolicy": "pod_management_policy", + "podSelector": "pod_selector", + "policyTypes": "policy_types", + "portworxVolume": "portworx_volume", + "postStart": "post_start", + "preStop": "pre_stop", + "preemptionPolicy": "preemption_policy", + "preferredDuringSchedulingIgnoredDuringExecution": "preferred_during_scheduling_ignored_during_execution", + "preferredVersion": "preferred_version", + "preserveUnknownFields": "preserve_unknown_fields", + "priorityClassName": "priority_class_name", + "priorityLevelConfiguration": "priority_level_configuration", + "procMount": "proc_mount", + "progressDeadlineSeconds": "progress_deadline_seconds", + "propagationPolicy": "propagation_policy", + "protectionDomain": "protection_domain", + "providerID": "provider_id", + "publishNotReadyAddresses": "publish_not_ready_addresses", + "qosClass": "qos_class", + "queueLengthLimit": "queue_length_limit", + "readOnly": "read_only", + "readOnlyRootFilesystem": "read_only_root_filesystem", + "readinessGates": "readiness_gates", + "readinessProbe": "readiness_probe", + "readyReplicas": "ready_replicas", + "reclaimPolicy": "reclaim_policy", + "reinvocationPolicy": "reinvocation_policy", + "remainingItemCount": "remaining_item_count", + "renewTime": "renew_time", + "reportingComponent": "reporting_component", + "reportingController": "reporting_controller", + "reportingInstance": "reporting_instance", + "requiredDropCapabilities": "required_drop_capabilities", + "requiredDuringSchedulingIgnoredDuringExecution": "required_during_scheduling_ignored_during_execution", + "resourceAttributes": "resource_attributes", + "resourceFieldRef": "resource_field_ref", + "resourceNames": "resource_names", + "resourceRules": "resource_rules", + "resourceVersion": "resource_version", + "restartCount": "restart_count", + "restartPolicy": "restart_policy", + "retryAfterSeconds": "retry_after_seconds", + "revisionHistoryLimit": "revision_history_limit", + "roleRef": "role_ref", + "rollbackTo": "rollback_to", + "rollingUpdate": "rolling_update", + "runAsGroup": "run_as_group", + "runAsNonRoot": "run_as_non_root", + "runAsUser": "run_as_user", + "runAsUserName": "run_as_user_name", + "runtimeClass": "runtime_class", + "runtimeClassName": "runtime_class_name", + "runtimeHandler": "runtime_handler", + "scaleDown": "scale_down", + "scaleIO": "scale_io", + "scaleTargetRef": "scale_target_ref", + "scaleUp": "scale_up", + "schedulerName": "scheduler_name", + "scopeName": "scope_name", + "scopeSelector": "scope_selector", + "seLinux": "se_linux", + "seLinuxOptions": "se_linux_options", + "secretFile": "secret_file", + "secretKeyRef": "secret_key_ref", + "secretName": "secret_name", + "secretNamespace": "secret_namespace", + "secretRef": "secret_ref", + "securityContext": "security_context", + "selectPolicy": "select_policy", + "selfLink": "self_link", + "serverAddress": "server_address", + "serverAddressByClientCIDRs": "server_address_by_client_cid_rs", + "serviceAccount": "service_account", + "serviceAccountName": "service_account_name", + "serviceAccountToken": "service_account_token", + "serviceName": "service_name", + "servicePort": "service_port", + "sessionAffinity": "session_affinity", + "sessionAffinityConfig": "session_affinity_config", + "shareName": "share_name", + "shareProcessNamespace": "share_process_namespace", + "shortNames": "short_names", + "sideEffects": "side_effects", + "signerName": "signer_name", + "singularName": "singular_name", + "sizeBytes": "size_bytes", + "sizeLimit": "size_limit", + "specReplicasPath": "spec_replicas_path", + "sslEnabled": "ssl_enabled", + "stabilizationWindowSeconds": "stabilization_window_seconds", + "startTime": "start_time", + "startedAt": "started_at", + "startingDeadlineSeconds": "starting_deadline_seconds", + "startupProbe": "startup_probe", + "statusReplicasPath": "status_replicas_path", + "stdinOnce": "stdin_once", + "storageClassName": "storage_class_name", + "storageMode": "storage_mode", + "storagePolicyID": "storage_policy_id", + "storagePolicyName": "storage_policy_name", + "storagePool": "storage_pool", + "storageVersionHash": "storage_version_hash", + "storedVersions": "stored_versions", + "stringData": "string_data", + "subPath": "sub_path", + "subPathExpr": "sub_path_expr", + "successThreshold": "success_threshold", + "successfulJobsHistoryLimit": "successful_jobs_history_limit", + "supplementalGroups": "supplemental_groups", + "systemUUID": "system_uuid", + "targetAverageUtilization": "target_average_utilization", + "targetAverageValue": "target_average_value", + "targetContainerName": "target_container_name", + "targetCPUUtilizationPercentage": "target_cpu_utilization_percentage", + "targetPort": "target_port", + "targetPortal": "target_portal", + "targetRef": "target_ref", + "targetSelector": "target_selector", + "targetValue": "target_value", + "targetWWNs": "target_ww_ns", + "tcpSocket": "tcp_socket", + "templateGeneration": "template_generation", + "terminationGracePeriodSeconds": "termination_grace_period_seconds", + "terminationMessagePath": "termination_message_path", + "terminationMessagePolicy": "termination_message_policy", + "timeAdded": "time_added", + "timeoutSeconds": "timeout_seconds", + "tolerationSeconds": "toleration_seconds", + "topologyKey": "topology_key", + "topologyKeys": "topology_keys", + "topologySpreadConstraints": "topology_spread_constraints", + "ttlSecondsAfterFinished": "ttl_seconds_after_finished", + "unavailableReplicas": "unavailable_replicas", + "uniqueItems": "unique_items", + "updateRevision": "update_revision", + "updateStrategy": "update_strategy", + "updatedAnnotations": "updated_annotations", + "updatedNumberScheduled": "updated_number_scheduled", + "updatedReplicas": "updated_replicas", + "valueFrom": "value_from", + "versionPriority": "version_priority", + "volumeAttributes": "volume_attributes", + "volumeBindingMode": "volume_binding_mode", + "volumeClaimTemplates": "volume_claim_templates", + "volumeDevices": "volume_devices", + "volumeHandle": "volume_handle", + "volumeID": "volume_id", + "volumeLifecycleModes": "volume_lifecycle_modes", + "volumeMode": "volume_mode", + "volumeMounts": "volume_mounts", + "volumeName": "volume_name", + "volumeNamespace": "volume_namespace", + "volumePath": "volume_path", + "volumesAttached": "volumes_attached", + "volumesInUse": "volumes_in_use", + "vsphereVolume": "vsphere_volume", + "webhookClientConfig": "webhook_client_config", + "whenUnsatisfiable": "when_unsatisfiable", + "windowsOptions": "windows_options", + "workingDir": "working_dir", +} diff --git a/sdk/python/pulumi_kubernetes/utilities.py b/sdk/python/pulumi_kubernetes/utilities.py new file mode 100644 index 0000000000..9fe6103f03 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/utilities.py @@ -0,0 +1,83 @@ +# coding=utf-8 +# *** WARNING: this file was generated by pulumigen. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + + +import os +import pkg_resources + +from semver import VersionInfo as SemverVersion +from parver import Version as PEP440Version + + +def get_env(*args): + for v in args: + value = os.getenv(v) + if value is not None: + return value + return None + + +def get_env_bool(*args): + str = get_env(*args) + if str is not None: + # NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what + # Terraform uses internally when parsing boolean values. + if str in ["1", "t", "T", "true", "TRUE", "True"]: + return True + if str in ["0", "f", "F", "false", "FALSE", "False"]: + return False + return None + + +def get_env_int(*args): + str = get_env(*args) + if str is not None: + try: + return int(str) + except: + return None + return None + + +def get_env_float(*args): + str = get_env(*args) + if str is not None: + try: + return float(str) + except: + return None + return None + + +def get_version(): + # __name__ is set to the fully-qualified name of the current module, In our case, it will be + # .utilities. is the module we want to query the version for. + root_package, *rest = __name__.split('.') + + # pkg_resources uses setuptools to inspect the set of installed packages. We use it here to ask + # for the currently installed version of the root package (i.e. us) and get its version. + + # Unfortunately, PEP440 and semver differ slightly in incompatible ways. The Pulumi engine expects + # to receive a valid semver string when receiving requests from the language host, so it's our + # responsibility as the library to convert our own PEP440 version into a valid semver string. + + pep440_version_string = pkg_resources.require(root_package)[0].version + pep440_version = PEP440Version.parse(pep440_version_string) + (major, minor, patch) = pep440_version.release + prerelease = None + if pep440_version.pre_tag == 'a': + prerelease = f"alpha.{pep440_version.pre}" + elif pep440_version.pre_tag == 'b': + prerelease = f"beta.{pep440_version.pre}" + elif pep440_version.pre_tag == 'rc': + prerelease = f"rc.{pep440_version.pre}" + elif pep440_version.dev is not None: + prerelease = f"dev.{pep440_version.dev}" + + # The only significant difference between PEP440 and semver as it pertains to us is that PEP440 has explicit support + # for dev builds, while semver encodes them as "prerelease" versions. In order to bridge between the two, we convert + # our dev build version into a prerelease tag. This matches what all of our other packages do when constructing + # their own semver string. + semver_version = SemverVersion(major=major, minor=minor, patch=patch, prerelease=prerelease) + return str(semver_version) diff --git a/sdk/python/pulumi_kubernetes/yaml.py b/sdk/python/pulumi_kubernetes/yaml.py new file mode 100644 index 0000000000..23d289b759 --- /dev/null +++ b/sdk/python/pulumi_kubernetes/yaml.py @@ -0,0 +1,1341 @@ +# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import json +from copy import copy +from inspect import getargspec +from typing import Callable, Dict, List, Optional + +import pulumi.runtime +import requests +from pulumi_kubernetes.apiextensions import CustomResource +from . import tables +from .utilities import get_version + + +class ConfigFile(pulumi.ComponentResource): + """ + ConfigFile creates a set of Kubernetes resources from a Kubernetes YAML file. + """ + + resources: pulumi.Output[dict] + """ + Kubernetes resources contained in this ConfigFile. + """ + + def __init__(self, name, file_id, opts=None, transformations=None, resource_prefix=None): + """ + :param str name: A name for a resource. + :param str file_id: Path or a URL that uniquely identifies a file. + :param Optional[pulumi.ResourceOptions] opts: A bag of optional settings that control a resource's behavior. + :param Optional[List[Tuple[Callable, Optional[pulumi.ResourceOptions]]]] transformations: A set of + transformations to apply to Kubernetes resource definitions before registering with engine. + :param Optional[str] resource_prefix: An optional prefix for the auto-generated resource names. + Example: A resource created with resource_prefix="foo" would produce a resource named "foo-resourceName". + """ + if not name: + raise TypeError('Missing resource name argument (for URN creation)') + if not isinstance(name, str): + raise TypeError('Expected resource name to be a string') + if opts and not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + + __props__ = dict() + + if resource_prefix: + name = f"{resource_prefix}-{name}" + super(ConfigFile, self).__init__( + "kubernetes:yaml:ConfigFile", + name, + __props__, + opts) + + if file_id.startswith('http://') or file_id.startswith('https://'): + text = _read_url(file_id) + else: + text = _read_file(file_id) + + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(parent=self)) + + # Rather than using the default provider for the following invoke call, use the version specified + # in package.json. + invoke_opts = pulumi.InvokeOptions(version=get_version()) + + __ret__ = pulumi.runtime.invoke('kubernetes:yaml:decode', {'text': text}, invoke_opts).value['result'] + + # Note: Unlike NodeJS, Python requires that we "pull" on our futures in order to get them scheduled for + # execution. In order to do this, we leverage the engine's RegisterResourceOutputs to wait for the + # resolution of all resources that this YAML document created. + self.resources = _parse_yaml_document(__ret__, opts, transformations, resource_prefix) + self.register_outputs({"resources": self.resources}) + + def translate_output_property(self, prop: str) -> str: + return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop: str) -> str: + return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop + + def get_resource(self, group_version_kind, name, namespace=None) -> pulumi.Output[pulumi.CustomResource]: + """ + get_resource returns a resource defined by a built-in Kubernetes group/version/kind and + name. For example: `get_resource("apps/v1/Deployment", "nginx")` + + :param str group_version_kind: Group/Version/Kind of the resource, e.g., `apps/v1/Deployment` + :param str name: Name of the resource to retrieve + :param str namespace: Optional namespace of the resource to retrieve + """ + + # `id` will either be `${name}` or `${namespace}/${name}`. + id = pulumi.Output.from_input(name) + if namespace is not None: + id = pulumi.Output.concat(namespace, '/', name) + + resource_id = id.apply(lambda x: f'{group_version_kind}:{x}') + return resource_id.apply(lambda x: self.resources[x]) + + +def _read_url(url: str) -> str: + response = requests.get(url) + response.raise_for_status() + + return response.text + + +def _read_file(path: str) -> str: + with open(path, 'r') as file: + data = file.read() + + return data + + +def _build_resources_dict(objs: List[pulumi.Output]) -> Dict[pulumi.Output, pulumi.Output]: + return {key: value for key, value in objs} + + +def _parse_yaml_document( + objects, opts: Optional[pulumi.ResourceOptions] = None, + transformations: Optional[List[Callable]] = None, + resource_prefix: Optional[str] = None +) -> pulumi.Output: + objs = [] + for obj in objects: + file_objects = _parse_yaml_object(obj, opts, transformations, resource_prefix) + for file_object in file_objects: + objs.append(file_object) + + return pulumi.Output.all(*objs).apply(_build_resources_dict) + + +def _parse_yaml_object( + obj, opts: Optional[pulumi.ResourceOptions] = None, + transformations: Optional[List[Callable]] = None, + resource_prefix: Optional[str] = None +) -> [pulumi.Output]: + """ + _parse_yaml_object parses a YAML manifest object, and creates the specified resources. + """ + + if not obj: + return [] + + # Create a copy of opts to pass into potentially mutating transforms that will be applied to this resource. + if opts is not None: + opts = copy(opts) + else: + opts = {} + + # Allow users to change API objects before any validation. + if transformations is not None: + for t in transformations: + if len(getargspec(t)[0]) == 2: + t(obj, opts) + else: + t(obj) + + if "kind" not in obj or "apiVersion" not in obj: + raise Exception("Kubernetes resources require a kind and apiVersion: {}".format(json.dumps(obj))) + + api_version = obj["apiVersion"] + kind = obj["kind"] + + # Don't pass these items as kwargs to the resource classes. + del obj['apiVersion'] + del obj['kind'] + + if kind.endswith("List"): + objs = [] + if "items" in obj: + for item in obj["items"]: + objs += _parse_yaml_object(item, opts, transformations, resource_prefix) + return objs + + if "metadata" not in obj or "name" not in obj["metadata"]: + raise Exception("YAML object does not have a .metadata.name: {}/{} {}".format( + api_version, kind, json.dumps(obj))) + + # Convert obj keys to Python casing + for key in list(obj.keys()): + new_key = tables._CAMEL_TO_SNAKE_CASE_TABLE.get(key) or key + if new_key != key: + obj[new_key] = obj.pop(key) + + metadata = obj["metadata"] + spec = obj.get("spec") + identifier: pulumi.Output = pulumi.Output.from_input(metadata["name"]) + if "namespace" in metadata: + identifier = pulumi.Output.from_input(metadata).apply( + lambda metadata: f"{metadata['namespace']}/{metadata['name']}") + if resource_prefix: + identifier = pulumi.Output.from_input(identifier).apply( + lambda identifier: f"{resource_prefix}-{identifier}") + + gvk = f"{api_version}/{kind}" + if gvk == "admissionregistration.k8s.io/v1/MutatingWebhookConfiguration": + # Import locally to avoid name collisions. + from pulumi_kubernetes.admissionregistration.v1 import MutatingWebhookConfiguration + return [identifier.apply( + lambda x: (f"admissionregistration.k8s.io/v1/MutatingWebhookConfiguration:{x}", + MutatingWebhookConfiguration(f"{x}", opts, **obj)))] + if gvk == "admissionregistration.k8s.io/v1/MutatingWebhookConfigurationList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.admissionregistration.v1 import MutatingWebhookConfigurationList + return [identifier.apply( + lambda x: (f"admissionregistration.k8s.io/v1/MutatingWebhookConfigurationList:{x}", + MutatingWebhookConfigurationList(f"{x}", opts, **obj)))] + if gvk == "admissionregistration.k8s.io/v1/ValidatingWebhookConfiguration": + # Import locally to avoid name collisions. + from pulumi_kubernetes.admissionregistration.v1 import ValidatingWebhookConfiguration + return [identifier.apply( + lambda x: (f"admissionregistration.k8s.io/v1/ValidatingWebhookConfiguration:{x}", + ValidatingWebhookConfiguration(f"{x}", opts, **obj)))] + if gvk == "admissionregistration.k8s.io/v1/ValidatingWebhookConfigurationList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.admissionregistration.v1 import ValidatingWebhookConfigurationList + return [identifier.apply( + lambda x: (f"admissionregistration.k8s.io/v1/ValidatingWebhookConfigurationList:{x}", + ValidatingWebhookConfigurationList(f"{x}", opts, **obj)))] + if gvk == "admissionregistration.k8s.io/v1beta1/MutatingWebhookConfiguration": + # Import locally to avoid name collisions. + from pulumi_kubernetes.admissionregistration.v1beta1 import MutatingWebhookConfiguration + return [identifier.apply( + lambda x: (f"admissionregistration.k8s.io/v1beta1/MutatingWebhookConfiguration:{x}", + MutatingWebhookConfiguration(f"{x}", opts, **obj)))] + if gvk == "admissionregistration.k8s.io/v1beta1/MutatingWebhookConfigurationList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.admissionregistration.v1beta1 import MutatingWebhookConfigurationList + return [identifier.apply( + lambda x: (f"admissionregistration.k8s.io/v1beta1/MutatingWebhookConfigurationList:{x}", + MutatingWebhookConfigurationList(f"{x}", opts, **obj)))] + if gvk == "admissionregistration.k8s.io/v1beta1/ValidatingWebhookConfiguration": + # Import locally to avoid name collisions. + from pulumi_kubernetes.admissionregistration.v1beta1 import ValidatingWebhookConfiguration + return [identifier.apply( + lambda x: (f"admissionregistration.k8s.io/v1beta1/ValidatingWebhookConfiguration:{x}", + ValidatingWebhookConfiguration(f"{x}", opts, **obj)))] + if gvk == "admissionregistration.k8s.io/v1beta1/ValidatingWebhookConfigurationList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.admissionregistration.v1beta1 import ValidatingWebhookConfigurationList + return [identifier.apply( + lambda x: (f"admissionregistration.k8s.io/v1beta1/ValidatingWebhookConfigurationList:{x}", + ValidatingWebhookConfigurationList(f"{x}", opts, **obj)))] + if gvk == "apiextensions.k8s.io/v1/CustomResourceDefinition": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apiextensions.v1 import CustomResourceDefinition + return [identifier.apply( + lambda x: (f"apiextensions.k8s.io/v1/CustomResourceDefinition:{x}", + CustomResourceDefinition(f"{x}", opts, **obj)))] + if gvk == "apiextensions.k8s.io/v1/CustomResourceDefinitionList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apiextensions.v1 import CustomResourceDefinitionList + return [identifier.apply( + lambda x: (f"apiextensions.k8s.io/v1/CustomResourceDefinitionList:{x}", + CustomResourceDefinitionList(f"{x}", opts, **obj)))] + if gvk == "apiextensions.k8s.io/v1beta1/CustomResourceDefinition": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apiextensions.v1beta1 import CustomResourceDefinition + return [identifier.apply( + lambda x: (f"apiextensions.k8s.io/v1beta1/CustomResourceDefinition:{x}", + CustomResourceDefinition(f"{x}", opts, **obj)))] + if gvk == "apiextensions.k8s.io/v1beta1/CustomResourceDefinitionList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apiextensions.v1beta1 import CustomResourceDefinitionList + return [identifier.apply( + lambda x: (f"apiextensions.k8s.io/v1beta1/CustomResourceDefinitionList:{x}", + CustomResourceDefinitionList(f"{x}", opts, **obj)))] + if gvk == "apiregistration.k8s.io/v1/APIService": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apiregistration.v1 import APIService + return [identifier.apply( + lambda x: (f"apiregistration.k8s.io/v1/APIService:{x}", + APIService(f"{x}", opts, **obj)))] + if gvk == "apiregistration.k8s.io/v1/APIServiceList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apiregistration.v1 import APIServiceList + return [identifier.apply( + lambda x: (f"apiregistration.k8s.io/v1/APIServiceList:{x}", + APIServiceList(f"{x}", opts, **obj)))] + if gvk == "apiregistration.k8s.io/v1beta1/APIService": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apiregistration.v1beta1 import APIService + return [identifier.apply( + lambda x: (f"apiregistration.k8s.io/v1beta1/APIService:{x}", + APIService(f"{x}", opts, **obj)))] + if gvk == "apiregistration.k8s.io/v1beta1/APIServiceList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apiregistration.v1beta1 import APIServiceList + return [identifier.apply( + lambda x: (f"apiregistration.k8s.io/v1beta1/APIServiceList:{x}", + APIServiceList(f"{x}", opts, **obj)))] + if gvk == "apps/v1/ControllerRevision": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1 import ControllerRevision + return [identifier.apply( + lambda x: (f"apps/v1/ControllerRevision:{x}", + ControllerRevision(f"{x}", opts, **obj)))] + if gvk == "apps/v1/ControllerRevisionList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1 import ControllerRevisionList + return [identifier.apply( + lambda x: (f"apps/v1/ControllerRevisionList:{x}", + ControllerRevisionList(f"{x}", opts, **obj)))] + if gvk == "apps/v1/DaemonSet": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1 import DaemonSet + return [identifier.apply( + lambda x: (f"apps/v1/DaemonSet:{x}", + DaemonSet(f"{x}", opts, **obj)))] + if gvk == "apps/v1/DaemonSetList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1 import DaemonSetList + return [identifier.apply( + lambda x: (f"apps/v1/DaemonSetList:{x}", + DaemonSetList(f"{x}", opts, **obj)))] + if gvk == "apps/v1/Deployment": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1 import Deployment + return [identifier.apply( + lambda x: (f"apps/v1/Deployment:{x}", + Deployment(f"{x}", opts, **obj)))] + if gvk == "apps/v1/DeploymentList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1 import DeploymentList + return [identifier.apply( + lambda x: (f"apps/v1/DeploymentList:{x}", + DeploymentList(f"{x}", opts, **obj)))] + if gvk == "apps/v1/ReplicaSet": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1 import ReplicaSet + return [identifier.apply( + lambda x: (f"apps/v1/ReplicaSet:{x}", + ReplicaSet(f"{x}", opts, **obj)))] + if gvk == "apps/v1/ReplicaSetList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1 import ReplicaSetList + return [identifier.apply( + lambda x: (f"apps/v1/ReplicaSetList:{x}", + ReplicaSetList(f"{x}", opts, **obj)))] + if gvk == "apps/v1/StatefulSet": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1 import StatefulSet + return [identifier.apply( + lambda x: (f"apps/v1/StatefulSet:{x}", + StatefulSet(f"{x}", opts, **obj)))] + if gvk == "apps/v1/StatefulSetList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1 import StatefulSetList + return [identifier.apply( + lambda x: (f"apps/v1/StatefulSetList:{x}", + StatefulSetList(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta1/ControllerRevision": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta1 import ControllerRevision + return [identifier.apply( + lambda x: (f"apps/v1beta1/ControllerRevision:{x}", + ControllerRevision(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta1/ControllerRevisionList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta1 import ControllerRevisionList + return [identifier.apply( + lambda x: (f"apps/v1beta1/ControllerRevisionList:{x}", + ControllerRevisionList(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta1/Deployment": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta1 import Deployment + return [identifier.apply( + lambda x: (f"apps/v1beta1/Deployment:{x}", + Deployment(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta1/DeploymentList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta1 import DeploymentList + return [identifier.apply( + lambda x: (f"apps/v1beta1/DeploymentList:{x}", + DeploymentList(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta1/StatefulSet": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta1 import StatefulSet + return [identifier.apply( + lambda x: (f"apps/v1beta1/StatefulSet:{x}", + StatefulSet(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta1/StatefulSetList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta1 import StatefulSetList + return [identifier.apply( + lambda x: (f"apps/v1beta1/StatefulSetList:{x}", + StatefulSetList(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta2/ControllerRevision": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta2 import ControllerRevision + return [identifier.apply( + lambda x: (f"apps/v1beta2/ControllerRevision:{x}", + ControllerRevision(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta2/ControllerRevisionList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta2 import ControllerRevisionList + return [identifier.apply( + lambda x: (f"apps/v1beta2/ControllerRevisionList:{x}", + ControllerRevisionList(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta2/DaemonSet": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta2 import DaemonSet + return [identifier.apply( + lambda x: (f"apps/v1beta2/DaemonSet:{x}", + DaemonSet(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta2/DaemonSetList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta2 import DaemonSetList + return [identifier.apply( + lambda x: (f"apps/v1beta2/DaemonSetList:{x}", + DaemonSetList(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta2/Deployment": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta2 import Deployment + return [identifier.apply( + lambda x: (f"apps/v1beta2/Deployment:{x}", + Deployment(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta2/DeploymentList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta2 import DeploymentList + return [identifier.apply( + lambda x: (f"apps/v1beta2/DeploymentList:{x}", + DeploymentList(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta2/ReplicaSet": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta2 import ReplicaSet + return [identifier.apply( + lambda x: (f"apps/v1beta2/ReplicaSet:{x}", + ReplicaSet(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta2/ReplicaSetList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta2 import ReplicaSetList + return [identifier.apply( + lambda x: (f"apps/v1beta2/ReplicaSetList:{x}", + ReplicaSetList(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta2/StatefulSet": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta2 import StatefulSet + return [identifier.apply( + lambda x: (f"apps/v1beta2/StatefulSet:{x}", + StatefulSet(f"{x}", opts, **obj)))] + if gvk == "apps/v1beta2/StatefulSetList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.apps.v1beta2 import StatefulSetList + return [identifier.apply( + lambda x: (f"apps/v1beta2/StatefulSetList:{x}", + StatefulSetList(f"{x}", opts, **obj)))] + if gvk == "auditregistration.k8s.io/v1alpha1/AuditSink": + # Import locally to avoid name collisions. + from pulumi_kubernetes.auditregistration.v1alpha1 import AuditSink + return [identifier.apply( + lambda x: (f"auditregistration.k8s.io/v1alpha1/AuditSink:{x}", + AuditSink(f"{x}", opts, **obj)))] + if gvk == "auditregistration.k8s.io/v1alpha1/AuditSinkList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.auditregistration.v1alpha1 import AuditSinkList + return [identifier.apply( + lambda x: (f"auditregistration.k8s.io/v1alpha1/AuditSinkList:{x}", + AuditSinkList(f"{x}", opts, **obj)))] + if gvk == "authentication.k8s.io/v1/TokenRequest": + # Import locally to avoid name collisions. + from pulumi_kubernetes.authentication.v1 import TokenRequest + return [identifier.apply( + lambda x: (f"authentication.k8s.io/v1/TokenRequest:{x}", + TokenRequest(f"{x}", opts, **obj)))] + if gvk == "authentication.k8s.io/v1/TokenReview": + # Import locally to avoid name collisions. + from pulumi_kubernetes.authentication.v1 import TokenReview + return [identifier.apply( + lambda x: (f"authentication.k8s.io/v1/TokenReview:{x}", + TokenReview(f"{x}", opts, **obj)))] + if gvk == "authentication.k8s.io/v1beta1/TokenReview": + # Import locally to avoid name collisions. + from pulumi_kubernetes.authentication.v1beta1 import TokenReview + return [identifier.apply( + lambda x: (f"authentication.k8s.io/v1beta1/TokenReview:{x}", + TokenReview(f"{x}", opts, **obj)))] + if gvk == "authorization.k8s.io/v1/LocalSubjectAccessReview": + # Import locally to avoid name collisions. + from pulumi_kubernetes.authorization.v1 import LocalSubjectAccessReview + return [identifier.apply( + lambda x: (f"authorization.k8s.io/v1/LocalSubjectAccessReview:{x}", + LocalSubjectAccessReview(f"{x}", opts, **obj)))] + if gvk == "authorization.k8s.io/v1/SelfSubjectAccessReview": + # Import locally to avoid name collisions. + from pulumi_kubernetes.authorization.v1 import SelfSubjectAccessReview + return [identifier.apply( + lambda x: (f"authorization.k8s.io/v1/SelfSubjectAccessReview:{x}", + SelfSubjectAccessReview(f"{x}", opts, **obj)))] + if gvk == "authorization.k8s.io/v1/SelfSubjectRulesReview": + # Import locally to avoid name collisions. + from pulumi_kubernetes.authorization.v1 import SelfSubjectRulesReview + return [identifier.apply( + lambda x: (f"authorization.k8s.io/v1/SelfSubjectRulesReview:{x}", + SelfSubjectRulesReview(f"{x}", opts, **obj)))] + if gvk == "authorization.k8s.io/v1/SubjectAccessReview": + # Import locally to avoid name collisions. + from pulumi_kubernetes.authorization.v1 import SubjectAccessReview + return [identifier.apply( + lambda x: (f"authorization.k8s.io/v1/SubjectAccessReview:{x}", + SubjectAccessReview(f"{x}", opts, **obj)))] + if gvk == "authorization.k8s.io/v1beta1/LocalSubjectAccessReview": + # Import locally to avoid name collisions. + from pulumi_kubernetes.authorization.v1beta1 import LocalSubjectAccessReview + return [identifier.apply( + lambda x: (f"authorization.k8s.io/v1beta1/LocalSubjectAccessReview:{x}", + LocalSubjectAccessReview(f"{x}", opts, **obj)))] + if gvk == "authorization.k8s.io/v1beta1/SelfSubjectAccessReview": + # Import locally to avoid name collisions. + from pulumi_kubernetes.authorization.v1beta1 import SelfSubjectAccessReview + return [identifier.apply( + lambda x: (f"authorization.k8s.io/v1beta1/SelfSubjectAccessReview:{x}", + SelfSubjectAccessReview(f"{x}", opts, **obj)))] + if gvk == "authorization.k8s.io/v1beta1/SelfSubjectRulesReview": + # Import locally to avoid name collisions. + from pulumi_kubernetes.authorization.v1beta1 import SelfSubjectRulesReview + return [identifier.apply( + lambda x: (f"authorization.k8s.io/v1beta1/SelfSubjectRulesReview:{x}", + SelfSubjectRulesReview(f"{x}", opts, **obj)))] + if gvk == "authorization.k8s.io/v1beta1/SubjectAccessReview": + # Import locally to avoid name collisions. + from pulumi_kubernetes.authorization.v1beta1 import SubjectAccessReview + return [identifier.apply( + lambda x: (f"authorization.k8s.io/v1beta1/SubjectAccessReview:{x}", + SubjectAccessReview(f"{x}", opts, **obj)))] + if gvk == "autoscaling/v1/HorizontalPodAutoscaler": + # Import locally to avoid name collisions. + from pulumi_kubernetes.autoscaling.v1 import HorizontalPodAutoscaler + return [identifier.apply( + lambda x: (f"autoscaling/v1/HorizontalPodAutoscaler:{x}", + HorizontalPodAutoscaler(f"{x}", opts, **obj)))] + if gvk == "autoscaling/v1/HorizontalPodAutoscalerList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.autoscaling.v1 import HorizontalPodAutoscalerList + return [identifier.apply( + lambda x: (f"autoscaling/v1/HorizontalPodAutoscalerList:{x}", + HorizontalPodAutoscalerList(f"{x}", opts, **obj)))] + if gvk == "autoscaling/v2beta1/HorizontalPodAutoscaler": + # Import locally to avoid name collisions. + from pulumi_kubernetes.autoscaling.v2beta1 import HorizontalPodAutoscaler + return [identifier.apply( + lambda x: (f"autoscaling/v2beta1/HorizontalPodAutoscaler:{x}", + HorizontalPodAutoscaler(f"{x}", opts, **obj)))] + if gvk == "autoscaling/v2beta1/HorizontalPodAutoscalerList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.autoscaling.v2beta1 import HorizontalPodAutoscalerList + return [identifier.apply( + lambda x: (f"autoscaling/v2beta1/HorizontalPodAutoscalerList:{x}", + HorizontalPodAutoscalerList(f"{x}", opts, **obj)))] + if gvk == "autoscaling/v2beta2/HorizontalPodAutoscaler": + # Import locally to avoid name collisions. + from pulumi_kubernetes.autoscaling.v2beta2 import HorizontalPodAutoscaler + return [identifier.apply( + lambda x: (f"autoscaling/v2beta2/HorizontalPodAutoscaler:{x}", + HorizontalPodAutoscaler(f"{x}", opts, **obj)))] + if gvk == "autoscaling/v2beta2/HorizontalPodAutoscalerList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.autoscaling.v2beta2 import HorizontalPodAutoscalerList + return [identifier.apply( + lambda x: (f"autoscaling/v2beta2/HorizontalPodAutoscalerList:{x}", + HorizontalPodAutoscalerList(f"{x}", opts, **obj)))] + if gvk == "batch/v1/Job": + # Import locally to avoid name collisions. + from pulumi_kubernetes.batch.v1 import Job + return [identifier.apply( + lambda x: (f"batch/v1/Job:{x}", + Job(f"{x}", opts, **obj)))] + if gvk == "batch/v1/JobList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.batch.v1 import JobList + return [identifier.apply( + lambda x: (f"batch/v1/JobList:{x}", + JobList(f"{x}", opts, **obj)))] + if gvk == "batch/v1beta1/CronJob": + # Import locally to avoid name collisions. + from pulumi_kubernetes.batch.v1beta1 import CronJob + return [identifier.apply( + lambda x: (f"batch/v1beta1/CronJob:{x}", + CronJob(f"{x}", opts, **obj)))] + if gvk == "batch/v1beta1/CronJobList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.batch.v1beta1 import CronJobList + return [identifier.apply( + lambda x: (f"batch/v1beta1/CronJobList:{x}", + CronJobList(f"{x}", opts, **obj)))] + if gvk == "batch/v2alpha1/CronJob": + # Import locally to avoid name collisions. + from pulumi_kubernetes.batch.v2alpha1 import CronJob + return [identifier.apply( + lambda x: (f"batch/v2alpha1/CronJob:{x}", + CronJob(f"{x}", opts, **obj)))] + if gvk == "batch/v2alpha1/CronJobList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.batch.v2alpha1 import CronJobList + return [identifier.apply( + lambda x: (f"batch/v2alpha1/CronJobList:{x}", + CronJobList(f"{x}", opts, **obj)))] + if gvk == "certificates.k8s.io/v1beta1/CertificateSigningRequest": + # Import locally to avoid name collisions. + from pulumi_kubernetes.certificates.v1beta1 import CertificateSigningRequest + return [identifier.apply( + lambda x: (f"certificates.k8s.io/v1beta1/CertificateSigningRequest:{x}", + CertificateSigningRequest(f"{x}", opts, **obj)))] + if gvk == "certificates.k8s.io/v1beta1/CertificateSigningRequestList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.certificates.v1beta1 import CertificateSigningRequestList + return [identifier.apply( + lambda x: (f"certificates.k8s.io/v1beta1/CertificateSigningRequestList:{x}", + CertificateSigningRequestList(f"{x}", opts, **obj)))] + if gvk == "coordination.k8s.io/v1/Lease": + # Import locally to avoid name collisions. + from pulumi_kubernetes.coordination.v1 import Lease + return [identifier.apply( + lambda x: (f"coordination.k8s.io/v1/Lease:{x}", + Lease(f"{x}", opts, **obj)))] + if gvk == "coordination.k8s.io/v1/LeaseList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.coordination.v1 import LeaseList + return [identifier.apply( + lambda x: (f"coordination.k8s.io/v1/LeaseList:{x}", + LeaseList(f"{x}", opts, **obj)))] + if gvk == "coordination.k8s.io/v1beta1/Lease": + # Import locally to avoid name collisions. + from pulumi_kubernetes.coordination.v1beta1 import Lease + return [identifier.apply( + lambda x: (f"coordination.k8s.io/v1beta1/Lease:{x}", + Lease(f"{x}", opts, **obj)))] + if gvk == "coordination.k8s.io/v1beta1/LeaseList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.coordination.v1beta1 import LeaseList + return [identifier.apply( + lambda x: (f"coordination.k8s.io/v1beta1/LeaseList:{x}", + LeaseList(f"{x}", opts, **obj)))] + if gvk == "v1/Binding": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import Binding + return [identifier.apply( + lambda x: (f"v1/Binding:{x}", + Binding(f"{x}", opts, **obj)))] + if gvk == "v1/ComponentStatus": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import ComponentStatus + return [identifier.apply( + lambda x: (f"v1/ComponentStatus:{x}", + ComponentStatus(f"{x}", opts, **obj)))] + if gvk == "v1/ComponentStatusList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import ComponentStatusList + return [identifier.apply( + lambda x: (f"v1/ComponentStatusList:{x}", + ComponentStatusList(f"{x}", opts, **obj)))] + if gvk == "v1/ConfigMap": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import ConfigMap + return [identifier.apply( + lambda x: (f"v1/ConfigMap:{x}", + ConfigMap(f"{x}", opts, **obj)))] + if gvk == "v1/ConfigMapList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import ConfigMapList + return [identifier.apply( + lambda x: (f"v1/ConfigMapList:{x}", + ConfigMapList(f"{x}", opts, **obj)))] + if gvk == "v1/Endpoints": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import Endpoints + return [identifier.apply( + lambda x: (f"v1/Endpoints:{x}", + Endpoints(f"{x}", opts, **obj)))] + if gvk == "v1/EndpointsList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import EndpointsList + return [identifier.apply( + lambda x: (f"v1/EndpointsList:{x}", + EndpointsList(f"{x}", opts, **obj)))] + if gvk == "v1/Event": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import Event + return [identifier.apply( + lambda x: (f"v1/Event:{x}", + Event(f"{x}", opts, **obj)))] + if gvk == "v1/EventList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import EventList + return [identifier.apply( + lambda x: (f"v1/EventList:{x}", + EventList(f"{x}", opts, **obj)))] + if gvk == "v1/LimitRange": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import LimitRange + return [identifier.apply( + lambda x: (f"v1/LimitRange:{x}", + LimitRange(f"{x}", opts, **obj)))] + if gvk == "v1/LimitRangeList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import LimitRangeList + return [identifier.apply( + lambda x: (f"v1/LimitRangeList:{x}", + LimitRangeList(f"{x}", opts, **obj)))] + if gvk == "v1/Namespace": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import Namespace + return [identifier.apply( + lambda x: (f"v1/Namespace:{x}", + Namespace(f"{x}", opts, **obj)))] + if gvk == "v1/NamespaceList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import NamespaceList + return [identifier.apply( + lambda x: (f"v1/NamespaceList:{x}", + NamespaceList(f"{x}", opts, **obj)))] + if gvk == "v1/Node": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import Node + return [identifier.apply( + lambda x: (f"v1/Node:{x}", + Node(f"{x}", opts, **obj)))] + if gvk == "v1/NodeList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import NodeList + return [identifier.apply( + lambda x: (f"v1/NodeList:{x}", + NodeList(f"{x}", opts, **obj)))] + if gvk == "v1/PersistentVolume": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import PersistentVolume + return [identifier.apply( + lambda x: (f"v1/PersistentVolume:{x}", + PersistentVolume(f"{x}", opts, **obj)))] + if gvk == "v1/PersistentVolumeClaim": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import PersistentVolumeClaim + return [identifier.apply( + lambda x: (f"v1/PersistentVolumeClaim:{x}", + PersistentVolumeClaim(f"{x}", opts, **obj)))] + if gvk == "v1/PersistentVolumeClaimList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import PersistentVolumeClaimList + return [identifier.apply( + lambda x: (f"v1/PersistentVolumeClaimList:{x}", + PersistentVolumeClaimList(f"{x}", opts, **obj)))] + if gvk == "v1/PersistentVolumeList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import PersistentVolumeList + return [identifier.apply( + lambda x: (f"v1/PersistentVolumeList:{x}", + PersistentVolumeList(f"{x}", opts, **obj)))] + if gvk == "v1/Pod": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import Pod + return [identifier.apply( + lambda x: (f"v1/Pod:{x}", + Pod(f"{x}", opts, **obj)))] + if gvk == "v1/PodList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import PodList + return [identifier.apply( + lambda x: (f"v1/PodList:{x}", + PodList(f"{x}", opts, **obj)))] + if gvk == "v1/PodTemplate": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import PodTemplate + return [identifier.apply( + lambda x: (f"v1/PodTemplate:{x}", + PodTemplate(f"{x}", opts, **obj)))] + if gvk == "v1/PodTemplateList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import PodTemplateList + return [identifier.apply( + lambda x: (f"v1/PodTemplateList:{x}", + PodTemplateList(f"{x}", opts, **obj)))] + if gvk == "v1/ReplicationController": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import ReplicationController + return [identifier.apply( + lambda x: (f"v1/ReplicationController:{x}", + ReplicationController(f"{x}", opts, **obj)))] + if gvk == "v1/ReplicationControllerList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import ReplicationControllerList + return [identifier.apply( + lambda x: (f"v1/ReplicationControllerList:{x}", + ReplicationControllerList(f"{x}", opts, **obj)))] + if gvk == "v1/ResourceQuota": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import ResourceQuota + return [identifier.apply( + lambda x: (f"v1/ResourceQuota:{x}", + ResourceQuota(f"{x}", opts, **obj)))] + if gvk == "v1/ResourceQuotaList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import ResourceQuotaList + return [identifier.apply( + lambda x: (f"v1/ResourceQuotaList:{x}", + ResourceQuotaList(f"{x}", opts, **obj)))] + if gvk == "v1/Secret": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import Secret + return [identifier.apply( + lambda x: (f"v1/Secret:{x}", + Secret(f"{x}", opts, **obj)))] + if gvk == "v1/SecretList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import SecretList + return [identifier.apply( + lambda x: (f"v1/SecretList:{x}", + SecretList(f"{x}", opts, **obj)))] + if gvk == "v1/Service": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import Service + return [identifier.apply( + lambda x: (f"v1/Service:{x}", + Service(f"{x}", opts, **obj)))] + if gvk == "v1/ServiceAccount": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import ServiceAccount + return [identifier.apply( + lambda x: (f"v1/ServiceAccount:{x}", + ServiceAccount(f"{x}", opts, **obj)))] + if gvk == "v1/ServiceAccountList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import ServiceAccountList + return [identifier.apply( + lambda x: (f"v1/ServiceAccountList:{x}", + ServiceAccountList(f"{x}", opts, **obj)))] + if gvk == "v1/ServiceList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.core.v1 import ServiceList + return [identifier.apply( + lambda x: (f"v1/ServiceList:{x}", + ServiceList(f"{x}", opts, **obj)))] + if gvk == "discovery.k8s.io/v1beta1/EndpointSlice": + # Import locally to avoid name collisions. + from pulumi_kubernetes.discovery.v1beta1 import EndpointSlice + return [identifier.apply( + lambda x: (f"discovery.k8s.io/v1beta1/EndpointSlice:{x}", + EndpointSlice(f"{x}", opts, **obj)))] + if gvk == "discovery.k8s.io/v1beta1/EndpointSliceList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.discovery.v1beta1 import EndpointSliceList + return [identifier.apply( + lambda x: (f"discovery.k8s.io/v1beta1/EndpointSliceList:{x}", + EndpointSliceList(f"{x}", opts, **obj)))] + if gvk == "events.k8s.io/v1beta1/Event": + # Import locally to avoid name collisions. + from pulumi_kubernetes.events.v1beta1 import Event + return [identifier.apply( + lambda x: (f"events.k8s.io/v1beta1/Event:{x}", + Event(f"{x}", opts, **obj)))] + if gvk == "events.k8s.io/v1beta1/EventList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.events.v1beta1 import EventList + return [identifier.apply( + lambda x: (f"events.k8s.io/v1beta1/EventList:{x}", + EventList(f"{x}", opts, **obj)))] + if gvk == "extensions/v1beta1/DaemonSet": + # Import locally to avoid name collisions. + from pulumi_kubernetes.extensions.v1beta1 import DaemonSet + return [identifier.apply( + lambda x: (f"extensions/v1beta1/DaemonSet:{x}", + DaemonSet(f"{x}", opts, **obj)))] + if gvk == "extensions/v1beta1/DaemonSetList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.extensions.v1beta1 import DaemonSetList + return [identifier.apply( + lambda x: (f"extensions/v1beta1/DaemonSetList:{x}", + DaemonSetList(f"{x}", opts, **obj)))] + if gvk == "extensions/v1beta1/Deployment": + # Import locally to avoid name collisions. + from pulumi_kubernetes.extensions.v1beta1 import Deployment + return [identifier.apply( + lambda x: (f"extensions/v1beta1/Deployment:{x}", + Deployment(f"{x}", opts, **obj)))] + if gvk == "extensions/v1beta1/DeploymentList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.extensions.v1beta1 import DeploymentList + return [identifier.apply( + lambda x: (f"extensions/v1beta1/DeploymentList:{x}", + DeploymentList(f"{x}", opts, **obj)))] + if gvk == "extensions/v1beta1/Ingress": + # Import locally to avoid name collisions. + from pulumi_kubernetes.extensions.v1beta1 import Ingress + return [identifier.apply( + lambda x: (f"extensions/v1beta1/Ingress:{x}", + Ingress(f"{x}", opts, **obj)))] + if gvk == "extensions/v1beta1/IngressList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.extensions.v1beta1 import IngressList + return [identifier.apply( + lambda x: (f"extensions/v1beta1/IngressList:{x}", + IngressList(f"{x}", opts, **obj)))] + if gvk == "extensions/v1beta1/NetworkPolicy": + # Import locally to avoid name collisions. + from pulumi_kubernetes.extensions.v1beta1 import NetworkPolicy + return [identifier.apply( + lambda x: (f"extensions/v1beta1/NetworkPolicy:{x}", + NetworkPolicy(f"{x}", opts, **obj)))] + if gvk == "extensions/v1beta1/NetworkPolicyList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.extensions.v1beta1 import NetworkPolicyList + return [identifier.apply( + lambda x: (f"extensions/v1beta1/NetworkPolicyList:{x}", + NetworkPolicyList(f"{x}", opts, **obj)))] + if gvk == "extensions/v1beta1/PodSecurityPolicy": + # Import locally to avoid name collisions. + from pulumi_kubernetes.extensions.v1beta1 import PodSecurityPolicy + return [identifier.apply( + lambda x: (f"extensions/v1beta1/PodSecurityPolicy:{x}", + PodSecurityPolicy(f"{x}", opts, **obj)))] + if gvk == "extensions/v1beta1/PodSecurityPolicyList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.extensions.v1beta1 import PodSecurityPolicyList + return [identifier.apply( + lambda x: (f"extensions/v1beta1/PodSecurityPolicyList:{x}", + PodSecurityPolicyList(f"{x}", opts, **obj)))] + if gvk == "extensions/v1beta1/ReplicaSet": + # Import locally to avoid name collisions. + from pulumi_kubernetes.extensions.v1beta1 import ReplicaSet + return [identifier.apply( + lambda x: (f"extensions/v1beta1/ReplicaSet:{x}", + ReplicaSet(f"{x}", opts, **obj)))] + if gvk == "extensions/v1beta1/ReplicaSetList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.extensions.v1beta1 import ReplicaSetList + return [identifier.apply( + lambda x: (f"extensions/v1beta1/ReplicaSetList:{x}", + ReplicaSetList(f"{x}", opts, **obj)))] + if gvk == "flowcontrol.apiserver.k8s.io/v1alpha1/FlowSchema": + # Import locally to avoid name collisions. + from pulumi_kubernetes.flowcontrol.v1alpha1 import FlowSchema + return [identifier.apply( + lambda x: (f"flowcontrol.apiserver.k8s.io/v1alpha1/FlowSchema:{x}", + FlowSchema(f"{x}", opts, **obj)))] + if gvk == "flowcontrol.apiserver.k8s.io/v1alpha1/FlowSchemaList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.flowcontrol.v1alpha1 import FlowSchemaList + return [identifier.apply( + lambda x: (f"flowcontrol.apiserver.k8s.io/v1alpha1/FlowSchemaList:{x}", + FlowSchemaList(f"{x}", opts, **obj)))] + if gvk == "flowcontrol.apiserver.k8s.io/v1alpha1/PriorityLevelConfiguration": + # Import locally to avoid name collisions. + from pulumi_kubernetes.flowcontrol.v1alpha1 import PriorityLevelConfiguration + return [identifier.apply( + lambda x: (f"flowcontrol.apiserver.k8s.io/v1alpha1/PriorityLevelConfiguration:{x}", + PriorityLevelConfiguration(f"{x}", opts, **obj)))] + if gvk == "flowcontrol.apiserver.k8s.io/v1alpha1/PriorityLevelConfigurationList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.flowcontrol.v1alpha1 import PriorityLevelConfigurationList + return [identifier.apply( + lambda x: (f"flowcontrol.apiserver.k8s.io/v1alpha1/PriorityLevelConfigurationList:{x}", + PriorityLevelConfigurationList(f"{x}", opts, **obj)))] + if gvk == "meta/v1/Status": + # Import locally to avoid name collisions. + from pulumi_kubernetes.meta.v1 import Status + return [identifier.apply( + lambda x: (f"meta/v1/Status:{x}", + Status(f"{x}", opts, **obj)))] + if gvk == "networking.k8s.io/v1/NetworkPolicy": + # Import locally to avoid name collisions. + from pulumi_kubernetes.networking.v1 import NetworkPolicy + return [identifier.apply( + lambda x: (f"networking.k8s.io/v1/NetworkPolicy:{x}", + NetworkPolicy(f"{x}", opts, **obj)))] + if gvk == "networking.k8s.io/v1/NetworkPolicyList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.networking.v1 import NetworkPolicyList + return [identifier.apply( + lambda x: (f"networking.k8s.io/v1/NetworkPolicyList:{x}", + NetworkPolicyList(f"{x}", opts, **obj)))] + if gvk == "networking.k8s.io/v1beta1/Ingress": + # Import locally to avoid name collisions. + from pulumi_kubernetes.networking.v1beta1 import Ingress + return [identifier.apply( + lambda x: (f"networking.k8s.io/v1beta1/Ingress:{x}", + Ingress(f"{x}", opts, **obj)))] + if gvk == "networking.k8s.io/v1beta1/IngressClass": + # Import locally to avoid name collisions. + from pulumi_kubernetes.networking.v1beta1 import IngressClass + return [identifier.apply( + lambda x: (f"networking.k8s.io/v1beta1/IngressClass:{x}", + IngressClass(f"{x}", opts, **obj)))] + if gvk == "networking.k8s.io/v1beta1/IngressClassList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.networking.v1beta1 import IngressClassList + return [identifier.apply( + lambda x: (f"networking.k8s.io/v1beta1/IngressClassList:{x}", + IngressClassList(f"{x}", opts, **obj)))] + if gvk == "networking.k8s.io/v1beta1/IngressList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.networking.v1beta1 import IngressList + return [identifier.apply( + lambda x: (f"networking.k8s.io/v1beta1/IngressList:{x}", + IngressList(f"{x}", opts, **obj)))] + if gvk == "node.k8s.io/v1alpha1/RuntimeClass": + # Import locally to avoid name collisions. + from pulumi_kubernetes.node.v1alpha1 import RuntimeClass + return [identifier.apply( + lambda x: (f"node.k8s.io/v1alpha1/RuntimeClass:{x}", + RuntimeClass(f"{x}", opts, **obj)))] + if gvk == "node.k8s.io/v1alpha1/RuntimeClassList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.node.v1alpha1 import RuntimeClassList + return [identifier.apply( + lambda x: (f"node.k8s.io/v1alpha1/RuntimeClassList:{x}", + RuntimeClassList(f"{x}", opts, **obj)))] + if gvk == "node.k8s.io/v1beta1/RuntimeClass": + # Import locally to avoid name collisions. + from pulumi_kubernetes.node.v1beta1 import RuntimeClass + return [identifier.apply( + lambda x: (f"node.k8s.io/v1beta1/RuntimeClass:{x}", + RuntimeClass(f"{x}", opts, **obj)))] + if gvk == "node.k8s.io/v1beta1/RuntimeClassList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.node.v1beta1 import RuntimeClassList + return [identifier.apply( + lambda x: (f"node.k8s.io/v1beta1/RuntimeClassList:{x}", + RuntimeClassList(f"{x}", opts, **obj)))] + if gvk == "policy/v1beta1/PodDisruptionBudget": + # Import locally to avoid name collisions. + from pulumi_kubernetes.policy.v1beta1 import PodDisruptionBudget + return [identifier.apply( + lambda x: (f"policy/v1beta1/PodDisruptionBudget:{x}", + PodDisruptionBudget(f"{x}", opts, **obj)))] + if gvk == "policy/v1beta1/PodDisruptionBudgetList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.policy.v1beta1 import PodDisruptionBudgetList + return [identifier.apply( + lambda x: (f"policy/v1beta1/PodDisruptionBudgetList:{x}", + PodDisruptionBudgetList(f"{x}", opts, **obj)))] + if gvk == "policy/v1beta1/PodSecurityPolicy": + # Import locally to avoid name collisions. + from pulumi_kubernetes.policy.v1beta1 import PodSecurityPolicy + return [identifier.apply( + lambda x: (f"policy/v1beta1/PodSecurityPolicy:{x}", + PodSecurityPolicy(f"{x}", opts, **obj)))] + if gvk == "policy/v1beta1/PodSecurityPolicyList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.policy.v1beta1 import PodSecurityPolicyList + return [identifier.apply( + lambda x: (f"policy/v1beta1/PodSecurityPolicyList:{x}", + PodSecurityPolicyList(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1/ClusterRole": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1 import ClusterRole + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1/ClusterRole:{x}", + ClusterRole(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1/ClusterRoleBinding": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1 import ClusterRoleBinding + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1/ClusterRoleBinding:{x}", + ClusterRoleBinding(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1/ClusterRoleBindingList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1 import ClusterRoleBindingList + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1/ClusterRoleBindingList:{x}", + ClusterRoleBindingList(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1/ClusterRoleList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1 import ClusterRoleList + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1/ClusterRoleList:{x}", + ClusterRoleList(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1/Role": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1 import Role + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1/Role:{x}", + Role(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1/RoleBinding": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1 import RoleBinding + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1/RoleBinding:{x}", + RoleBinding(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1/RoleBindingList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1 import RoleBindingList + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1/RoleBindingList:{x}", + RoleBindingList(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1/RoleList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1 import RoleList + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1/RoleList:{x}", + RoleList(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1alpha1/ClusterRole": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1alpha1 import ClusterRole + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1alpha1/ClusterRole:{x}", + ClusterRole(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1alpha1/ClusterRoleBinding": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1alpha1 import ClusterRoleBinding + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1alpha1/ClusterRoleBinding:{x}", + ClusterRoleBinding(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1alpha1/ClusterRoleBindingList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1alpha1 import ClusterRoleBindingList + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1alpha1/ClusterRoleBindingList:{x}", + ClusterRoleBindingList(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1alpha1/ClusterRoleList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1alpha1 import ClusterRoleList + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1alpha1/ClusterRoleList:{x}", + ClusterRoleList(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1alpha1/Role": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1alpha1 import Role + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1alpha1/Role:{x}", + Role(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1alpha1/RoleBinding": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1alpha1 import RoleBinding + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1alpha1/RoleBinding:{x}", + RoleBinding(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1alpha1/RoleBindingList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1alpha1 import RoleBindingList + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1alpha1/RoleBindingList:{x}", + RoleBindingList(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1alpha1/RoleList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1alpha1 import RoleList + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1alpha1/RoleList:{x}", + RoleList(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1beta1/ClusterRole": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1beta1 import ClusterRole + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1beta1/ClusterRole:{x}", + ClusterRole(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1beta1/ClusterRoleBinding": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1beta1 import ClusterRoleBinding + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1beta1/ClusterRoleBinding:{x}", + ClusterRoleBinding(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1beta1/ClusterRoleBindingList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1beta1 import ClusterRoleBindingList + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1beta1/ClusterRoleBindingList:{x}", + ClusterRoleBindingList(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1beta1/ClusterRoleList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1beta1 import ClusterRoleList + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1beta1/ClusterRoleList:{x}", + ClusterRoleList(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1beta1/Role": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1beta1 import Role + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1beta1/Role:{x}", + Role(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1beta1/RoleBinding": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1beta1 import RoleBinding + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1beta1/RoleBinding:{x}", + RoleBinding(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1beta1/RoleBindingList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1beta1 import RoleBindingList + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1beta1/RoleBindingList:{x}", + RoleBindingList(f"{x}", opts, **obj)))] + if gvk == "rbac.authorization.k8s.io/v1beta1/RoleList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.rbac.v1beta1 import RoleList + return [identifier.apply( + lambda x: (f"rbac.authorization.k8s.io/v1beta1/RoleList:{x}", + RoleList(f"{x}", opts, **obj)))] + if gvk == "scheduling.k8s.io/v1/PriorityClass": + # Import locally to avoid name collisions. + from pulumi_kubernetes.scheduling.v1 import PriorityClass + return [identifier.apply( + lambda x: (f"scheduling.k8s.io/v1/PriorityClass:{x}", + PriorityClass(f"{x}", opts, **obj)))] + if gvk == "scheduling.k8s.io/v1/PriorityClassList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.scheduling.v1 import PriorityClassList + return [identifier.apply( + lambda x: (f"scheduling.k8s.io/v1/PriorityClassList:{x}", + PriorityClassList(f"{x}", opts, **obj)))] + if gvk == "scheduling.k8s.io/v1alpha1/PriorityClass": + # Import locally to avoid name collisions. + from pulumi_kubernetes.scheduling.v1alpha1 import PriorityClass + return [identifier.apply( + lambda x: (f"scheduling.k8s.io/v1alpha1/PriorityClass:{x}", + PriorityClass(f"{x}", opts, **obj)))] + if gvk == "scheduling.k8s.io/v1alpha1/PriorityClassList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.scheduling.v1alpha1 import PriorityClassList + return [identifier.apply( + lambda x: (f"scheduling.k8s.io/v1alpha1/PriorityClassList:{x}", + PriorityClassList(f"{x}", opts, **obj)))] + if gvk == "scheduling.k8s.io/v1beta1/PriorityClass": + # Import locally to avoid name collisions. + from pulumi_kubernetes.scheduling.v1beta1 import PriorityClass + return [identifier.apply( + lambda x: (f"scheduling.k8s.io/v1beta1/PriorityClass:{x}", + PriorityClass(f"{x}", opts, **obj)))] + if gvk == "scheduling.k8s.io/v1beta1/PriorityClassList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.scheduling.v1beta1 import PriorityClassList + return [identifier.apply( + lambda x: (f"scheduling.k8s.io/v1beta1/PriorityClassList:{x}", + PriorityClassList(f"{x}", opts, **obj)))] + if gvk == "settings.k8s.io/v1alpha1/PodPreset": + # Import locally to avoid name collisions. + from pulumi_kubernetes.settings.v1alpha1 import PodPreset + return [identifier.apply( + lambda x: (f"settings.k8s.io/v1alpha1/PodPreset:{x}", + PodPreset(f"{x}", opts, **obj)))] + if gvk == "settings.k8s.io/v1alpha1/PodPresetList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.settings.v1alpha1 import PodPresetList + return [identifier.apply( + lambda x: (f"settings.k8s.io/v1alpha1/PodPresetList:{x}", + PodPresetList(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1/CSIDriver": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1 import CSIDriver + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1/CSIDriver:{x}", + CSIDriver(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1/CSIDriverList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1 import CSIDriverList + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1/CSIDriverList:{x}", + CSIDriverList(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1/CSINode": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1 import CSINode + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1/CSINode:{x}", + CSINode(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1/CSINodeList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1 import CSINodeList + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1/CSINodeList:{x}", + CSINodeList(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1/StorageClass": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1 import StorageClass + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1/StorageClass:{x}", + StorageClass(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1/StorageClassList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1 import StorageClassList + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1/StorageClassList:{x}", + StorageClassList(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1/VolumeAttachment": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1 import VolumeAttachment + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1/VolumeAttachment:{x}", + VolumeAttachment(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1/VolumeAttachmentList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1 import VolumeAttachmentList + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1/VolumeAttachmentList:{x}", + VolumeAttachmentList(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1alpha1/VolumeAttachment": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1alpha1 import VolumeAttachment + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1alpha1/VolumeAttachment:{x}", + VolumeAttachment(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1alpha1/VolumeAttachmentList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1alpha1 import VolumeAttachmentList + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1alpha1/VolumeAttachmentList:{x}", + VolumeAttachmentList(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1beta1/CSIDriver": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1beta1 import CSIDriver + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1beta1/CSIDriver:{x}", + CSIDriver(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1beta1/CSIDriverList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1beta1 import CSIDriverList + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1beta1/CSIDriverList:{x}", + CSIDriverList(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1beta1/CSINode": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1beta1 import CSINode + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1beta1/CSINode:{x}", + CSINode(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1beta1/CSINodeList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1beta1 import CSINodeList + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1beta1/CSINodeList:{x}", + CSINodeList(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1beta1/StorageClass": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1beta1 import StorageClass + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1beta1/StorageClass:{x}", + StorageClass(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1beta1/StorageClassList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1beta1 import StorageClassList + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1beta1/StorageClassList:{x}", + StorageClassList(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1beta1/VolumeAttachment": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1beta1 import VolumeAttachment + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1beta1/VolumeAttachment:{x}", + VolumeAttachment(f"{x}", opts, **obj)))] + if gvk == "storage.k8s.io/v1beta1/VolumeAttachmentList": + # Import locally to avoid name collisions. + from pulumi_kubernetes.storage.v1beta1 import VolumeAttachmentList + return [identifier.apply( + lambda x: (f"storage.k8s.io/v1beta1/VolumeAttachmentList:{x}", + VolumeAttachmentList(f"{x}", opts, **obj)))] + return [identifier.apply( + lambda x: (f"{gvk}:{x}", + CustomResource(f"{x}", api_version, kind, spec, metadata, opts)))] From 21bc174b70788cc6669b270134cacdbdcb2c8575 Mon Sep 17 00:00:00 2001 From: komal Date: Wed, 24 Jun 2020 14:21:19 -0700 Subject: [PATCH 20/25] Final codegen changes --- provider/go.mod | 2 +- provider/go.sum | 10 ++--- sdk/python/pulumi_kubernetes/__init__.py | 38 ++++++++++++++++--- .../admissionregistration/__init__.py | 8 +++- .../apiextensions/__init__.py | 13 ++++--- .../apiregistration/__init__.py | 8 +++- sdk/python/pulumi_kubernetes/apps/__init__.py | 9 ++++- .../auditregistration/__init__.py | 7 +++- .../authentication/__init__.py | 8 +++- .../authorization/__init__.py | 8 +++- .../pulumi_kubernetes/autoscaling/__init__.py | 9 ++++- .../pulumi_kubernetes/batch/__init__.py | 9 ++++- .../certificates/__init__.py | 7 +++- .../coordination/__init__.py | 8 +++- sdk/python/pulumi_kubernetes/core/__init__.py | 7 +++- .../pulumi_kubernetes/discovery/__init__.py | 7 +++- .../pulumi_kubernetes/events/__init__.py | 7 +++- .../pulumi_kubernetes/extensions/__init__.py | 7 +++- .../pulumi_kubernetes/flowcontrol/__init__.py | 7 +++- sdk/python/pulumi_kubernetes/helm/__init__.py | 8 +++- sdk/python/pulumi_kubernetes/meta/__init__.py | 7 +++- .../pulumi_kubernetes/networking/__init__.py | 8 +++- sdk/python/pulumi_kubernetes/node/__init__.py | 8 +++- .../pulumi_kubernetes/policy/__init__.py | 7 +++- sdk/python/pulumi_kubernetes/rbac/__init__.py | 9 ++++- .../pulumi_kubernetes/scheduling/__init__.py | 9 ++++- .../pulumi_kubernetes/settings/__init__.py | 7 +++- .../pulumi_kubernetes/storage/__init__.py | 9 ++++- tests/go.mod | 2 +- tests/go.sum | 12 +++--- 30 files changed, 193 insertions(+), 72 deletions(-) diff --git a/provider/go.mod b/provider/go.mod index 0854ee41e0..ac34e15211 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -11,7 +11,7 @@ require ( github.com/imdario/mergo v0.3.8 github.com/mitchellh/go-wordwrap v1.0.0 github.com/pkg/errors v0.9.1 - github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200622153820-282c95ee402d + github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624184103-ed752bc384d1 github.com/pulumi/pulumi/sdk/v2 v2.4.0 github.com/stretchr/testify v1.6.1 google.golang.org/grpc v1.28.0 diff --git a/provider/go.sum b/provider/go.sum index 495fb0f3a4..2a60b3f059 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -450,11 +450,10 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200622153820-282c95ee402d h1:a7+mvsLerdMp/tz1MKYYsAKTtjWPGz9sNzD+UscQRuU= -github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200622153820-282c95ee402d/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= +github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624184103-ed752bc384d1 h1:Zt0hIx4vhS4FXb8vJdNhfwQAIqVTgP7pX3MJkPGu7TI= +github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624184103-ed752bc384d1/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= github.com/pulumi/pulumi/sdk/v2 v2.0.0/go.mod h1:W7k1UDYerc5o97mHnlHHp5iQZKEby+oQrQefWt+2RF4= -github.com/pulumi/pulumi/sdk/v2 v2.3.0 h1:uvRYCmoHILKlyyIbXa5CcLSKKt9n2s8j+GKTffpXQf4= -github.com/pulumi/pulumi/sdk/v2 v2.3.0/go.mod h1:cvivzHVRA5Xu3NSE/obmHzO3L693IJSd5QccQuBOMUE= +github.com/pulumi/pulumi/sdk/v2 v2.4.0 h1:1ef6JbCWG3RWCKNpeeFBezzI6HBdMPpdeZQAd+IGKvw= github.com/pulumi/pulumi/sdk/v2 v2.4.0/go.mod h1:llk6tmXss8kJrt3vEXAkwiwgZOuINEFmKIfMveVIwO8= github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= github.com/rjeczalik/notify v0.9.2/go.mod h1:aErll2f0sUX9PXZnVNyeiObbmTlk5jnMoCa4QEjJeqM= @@ -508,6 +507,7 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6 h1:9VTskZOIRf2vKF3UL8TuWElry5pgUpV1tFSe/e/0m/E= github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6/go.mod h1:XDKHRm5ThF8YJjx001LtgelzsoaEcvnA7lVWz9EeX3g= @@ -790,7 +790,6 @@ google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8 google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.28.0 h1:bO/TA4OxCOummhSf10siHuG7vJOiwh7SpRpFZDkOgl4= google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -gopkg.in/AlecAivazis/survey.v1 v1.8.8/go.mod h1:CaHjv79TCgAvXMSFJSVgonHXYWxnhzI3eoHtnX5UgUo= gopkg.in/AlecAivazis/survey.v1 v1.8.9-0.20200217094205-6773bdf39b7f/go.mod h1:CaHjv79TCgAvXMSFJSVgonHXYWxnhzI3eoHtnX5UgUo= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= @@ -823,6 +822,7 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/sdk/python/pulumi_kubernetes/__init__.py b/sdk/python/pulumi_kubernetes/__init__.py index a3cb73b53b..53c14fb37d 100644 --- a/sdk/python/pulumi_kubernetes/__init__.py +++ b/sdk/python/pulumi_kubernetes/__init__.py @@ -3,12 +3,38 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib -# Make subpackages available: -__all__ = ['admissionregistration', 'apiextensions', 'apiregistration', 'apps', 'auditregistration', 'authentication', 'authorization', 'autoscaling', 'batch', 'certificates', 'coordination', 'core', 'discovery', 'events', 'extensions', 'flowcontrol', 'helm', 'meta', 'networking', 'node', 'policy', 'rbac', 'scheduling', 'settings', 'storage'] -for pkg in __all__: - if pkg != 'config': - importlib.import_module(f'{__name__}.{pkg}') - # Export this package's modules as members: from .provider import * from .yaml import * + +# Make subpackages available: +_submodules = [ + 'admissionregistration', + 'apiextensions', + 'apiregistration', + 'apps', + 'auditregistration', + 'authentication', + 'authorization', + 'autoscaling', + 'batch', + 'certificates', + 'coordination', + 'core', + 'discovery', + 'events', + 'extensions', + 'flowcontrol', + 'helm', + 'meta', + 'networking', + 'node', + 'policy', + 'rbac', + 'scheduling', + 'settings', + 'storage', +] +for pkg in _submodules: + if pkg != 'config': + importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py b/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py index 4c1e851a21..0d2213eb3c 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1', + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/apiextensions/__init__.py b/sdk/python/pulumi_kubernetes/apiextensions/__init__.py index c24be2a8a4..2b623a88c2 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/__init__.py @@ -3,11 +3,14 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib +# Export this package's modules as members: +from .CustomResource import * + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1', + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') - -# Export this package's modules as members: -from .CustomResource import * diff --git a/sdk/python/pulumi_kubernetes/apiregistration/__init__.py b/sdk/python/pulumi_kubernetes/apiregistration/__init__.py index 4c1e851a21..0d2213eb3c 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/__init__.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1', + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/apps/__init__.py b/sdk/python/pulumi_kubernetes/apps/__init__.py index 3b707f2a5c..f11b67b338 100644 --- a/sdk/python/pulumi_kubernetes/apps/__init__.py +++ b/sdk/python/pulumi_kubernetes/apps/__init__.py @@ -3,8 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1', 'v1beta2'] -for pkg in __all__: +_submodules = [ + 'v1', + 'v1beta1', + 'v1beta2', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/auditregistration/__init__.py b/sdk/python/pulumi_kubernetes/auditregistration/__init__.py index d688fb9289..0ec5bfb760 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/__init__.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1alpha1'] -for pkg in __all__: +_submodules = [ + 'v1alpha1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/authentication/__init__.py b/sdk/python/pulumi_kubernetes/authentication/__init__.py index 4c1e851a21..0d2213eb3c 100644 --- a/sdk/python/pulumi_kubernetes/authentication/__init__.py +++ b/sdk/python/pulumi_kubernetes/authentication/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1', + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/authorization/__init__.py b/sdk/python/pulumi_kubernetes/authorization/__init__.py index 4c1e851a21..0d2213eb3c 100644 --- a/sdk/python/pulumi_kubernetes/authorization/__init__.py +++ b/sdk/python/pulumi_kubernetes/authorization/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1', + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/autoscaling/__init__.py b/sdk/python/pulumi_kubernetes/autoscaling/__init__.py index aadeed7f52..289a6ade7f 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/__init__.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/__init__.py @@ -3,8 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v2beta1', 'v2beta2'] -for pkg in __all__: +_submodules = [ + 'v1', + 'v2beta1', + 'v2beta2', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/batch/__init__.py b/sdk/python/pulumi_kubernetes/batch/__init__.py index 11842b0e79..2b32ae6c30 100644 --- a/sdk/python/pulumi_kubernetes/batch/__init__.py +++ b/sdk/python/pulumi_kubernetes/batch/__init__.py @@ -3,8 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1', 'v2alpha1'] -for pkg in __all__: +_submodules = [ + 'v1', + 'v1beta1', + 'v2alpha1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/certificates/__init__.py b/sdk/python/pulumi_kubernetes/certificates/__init__.py index a311e81ad2..b37b61f14b 100644 --- a/sdk/python/pulumi_kubernetes/certificates/__init__.py +++ b/sdk/python/pulumi_kubernetes/certificates/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/coordination/__init__.py b/sdk/python/pulumi_kubernetes/coordination/__init__.py index 4c1e851a21..0d2213eb3c 100644 --- a/sdk/python/pulumi_kubernetes/coordination/__init__.py +++ b/sdk/python/pulumi_kubernetes/coordination/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1', + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/core/__init__.py b/sdk/python/pulumi_kubernetes/core/__init__.py index e2a396b5dc..6b607ba3fa 100644 --- a/sdk/python/pulumi_kubernetes/core/__init__.py +++ b/sdk/python/pulumi_kubernetes/core/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1'] -for pkg in __all__: +_submodules = [ + 'v1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/discovery/__init__.py b/sdk/python/pulumi_kubernetes/discovery/__init__.py index a311e81ad2..b37b61f14b 100644 --- a/sdk/python/pulumi_kubernetes/discovery/__init__.py +++ b/sdk/python/pulumi_kubernetes/discovery/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/events/__init__.py b/sdk/python/pulumi_kubernetes/events/__init__.py index a311e81ad2..b37b61f14b 100644 --- a/sdk/python/pulumi_kubernetes/events/__init__.py +++ b/sdk/python/pulumi_kubernetes/events/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/extensions/__init__.py b/sdk/python/pulumi_kubernetes/extensions/__init__.py index a311e81ad2..b37b61f14b 100644 --- a/sdk/python/pulumi_kubernetes/extensions/__init__.py +++ b/sdk/python/pulumi_kubernetes/extensions/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py b/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py index d688fb9289..0ec5bfb760 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1alpha1'] -for pkg in __all__: +_submodules = [ + 'v1alpha1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/helm/__init__.py b/sdk/python/pulumi_kubernetes/helm/__init__.py index 4c217c1e5c..ce3507320f 100644 --- a/sdk/python/pulumi_kubernetes/helm/__init__.py +++ b/sdk/python/pulumi_kubernetes/helm/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v2', 'v3'] -for pkg in __all__: +_submodules = [ + 'v2', + 'v3', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/meta/__init__.py b/sdk/python/pulumi_kubernetes/meta/__init__.py index e2a396b5dc..6b607ba3fa 100644 --- a/sdk/python/pulumi_kubernetes/meta/__init__.py +++ b/sdk/python/pulumi_kubernetes/meta/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1'] -for pkg in __all__: +_submodules = [ + 'v1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/networking/__init__.py b/sdk/python/pulumi_kubernetes/networking/__init__.py index 4c1e851a21..0d2213eb3c 100644 --- a/sdk/python/pulumi_kubernetes/networking/__init__.py +++ b/sdk/python/pulumi_kubernetes/networking/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1', + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/node/__init__.py b/sdk/python/pulumi_kubernetes/node/__init__.py index b7445a56eb..9f844ba669 100644 --- a/sdk/python/pulumi_kubernetes/node/__init__.py +++ b/sdk/python/pulumi_kubernetes/node/__init__.py @@ -3,8 +3,12 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1alpha1', 'v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1alpha1', + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/policy/__init__.py b/sdk/python/pulumi_kubernetes/policy/__init__.py index a311e81ad2..b37b61f14b 100644 --- a/sdk/python/pulumi_kubernetes/policy/__init__.py +++ b/sdk/python/pulumi_kubernetes/policy/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/rbac/__init__.py b/sdk/python/pulumi_kubernetes/rbac/__init__.py index 1f87cd7749..9bfb060f08 100644 --- a/sdk/python/pulumi_kubernetes/rbac/__init__.py +++ b/sdk/python/pulumi_kubernetes/rbac/__init__.py @@ -3,8 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1alpha1', 'v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1', + 'v1alpha1', + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/scheduling/__init__.py b/sdk/python/pulumi_kubernetes/scheduling/__init__.py index 1f87cd7749..9bfb060f08 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/__init__.py +++ b/sdk/python/pulumi_kubernetes/scheduling/__init__.py @@ -3,8 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1alpha1', 'v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1', + 'v1alpha1', + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/settings/__init__.py b/sdk/python/pulumi_kubernetes/settings/__init__.py index d688fb9289..0ec5bfb760 100644 --- a/sdk/python/pulumi_kubernetes/settings/__init__.py +++ b/sdk/python/pulumi_kubernetes/settings/__init__.py @@ -3,8 +3,11 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1alpha1'] -for pkg in __all__: +_submodules = [ + 'v1alpha1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/sdk/python/pulumi_kubernetes/storage/__init__.py b/sdk/python/pulumi_kubernetes/storage/__init__.py index 1f87cd7749..9bfb060f08 100644 --- a/sdk/python/pulumi_kubernetes/storage/__init__.py +++ b/sdk/python/pulumi_kubernetes/storage/__init__.py @@ -3,8 +3,13 @@ # *** Do not edit by hand unless you're certain you know what you are doing! *** import importlib + # Make subpackages available: -__all__ = ['v1', 'v1alpha1', 'v1beta1'] -for pkg in __all__: +_submodules = [ + 'v1', + 'v1alpha1', + 'v1beta1', +] +for pkg in _submodules: if pkg != 'config': importlib.import_module(f'{__name__}.{pkg}') diff --git a/tests/go.mod b/tests/go.mod index 81cc48a517..e81cbf3d23 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -11,7 +11,7 @@ replace ( require ( github.com/pulumi/pulumi-kubernetes/provider/v2 v2.0.0-00010101000000-000000000000 github.com/pulumi/pulumi-kubernetes/sdk/v2 v2.0.0 - github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200622153820-282c95ee402d + github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624184103-ed752bc384d1 github.com/pulumi/pulumi/sdk/v2 v2.4.0 github.com/stretchr/testify v1.6.1 ) diff --git a/tests/go.sum b/tests/go.sum index ed69338b8d..2a05b87850 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -498,14 +498,13 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200622153820-282c95ee402d h1:a7+mvsLerdMp/tz1MKYYsAKTtjWPGz9sNzD+UscQRuU= -github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200622153820-282c95ee402d/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= +github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624184103-ed752bc384d1 h1:Zt0hIx4vhS4FXb8vJdNhfwQAIqVTgP7pX3MJkPGu7TI= +github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624184103-ed752bc384d1/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= github.com/pulumi/pulumi/sdk/v2 v2.0.0 h1:3VMXbEo3bqeaU+YDt8ufVBLD0WhLYE3tG3t/nIZ3Iac= github.com/pulumi/pulumi/sdk/v2 v2.0.0/go.mod h1:W7k1UDYerc5o97mHnlHHp5iQZKEby+oQrQefWt+2RF4= github.com/pulumi/pulumi/sdk/v2 v2.2.2-0.20200514204320-e677c7d6dca3 h1:uCVadlcmLexcm6WHJv1EFB3E9PKqWQt/+zVuNC+WpjM= github.com/pulumi/pulumi/sdk/v2 v2.2.2-0.20200514204320-e677c7d6dca3/go.mod h1:QNbWpL4gvf3X0lUFT7TXA2Jo1ff/Ti2l97AyFGYwvW4= -github.com/pulumi/pulumi/sdk/v2 v2.3.0 h1:uvRYCmoHILKlyyIbXa5CcLSKKt9n2s8j+GKTffpXQf4= -github.com/pulumi/pulumi/sdk/v2 v2.3.0/go.mod h1:cvivzHVRA5Xu3NSE/obmHzO3L693IJSd5QccQuBOMUE= +github.com/pulumi/pulumi/sdk/v2 v2.4.0 h1:1ef6JbCWG3RWCKNpeeFBezzI6HBdMPpdeZQAd+IGKvw= github.com/pulumi/pulumi/sdk/v2 v2.4.0/go.mod h1:llk6tmXss8kJrt3vEXAkwiwgZOuINEFmKIfMveVIwO8= github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= github.com/rjeczalik/notify v0.9.2 h1:MiTWrPj55mNDHEiIX5YUSKefw/+lCQVoAFmD6oQm5w8= @@ -565,6 +564,7 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6 h1:9VTskZOIRf2vKF3UL8TuWElry5pgUpV1tFSe/e/0m/E= github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6/go.mod h1:XDKHRm5ThF8YJjx001LtgelzsoaEcvnA7lVWz9EeX3g= @@ -857,8 +857,7 @@ google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8 google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.28.0 h1:bO/TA4OxCOummhSf10siHuG7vJOiwh7SpRpFZDkOgl4= google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -gopkg.in/AlecAivazis/survey.v1 v1.8.8 h1:5UtTowJZTz1j7NxVzDGKTz6Lm9IWm8DDF6b7a2wq9VY= -gopkg.in/AlecAivazis/survey.v1 v1.8.8/go.mod h1:CaHjv79TCgAvXMSFJSVgonHXYWxnhzI3eoHtnX5UgUo= +gopkg.in/AlecAivazis/survey.v1 v1.8.9-0.20200217094205-6773bdf39b7f h1:AQkMzsSzHWrgZWqGRpuRaRPDmyNibcXlpGcnQJ7HxZw= gopkg.in/AlecAivazis/survey.v1 v1.8.9-0.20200217094205-6773bdf39b7f/go.mod h1:CaHjv79TCgAvXMSFJSVgonHXYWxnhzI3eoHtnX5UgUo= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= @@ -892,6 +891,7 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= From ea7438ee9575b9fe207a2aea84a9d3bc6682595b Mon Sep 17 00:00:00 2001 From: komal Date: Wed, 24 Jun 2020 14:36:22 -0700 Subject: [PATCH 21/25] Final codegen changes --- provider/go.mod | 2 +- provider/go.sum | 4 ++-- sdk/go.sum | 2 -- sdk/python/pulumi_kubernetes/provider.py | 6 ++++++ tests/go.mod | 2 +- tests/go.sum | 4 ++-- 6 files changed, 12 insertions(+), 8 deletions(-) diff --git a/provider/go.mod b/provider/go.mod index ac34e15211..e59f1f0d25 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -11,7 +11,7 @@ require ( github.com/imdario/mergo v0.3.8 github.com/mitchellh/go-wordwrap v1.0.0 github.com/pkg/errors v0.9.1 - github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624184103-ed752bc384d1 + github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624205318-fa3000801ecd github.com/pulumi/pulumi/sdk/v2 v2.4.0 github.com/stretchr/testify v1.6.1 google.golang.org/grpc v1.28.0 diff --git a/provider/go.sum b/provider/go.sum index 2a60b3f059..93eacfddb1 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -450,8 +450,8 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624184103-ed752bc384d1 h1:Zt0hIx4vhS4FXb8vJdNhfwQAIqVTgP7pX3MJkPGu7TI= -github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624184103-ed752bc384d1/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= +github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624205318-fa3000801ecd h1:xA2aOtBCrrn0OF9XwXWv9gRWa+9nBI9t35ilf0Jf1vE= +github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624205318-fa3000801ecd/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= github.com/pulumi/pulumi/sdk/v2 v2.0.0/go.mod h1:W7k1UDYerc5o97mHnlHHp5iQZKEby+oQrQefWt+2RF4= github.com/pulumi/pulumi/sdk/v2 v2.4.0 h1:1ef6JbCWG3RWCKNpeeFBezzI6HBdMPpdeZQAd+IGKvw= github.com/pulumi/pulumi/sdk/v2 v2.4.0/go.mod h1:llk6tmXss8kJrt3vEXAkwiwgZOuINEFmKIfMveVIwO8= diff --git a/sdk/go.sum b/sdk/go.sum index d5618582e3..27ce91edf7 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -151,10 +151,8 @@ github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7z github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/pulumi/sdk/v2 v2.2.2-0.20200514204320-e677c7d6dca3 h1:uCVadlcmLexcm6WHJv1EFB3E9PKqWQt/+zVuNC+WpjM= github.com/pulumi/pulumi/sdk/v2 v2.2.2-0.20200514204320-e677c7d6dca3/go.mod h1:QNbWpL4gvf3X0lUFT7TXA2Jo1ff/Ti2l97AyFGYwvW4= -github.com/pulumi/pulumi/sdk/v2 v2.4.0/go.mod h1:llk6tmXss8kJrt3vEXAkwiwgZOuINEFmKIfMveVIwO8= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/sabhiram/go-gitignore v0.0.0-20180611051255-d3107576ba94/go.mod h1:b18R55ulyQ/h3RaWyloPyER7fWQVZvimKKhnI5OfrJQ= github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= diff --git a/sdk/python/pulumi_kubernetes/provider.py b/sdk/python/pulumi_kubernetes/provider.py index 003374614c..0db94171a5 100644 --- a/sdk/python/pulumi_kubernetes/provider.py +++ b/sdk/python/pulumi_kubernetes/provider.py @@ -65,10 +65,16 @@ def __init__(__self__, resource_name, opts=None, cluster=None, context=None, ena __props__['cluster'] = cluster __props__['context'] = context + if enable_dry_run is None: + enable_dry_run = utilities.get_env_bool('PULUMI_K8S_ENABLE_DRY_RUN') __props__['enable_dry_run'] = pulumi.Output.from_input(enable_dry_run).apply(json.dumps) if enable_dry_run is not None else None + if kubeconfig is None: + kubeconfig = utilities.get_env('KUBECONFIG') __props__['kubeconfig'] = kubeconfig __props__['namespace'] = namespace __props__['render_yaml_to_directory'] = render_yaml_to_directory + if suppress_deprecation_warnings is None: + suppress_deprecation_warnings = utilities.get_env_bool('PULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGS') __props__['suppress_deprecation_warnings'] = pulumi.Output.from_input(suppress_deprecation_warnings).apply(json.dumps) if suppress_deprecation_warnings is not None else None super(Provider, __self__).__init__( 'kubernetes', diff --git a/tests/go.mod b/tests/go.mod index e81cbf3d23..13a2b85385 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -11,7 +11,7 @@ replace ( require ( github.com/pulumi/pulumi-kubernetes/provider/v2 v2.0.0-00010101000000-000000000000 github.com/pulumi/pulumi-kubernetes/sdk/v2 v2.0.0 - github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624184103-ed752bc384d1 + github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624205318-fa3000801ecd github.com/pulumi/pulumi/sdk/v2 v2.4.0 github.com/stretchr/testify v1.6.1 ) diff --git a/tests/go.sum b/tests/go.sum index 2a05b87850..d54caaa5c0 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -498,8 +498,8 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624184103-ed752bc384d1 h1:Zt0hIx4vhS4FXb8vJdNhfwQAIqVTgP7pX3MJkPGu7TI= -github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624184103-ed752bc384d1/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= +github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624205318-fa3000801ecd h1:xA2aOtBCrrn0OF9XwXWv9gRWa+9nBI9t35ilf0Jf1vE= +github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624205318-fa3000801ecd/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= github.com/pulumi/pulumi/sdk/v2 v2.0.0 h1:3VMXbEo3bqeaU+YDt8ufVBLD0WhLYE3tG3t/nIZ3Iac= github.com/pulumi/pulumi/sdk/v2 v2.0.0/go.mod h1:W7k1UDYerc5o97mHnlHHp5iQZKEby+oQrQefWt+2RF4= github.com/pulumi/pulumi/sdk/v2 v2.2.2-0.20200514204320-e677c7d6dca3 h1:uCVadlcmLexcm6WHJv1EFB3E9PKqWQt/+zVuNC+WpjM= From 0961119c29b5e3ab3a3cd6516b67fbcfe22b11f5 Mon Sep 17 00:00:00 2001 From: komal Date: Thu, 25 Jun 2020 11:56:30 -0700 Subject: [PATCH 22/25] Only export ConfigFile from yaml.py --- provider/pkg/gen/python-templates/yaml/yaml.tmpl | 2 ++ sdk/python/pulumi_kubernetes/yaml.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/provider/pkg/gen/python-templates/yaml/yaml.tmpl b/provider/pkg/gen/python-templates/yaml/yaml.tmpl index 159da8dfbb..34765b782a 100644 --- a/provider/pkg/gen/python-templates/yaml/yaml.tmpl +++ b/provider/pkg/gen/python-templates/yaml/yaml.tmpl @@ -12,6 +12,8 @@ from pulumi_kubernetes.apiextensions import CustomResource from . import tables from .utilities import get_version +__all__ = ['ConfigFile'] + class ConfigFile(pulumi.ComponentResource): """ diff --git a/sdk/python/pulumi_kubernetes/yaml.py b/sdk/python/pulumi_kubernetes/yaml.py index 23d289b759..25c6101227 100644 --- a/sdk/python/pulumi_kubernetes/yaml.py +++ b/sdk/python/pulumi_kubernetes/yaml.py @@ -12,6 +12,8 @@ from . import tables from .utilities import get_version +__all__ = ['ConfigFile'] + class ConfigFile(pulumi.ComponentResource): """ From eccbbd9791731ce83b90e27ae6b1fe5997faeea4 Mon Sep 17 00:00:00 2001 From: komal Date: Thu, 25 Jun 2020 12:00:09 -0700 Subject: [PATCH 23/25] Codegen updates --- provider/go.mod | 2 +- provider/go.sum | 4 +- .../pulumi_kubernetes.egg-info/SOURCES.txt | 365 +++++++++--------- .../v1/MutatingWebhookConfiguration.py | 1 - .../v1/MutatingWebhookConfigurationList.py | 1 - .../v1/ValidatingWebhookConfiguration.py | 1 - .../v1/ValidatingWebhookConfigurationList.py | 1 - .../v1beta1/MutatingWebhookConfiguration.py | 1 - .../MutatingWebhookConfigurationList.py | 1 - .../v1beta1/ValidatingWebhookConfiguration.py | 1 - .../ValidatingWebhookConfigurationList.py | 1 - .../v1/CustomResourceDefinition.py | 1 - .../v1/CustomResourceDefinitionList.py | 1 - .../v1beta1/CustomResourceDefinition.py | 1 - .../v1beta1/CustomResourceDefinitionList.py | 1 - .../apiregistration/v1/APIService.py | 1 - .../apiregistration/v1/APIServiceList.py | 1 - .../apiregistration/v1beta1/APIService.py | 1 - .../apiregistration/v1beta1/APIServiceList.py | 1 - .../apps/v1/ControllerRevision.py | 1 - .../apps/v1/ControllerRevisionList.py | 1 - .../pulumi_kubernetes/apps/v1/DaemonSet.py | 1 - .../apps/v1/DaemonSetList.py | 1 - .../pulumi_kubernetes/apps/v1/Deployment.py | 1 - .../apps/v1/DeploymentList.py | 1 - .../pulumi_kubernetes/apps/v1/ReplicaSet.py | 1 - .../apps/v1/ReplicaSetList.py | 1 - .../pulumi_kubernetes/apps/v1/StatefulSet.py | 1 - .../apps/v1/StatefulSetList.py | 1 - .../apps/v1beta1/ControllerRevision.py | 1 - .../apps/v1beta1/ControllerRevisionList.py | 1 - .../apps/v1beta1/Deployment.py | 1 - .../apps/v1beta1/DeploymentList.py | 1 - .../apps/v1beta1/StatefulSet.py | 1 - .../apps/v1beta1/StatefulSetList.py | 1 - .../apps/v1beta2/ControllerRevision.py | 1 - .../apps/v1beta2/ControllerRevisionList.py | 1 - .../apps/v1beta2/DaemonSet.py | 1 - .../apps/v1beta2/DaemonSetList.py | 1 - .../apps/v1beta2/Deployment.py | 1 - .../apps/v1beta2/DeploymentList.py | 1 - .../apps/v1beta2/ReplicaSet.py | 1 - .../apps/v1beta2/ReplicaSetList.py | 1 - .../apps/v1beta2/StatefulSet.py | 1 - .../apps/v1beta2/StatefulSetList.py | 1 - .../auditregistration/v1alpha1/AuditSink.py | 1 - .../v1alpha1/AuditSinkList.py | 1 - .../authentication/v1/TokenRequest.py | 1 - .../authentication/v1/TokenReview.py | 1 - .../authentication/v1beta1/TokenReview.py | 1 - .../v1/LocalSubjectAccessReview.py | 1 - .../v1/SelfSubjectAccessReview.py | 1 - .../v1/SelfSubjectRulesReview.py | 1 - .../authorization/v1/SubjectAccessReview.py | 1 - .../v1beta1/LocalSubjectAccessReview.py | 1 - .../v1beta1/SelfSubjectAccessReview.py | 1 - .../v1beta1/SelfSubjectRulesReview.py | 1 - .../v1beta1/SubjectAccessReview.py | 1 - .../autoscaling/v1/HorizontalPodAutoscaler.py | 1 - .../v1/HorizontalPodAutoscalerList.py | 1 - .../v2beta1/HorizontalPodAutoscaler.py | 1 - .../v2beta1/HorizontalPodAutoscalerList.py | 1 - .../v2beta2/HorizontalPodAutoscaler.py | 1 - .../v2beta2/HorizontalPodAutoscalerList.py | 1 - sdk/python/pulumi_kubernetes/batch/v1/Job.py | 1 - .../pulumi_kubernetes/batch/v1/JobList.py | 1 - .../batch/v1beta1/CronJob.py | 1 - .../batch/v1beta1/CronJobList.py | 1 - .../batch/v2alpha1/CronJob.py | 1 - .../batch/v2alpha1/CronJobList.py | 1 - .../v1beta1/CertificateSigningRequest.py | 1 - .../v1beta1/CertificateSigningRequestList.py | 1 - .../coordination/v1/Lease.py | 1 - .../coordination/v1/LeaseList.py | 1 - .../coordination/v1beta1/Lease.py | 1 - .../coordination/v1beta1/LeaseList.py | 1 - .../pulumi_kubernetes/core/v1/Binding.py | 1 - .../core/v1/ComponentStatus.py | 1 - .../core/v1/ComponentStatusList.py | 1 - .../pulumi_kubernetes/core/v1/ConfigMap.py | 1 - .../core/v1/ConfigMapList.py | 1 - .../pulumi_kubernetes/core/v1/Endpoints.py | 1 - .../core/v1/EndpointsList.py | 1 - sdk/python/pulumi_kubernetes/core/v1/Event.py | 1 - .../pulumi_kubernetes/core/v1/EventList.py | 1 - .../pulumi_kubernetes/core/v1/LimitRange.py | 1 - .../core/v1/LimitRangeList.py | 1 - .../pulumi_kubernetes/core/v1/Namespace.py | 1 - .../core/v1/NamespaceList.py | 1 - sdk/python/pulumi_kubernetes/core/v1/Node.py | 1 - .../pulumi_kubernetes/core/v1/NodeList.py | 1 - .../core/v1/PersistentVolume.py | 1 - .../core/v1/PersistentVolumeClaim.py | 1 - .../core/v1/PersistentVolumeClaimList.py | 1 - .../core/v1/PersistentVolumeList.py | 1 - sdk/python/pulumi_kubernetes/core/v1/Pod.py | 1 - .../pulumi_kubernetes/core/v1/PodList.py | 1 - .../pulumi_kubernetes/core/v1/PodTemplate.py | 1 - .../core/v1/PodTemplateList.py | 1 - .../core/v1/ReplicationController.py | 1 - .../core/v1/ReplicationControllerList.py | 1 - .../core/v1/ResourceQuota.py | 1 - .../core/v1/ResourceQuotaList.py | 1 - .../pulumi_kubernetes/core/v1/Secret.py | 1 - .../pulumi_kubernetes/core/v1/SecretList.py | 1 - .../pulumi_kubernetes/core/v1/Service.py | 1 - .../core/v1/ServiceAccount.py | 1 - .../core/v1/ServiceAccountList.py | 1 - .../pulumi_kubernetes/core/v1/ServiceList.py | 1 - .../discovery/v1beta1/EndpointSlice.py | 1 - .../discovery/v1beta1/EndpointSliceList.py | 1 - .../pulumi_kubernetes/events/v1beta1/Event.py | 1 - .../events/v1beta1/EventList.py | 1 - .../extensions/v1beta1/DaemonSet.py | 1 - .../extensions/v1beta1/DaemonSetList.py | 1 - .../extensions/v1beta1/Deployment.py | 1 - .../extensions/v1beta1/DeploymentList.py | 1 - .../extensions/v1beta1/Ingress.py | 1 - .../extensions/v1beta1/IngressList.py | 1 - .../extensions/v1beta1/NetworkPolicy.py | 1 - .../extensions/v1beta1/NetworkPolicyList.py | 1 - .../extensions/v1beta1/PodSecurityPolicy.py | 1 - .../v1beta1/PodSecurityPolicyList.py | 1 - .../extensions/v1beta1/ReplicaSet.py | 1 - .../extensions/v1beta1/ReplicaSetList.py | 1 - .../flowcontrol/v1alpha1/FlowSchema.py | 1 - .../flowcontrol/v1alpha1/FlowSchemaList.py | 1 - .../v1alpha1/PriorityLevelConfiguration.py | 1 - .../PriorityLevelConfigurationList.py | 1 - .../pulumi_kubernetes/meta/v1/Status.py | 1 - .../networking/v1/NetworkPolicy.py | 1 - .../networking/v1/NetworkPolicyList.py | 1 - .../networking/v1beta1/Ingress.py | 1 - .../networking/v1beta1/IngressClass.py | 1 - .../networking/v1beta1/IngressClassList.py | 1 - .../networking/v1beta1/IngressList.py | 1 - .../node/v1alpha1/RuntimeClass.py | 1 - .../node/v1alpha1/RuntimeClassList.py | 1 - .../node/v1beta1/RuntimeClass.py | 1 - .../node/v1beta1/RuntimeClassList.py | 1 - .../policy/v1beta1/PodDisruptionBudget.py | 1 - .../policy/v1beta1/PodDisruptionBudgetList.py | 1 - .../policy/v1beta1/PodSecurityPolicy.py | 1 - .../policy/v1beta1/PodSecurityPolicyList.py | 1 - .../pulumi_kubernetes/rbac/v1/ClusterRole.py | 1 - .../rbac/v1/ClusterRoleBinding.py | 1 - .../rbac/v1/ClusterRoleBindingList.py | 1 - .../rbac/v1/ClusterRoleList.py | 1 - sdk/python/pulumi_kubernetes/rbac/v1/Role.py | 1 - .../pulumi_kubernetes/rbac/v1/RoleBinding.py | 1 - .../rbac/v1/RoleBindingList.py | 1 - .../pulumi_kubernetes/rbac/v1/RoleList.py | 1 - .../rbac/v1alpha1/ClusterRole.py | 1 - .../rbac/v1alpha1/ClusterRoleBinding.py | 1 - .../rbac/v1alpha1/ClusterRoleBindingList.py | 1 - .../rbac/v1alpha1/ClusterRoleList.py | 1 - .../pulumi_kubernetes/rbac/v1alpha1/Role.py | 1 - .../rbac/v1alpha1/RoleBinding.py | 1 - .../rbac/v1alpha1/RoleBindingList.py | 1 - .../rbac/v1alpha1/RoleList.py | 1 - .../rbac/v1beta1/ClusterRole.py | 1 - .../rbac/v1beta1/ClusterRoleBinding.py | 1 - .../rbac/v1beta1/ClusterRoleBindingList.py | 1 - .../rbac/v1beta1/ClusterRoleList.py | 1 - .../pulumi_kubernetes/rbac/v1beta1/Role.py | 1 - .../rbac/v1beta1/RoleBinding.py | 1 - .../rbac/v1beta1/RoleBindingList.py | 1 - .../rbac/v1beta1/RoleList.py | 1 - .../scheduling/v1/PriorityClass.py | 1 - .../scheduling/v1/PriorityClassList.py | 1 - .../scheduling/v1alpha1/PriorityClass.py | 1 - .../scheduling/v1alpha1/PriorityClassList.py | 1 - .../scheduling/v1beta1/PriorityClass.py | 1 - .../scheduling/v1beta1/PriorityClassList.py | 1 - .../settings/v1alpha1/PodPreset.py | 1 - .../settings/v1alpha1/PodPresetList.py | 1 - .../pulumi_kubernetes/storage/v1/CSIDriver.py | 1 - .../storage/v1/CSIDriverList.py | 1 - .../pulumi_kubernetes/storage/v1/CSINode.py | 1 - .../storage/v1/CSINodeList.py | 1 - .../storage/v1/StorageClass.py | 1 - .../storage/v1/StorageClassList.py | 1 - .../storage/v1/VolumeAttachment.py | 1 - .../storage/v1/VolumeAttachmentList.py | 1 - .../storage/v1alpha1/VolumeAttachment.py | 1 - .../storage/v1alpha1/VolumeAttachmentList.py | 1 - .../storage/v1beta1/CSIDriver.py | 1 - .../storage/v1beta1/CSIDriverList.py | 1 - .../storage/v1beta1/CSINode.py | 1 - .../storage/v1beta1/CSINodeList.py | 1 - .../storage/v1beta1/StorageClass.py | 1 - .../storage/v1beta1/StorageClassList.py | 1 - .../storage/v1beta1/VolumeAttachment.py | 1 - .../storage/v1beta1/VolumeAttachmentList.py | 1 - tests/go.mod | 2 +- tests/go.sum | 4 +- 196 files changed, 199 insertions(+), 369 deletions(-) diff --git a/provider/go.mod b/provider/go.mod index e59f1f0d25..4a5aaa7bfe 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -11,7 +11,7 @@ require ( github.com/imdario/mergo v0.3.8 github.com/mitchellh/go-wordwrap v1.0.0 github.com/pkg/errors v0.9.1 - github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624205318-fa3000801ecd + github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200625185157-b35a94cac625 github.com/pulumi/pulumi/sdk/v2 v2.4.0 github.com/stretchr/testify v1.6.1 google.golang.org/grpc v1.28.0 diff --git a/provider/go.sum b/provider/go.sum index 93eacfddb1..3994c9a3b4 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -450,8 +450,8 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624205318-fa3000801ecd h1:xA2aOtBCrrn0OF9XwXWv9gRWa+9nBI9t35ilf0Jf1vE= -github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624205318-fa3000801ecd/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= +github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200625185157-b35a94cac625 h1:XwQsR9LECyiq12eL4sbOHBnfgWp9nmy0d24Yee0O/1E= +github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200625185157-b35a94cac625/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= github.com/pulumi/pulumi/sdk/v2 v2.0.0/go.mod h1:W7k1UDYerc5o97mHnlHHp5iQZKEby+oQrQefWt+2RF4= github.com/pulumi/pulumi/sdk/v2 v2.4.0 h1:1ef6JbCWG3RWCKNpeeFBezzI6HBdMPpdeZQAd+IGKvw= github.com/pulumi/pulumi/sdk/v2 v2.4.0/go.mod h1:llk6tmXss8kJrt3vEXAkwiwgZOuINEFmKIfMveVIwO8= diff --git a/sdk/python/pulumi_kubernetes.egg-info/SOURCES.txt b/sdk/python/pulumi_kubernetes.egg-info/SOURCES.txt index 6d0ebe6a26..85abf35d37 100644 --- a/sdk/python/pulumi_kubernetes.egg-info/SOURCES.txt +++ b/sdk/python/pulumi_kubernetes.egg-info/SOURCES.txt @@ -4,7 +4,6 @@ pulumi_kubernetes/__init__.py pulumi_kubernetes/provider.py pulumi_kubernetes/tables.py pulumi_kubernetes/utilities.py -pulumi_kubernetes/version.py pulumi_kubernetes/yaml.py pulumi_kubernetes.egg-info/PKG-INFO pulumi_kubernetes.egg-info/SOURCES.txt @@ -13,267 +12,289 @@ pulumi_kubernetes.egg-info/not-zip-safe pulumi_kubernetes.egg-info/requires.txt pulumi_kubernetes.egg-info/top_level.txt pulumi_kubernetes/admissionregistration/__init__.py +pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py pulumi_kubernetes/admissionregistration/v1/__init__.py -pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration.py -pulumi_kubernetes/admissionregistration/v1/mutating_webhook_configuration_list.py -pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration.py -pulumi_kubernetes/admissionregistration/v1/validating_webhook_configuration_list.py +pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py pulumi_kubernetes/admissionregistration/v1beta1/__init__.py -pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration.py -pulumi_kubernetes/admissionregistration/v1beta1/mutating_webhook_configuration_list.py -pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration.py -pulumi_kubernetes/admissionregistration/v1beta1/validating_webhook_configuration_list.py +pulumi_kubernetes/apiextensions/CustomResource.py pulumi_kubernetes/apiextensions/__init__.py -pulumi_kubernetes/apiextensions/custom_resource.py +pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py pulumi_kubernetes/apiextensions/v1/__init__.py -pulumi_kubernetes/apiextensions/v1/custom_resource_definition.py -pulumi_kubernetes/apiextensions/v1/custom_resource_definition_list.py +pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py pulumi_kubernetes/apiextensions/v1beta1/__init__.py -pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition.py -pulumi_kubernetes/apiextensions/v1beta1/custom_resource_definition_list.py pulumi_kubernetes/apiregistration/__init__.py +pulumi_kubernetes/apiregistration/v1/APIService.py +pulumi_kubernetes/apiregistration/v1/APIServiceList.py pulumi_kubernetes/apiregistration/v1/__init__.py -pulumi_kubernetes/apiregistration/v1/api_service.py -pulumi_kubernetes/apiregistration/v1/api_service_list.py +pulumi_kubernetes/apiregistration/v1beta1/APIService.py +pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py pulumi_kubernetes/apiregistration/v1beta1/__init__.py -pulumi_kubernetes/apiregistration/v1beta1/api_service.py -pulumi_kubernetes/apiregistration/v1beta1/api_service_list.py pulumi_kubernetes/apps/__init__.py +pulumi_kubernetes/apps/v1/ControllerRevision.py +pulumi_kubernetes/apps/v1/ControllerRevisionList.py +pulumi_kubernetes/apps/v1/DaemonSet.py +pulumi_kubernetes/apps/v1/DaemonSetList.py +pulumi_kubernetes/apps/v1/Deployment.py +pulumi_kubernetes/apps/v1/DeploymentList.py +pulumi_kubernetes/apps/v1/ReplicaSet.py +pulumi_kubernetes/apps/v1/ReplicaSetList.py +pulumi_kubernetes/apps/v1/StatefulSet.py +pulumi_kubernetes/apps/v1/StatefulSetList.py pulumi_kubernetes/apps/v1/__init__.py -pulumi_kubernetes/apps/v1/controller_revision.py -pulumi_kubernetes/apps/v1/controller_revision_list.py -pulumi_kubernetes/apps/v1/daemon_set.py -pulumi_kubernetes/apps/v1/daemon_set_list.py pulumi_kubernetes/apps/v1/deployment.py -pulumi_kubernetes/apps/v1/deployment_list.py -pulumi_kubernetes/apps/v1/replica_set.py -pulumi_kubernetes/apps/v1/replica_set_list.py -pulumi_kubernetes/apps/v1/stateful_set.py -pulumi_kubernetes/apps/v1/stateful_set_list.py +pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +pulumi_kubernetes/apps/v1beta1/Deployment.py +pulumi_kubernetes/apps/v1beta1/DeploymentList.py +pulumi_kubernetes/apps/v1beta1/StatefulSet.py +pulumi_kubernetes/apps/v1beta1/StatefulSetList.py pulumi_kubernetes/apps/v1beta1/__init__.py -pulumi_kubernetes/apps/v1beta1/controller_revision.py -pulumi_kubernetes/apps/v1beta1/controller_revision_list.py pulumi_kubernetes/apps/v1beta1/deployment.py -pulumi_kubernetes/apps/v1beta1/deployment_list.py -pulumi_kubernetes/apps/v1beta1/stateful_set.py -pulumi_kubernetes/apps/v1beta1/stateful_set_list.py +pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +pulumi_kubernetes/apps/v1beta2/DaemonSet.py +pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +pulumi_kubernetes/apps/v1beta2/Deployment.py +pulumi_kubernetes/apps/v1beta2/DeploymentList.py +pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +pulumi_kubernetes/apps/v1beta2/StatefulSet.py +pulumi_kubernetes/apps/v1beta2/StatefulSetList.py pulumi_kubernetes/apps/v1beta2/__init__.py -pulumi_kubernetes/apps/v1beta2/controller_revision.py -pulumi_kubernetes/apps/v1beta2/controller_revision_list.py -pulumi_kubernetes/apps/v1beta2/daemon_set.py -pulumi_kubernetes/apps/v1beta2/daemon_set_list.py pulumi_kubernetes/apps/v1beta2/deployment.py -pulumi_kubernetes/apps/v1beta2/deployment_list.py -pulumi_kubernetes/apps/v1beta2/replica_set.py -pulumi_kubernetes/apps/v1beta2/replica_set_list.py -pulumi_kubernetes/apps/v1beta2/stateful_set.py -pulumi_kubernetes/apps/v1beta2/stateful_set_list.py pulumi_kubernetes/auditregistration/__init__.py +pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py pulumi_kubernetes/auditregistration/v1alpha1/__init__.py -pulumi_kubernetes/auditregistration/v1alpha1/audit_sink.py -pulumi_kubernetes/auditregistration/v1alpha1/audit_sink_list.py pulumi_kubernetes/authentication/__init__.py +pulumi_kubernetes/authentication/v1/TokenRequest.py +pulumi_kubernetes/authentication/v1/TokenReview.py pulumi_kubernetes/authentication/v1/__init__.py -pulumi_kubernetes/authentication/v1/token_request.py -pulumi_kubernetes/authentication/v1/token_review.py +pulumi_kubernetes/authentication/v1beta1/TokenReview.py pulumi_kubernetes/authentication/v1beta1/__init__.py -pulumi_kubernetes/authentication/v1beta1/token_review.py pulumi_kubernetes/authorization/__init__.py +pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py +pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py +pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py +pulumi_kubernetes/authorization/v1/SubjectAccessReview.py pulumi_kubernetes/authorization/v1/__init__.py -pulumi_kubernetes/authorization/v1/local_subject_access_review.py -pulumi_kubernetes/authorization/v1/self_subject_access_review.py -pulumi_kubernetes/authorization/v1/self_subject_rules_review.py -pulumi_kubernetes/authorization/v1/subject_access_review.py +pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py +pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py +pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py +pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py pulumi_kubernetes/authorization/v1beta1/__init__.py -pulumi_kubernetes/authorization/v1beta1/local_subject_access_review.py -pulumi_kubernetes/authorization/v1beta1/self_subject_access_review.py -pulumi_kubernetes/authorization/v1beta1/self_subject_rules_review.py -pulumi_kubernetes/authorization/v1beta1/subject_access_review.py pulumi_kubernetes/autoscaling/__init__.py +pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py pulumi_kubernetes/autoscaling/v1/__init__.py -pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler.py -pulumi_kubernetes/autoscaling/v1/horizontal_pod_autoscaler_list.py +pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py pulumi_kubernetes/autoscaling/v2beta1/__init__.py -pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler.py -pulumi_kubernetes/autoscaling/v2beta1/horizontal_pod_autoscaler_list.py +pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py pulumi_kubernetes/autoscaling/v2beta2/__init__.py -pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler.py -pulumi_kubernetes/autoscaling/v2beta2/horizontal_pod_autoscaler_list.py pulumi_kubernetes/batch/__init__.py +pulumi_kubernetes/batch/v1/Job.py +pulumi_kubernetes/batch/v1/JobList.py pulumi_kubernetes/batch/v1/__init__.py pulumi_kubernetes/batch/v1/job.py -pulumi_kubernetes/batch/v1/job_list.py +pulumi_kubernetes/batch/v1beta1/CronJob.py +pulumi_kubernetes/batch/v1beta1/CronJobList.py pulumi_kubernetes/batch/v1beta1/__init__.py -pulumi_kubernetes/batch/v1beta1/cron_job.py -pulumi_kubernetes/batch/v1beta1/cron_job_list.py +pulumi_kubernetes/batch/v2alpha1/CronJob.py +pulumi_kubernetes/batch/v2alpha1/CronJobList.py pulumi_kubernetes/batch/v2alpha1/__init__.py -pulumi_kubernetes/batch/v2alpha1/cron_job.py -pulumi_kubernetes/batch/v2alpha1/cron_job_list.py pulumi_kubernetes/certificates/__init__.py +pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py pulumi_kubernetes/certificates/v1beta1/__init__.py -pulumi_kubernetes/certificates/v1beta1/certificate_signing_request.py -pulumi_kubernetes/certificates/v1beta1/certificate_signing_request_list.py pulumi_kubernetes/coordination/__init__.py +pulumi_kubernetes/coordination/v1/Lease.py +pulumi_kubernetes/coordination/v1/LeaseList.py pulumi_kubernetes/coordination/v1/__init__.py pulumi_kubernetes/coordination/v1/lease.py -pulumi_kubernetes/coordination/v1/lease_list.py +pulumi_kubernetes/coordination/v1beta1/Lease.py +pulumi_kubernetes/coordination/v1beta1/LeaseList.py pulumi_kubernetes/coordination/v1beta1/__init__.py pulumi_kubernetes/coordination/v1beta1/lease.py -pulumi_kubernetes/coordination/v1beta1/lease_list.py pulumi_kubernetes/core/__init__.py +pulumi_kubernetes/core/v1/Binding.py +pulumi_kubernetes/core/v1/ComponentStatus.py +pulumi_kubernetes/core/v1/ComponentStatusList.py +pulumi_kubernetes/core/v1/ConfigMap.py +pulumi_kubernetes/core/v1/ConfigMapList.py +pulumi_kubernetes/core/v1/Endpoints.py +pulumi_kubernetes/core/v1/EndpointsList.py +pulumi_kubernetes/core/v1/Event.py +pulumi_kubernetes/core/v1/EventList.py +pulumi_kubernetes/core/v1/LimitRange.py +pulumi_kubernetes/core/v1/LimitRangeList.py +pulumi_kubernetes/core/v1/Namespace.py +pulumi_kubernetes/core/v1/NamespaceList.py +pulumi_kubernetes/core/v1/Node.py +pulumi_kubernetes/core/v1/NodeList.py +pulumi_kubernetes/core/v1/PersistentVolume.py +pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +pulumi_kubernetes/core/v1/PersistentVolumeList.py +pulumi_kubernetes/core/v1/Pod.py +pulumi_kubernetes/core/v1/PodList.py +pulumi_kubernetes/core/v1/PodTemplate.py +pulumi_kubernetes/core/v1/PodTemplateList.py +pulumi_kubernetes/core/v1/ReplicationController.py +pulumi_kubernetes/core/v1/ReplicationControllerList.py +pulumi_kubernetes/core/v1/ResourceQuota.py +pulumi_kubernetes/core/v1/ResourceQuotaList.py +pulumi_kubernetes/core/v1/Secret.py +pulumi_kubernetes/core/v1/SecretList.py +pulumi_kubernetes/core/v1/Service.py +pulumi_kubernetes/core/v1/ServiceAccount.py +pulumi_kubernetes/core/v1/ServiceAccountList.py +pulumi_kubernetes/core/v1/ServiceList.py pulumi_kubernetes/core/v1/__init__.py pulumi_kubernetes/core/v1/binding.py -pulumi_kubernetes/core/v1/component_status.py -pulumi_kubernetes/core/v1/component_status_list.py -pulumi_kubernetes/core/v1/config_map.py -pulumi_kubernetes/core/v1/config_map_list.py pulumi_kubernetes/core/v1/endpoints.py -pulumi_kubernetes/core/v1/endpoints_list.py pulumi_kubernetes/core/v1/event.py -pulumi_kubernetes/core/v1/event_list.py -pulumi_kubernetes/core/v1/limit_range.py -pulumi_kubernetes/core/v1/limit_range_list.py pulumi_kubernetes/core/v1/namespace.py -pulumi_kubernetes/core/v1/namespace_list.py pulumi_kubernetes/core/v1/node.py -pulumi_kubernetes/core/v1/node_list.py -pulumi_kubernetes/core/v1/persistent_volume.py -pulumi_kubernetes/core/v1/persistent_volume_claim.py -pulumi_kubernetes/core/v1/persistent_volume_claim_list.py -pulumi_kubernetes/core/v1/persistent_volume_list.py pulumi_kubernetes/core/v1/pod.py -pulumi_kubernetes/core/v1/pod_list.py -pulumi_kubernetes/core/v1/pod_template.py -pulumi_kubernetes/core/v1/pod_template_list.py -pulumi_kubernetes/core/v1/replication_controller.py -pulumi_kubernetes/core/v1/replication_controller_list.py -pulumi_kubernetes/core/v1/resource_quota.py -pulumi_kubernetes/core/v1/resource_quota_list.py pulumi_kubernetes/core/v1/secret.py -pulumi_kubernetes/core/v1/secret_list.py pulumi_kubernetes/core/v1/service.py -pulumi_kubernetes/core/v1/service_account.py -pulumi_kubernetes/core/v1/service_account_list.py -pulumi_kubernetes/core/v1/service_list.py pulumi_kubernetes/discovery/__init__.py +pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py pulumi_kubernetes/discovery/v1beta1/__init__.py -pulumi_kubernetes/discovery/v1beta1/endpoint_slice.py -pulumi_kubernetes/discovery/v1beta1/endpoint_slice_list.py pulumi_kubernetes/events/__init__.py +pulumi_kubernetes/events/v1beta1/Event.py +pulumi_kubernetes/events/v1beta1/EventList.py pulumi_kubernetes/events/v1beta1/__init__.py pulumi_kubernetes/events/v1beta1/event.py -pulumi_kubernetes/events/v1beta1/event_list.py pulumi_kubernetes/extensions/__init__.py +pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +pulumi_kubernetes/extensions/v1beta1/Deployment.py +pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +pulumi_kubernetes/extensions/v1beta1/Ingress.py +pulumi_kubernetes/extensions/v1beta1/IngressList.py +pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py pulumi_kubernetes/extensions/v1beta1/__init__.py -pulumi_kubernetes/extensions/v1beta1/daemon_set.py -pulumi_kubernetes/extensions/v1beta1/daemon_set_list.py pulumi_kubernetes/extensions/v1beta1/deployment.py -pulumi_kubernetes/extensions/v1beta1/deployment_list.py pulumi_kubernetes/extensions/v1beta1/ingress.py -pulumi_kubernetes/extensions/v1beta1/ingress_list.py -pulumi_kubernetes/extensions/v1beta1/network_policy.py -pulumi_kubernetes/extensions/v1beta1/network_policy_list.py -pulumi_kubernetes/extensions/v1beta1/pod_security_policy.py -pulumi_kubernetes/extensions/v1beta1/pod_security_policy_list.py -pulumi_kubernetes/extensions/v1beta1/replica_set.py -pulumi_kubernetes/extensions/v1beta1/replica_set_list.py pulumi_kubernetes/flowcontrol/__init__.py +pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py -pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema.py -pulumi_kubernetes/flowcontrol/v1alpha1/flow_schema_list.py -pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration.py -pulumi_kubernetes/flowcontrol/v1alpha1/priority_level_configuration_list.py pulumi_kubernetes/helm/__init__.py pulumi_kubernetes/helm/v2/__init__.py pulumi_kubernetes/helm/v2/helm.py pulumi_kubernetes/helm/v3/__init__.py pulumi_kubernetes/helm/v3/helm.py pulumi_kubernetes/meta/__init__.py +pulumi_kubernetes/meta/v1/Status.py pulumi_kubernetes/meta/v1/__init__.py pulumi_kubernetes/meta/v1/status.py pulumi_kubernetes/networking/__init__.py +pulumi_kubernetes/networking/v1/NetworkPolicy.py +pulumi_kubernetes/networking/v1/NetworkPolicyList.py pulumi_kubernetes/networking/v1/__init__.py -pulumi_kubernetes/networking/v1/network_policy.py -pulumi_kubernetes/networking/v1/network_policy_list.py +pulumi_kubernetes/networking/v1beta1/Ingress.py +pulumi_kubernetes/networking/v1beta1/IngressClass.py +pulumi_kubernetes/networking/v1beta1/IngressClassList.py +pulumi_kubernetes/networking/v1beta1/IngressList.py pulumi_kubernetes/networking/v1beta1/__init__.py pulumi_kubernetes/networking/v1beta1/ingress.py -pulumi_kubernetes/networking/v1beta1/ingress_class.py -pulumi_kubernetes/networking/v1beta1/ingress_class_list.py -pulumi_kubernetes/networking/v1beta1/ingress_list.py pulumi_kubernetes/node/__init__.py +pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py pulumi_kubernetes/node/v1alpha1/__init__.py -pulumi_kubernetes/node/v1alpha1/runtime_class.py -pulumi_kubernetes/node/v1alpha1/runtime_class_list.py +pulumi_kubernetes/node/v1beta1/RuntimeClass.py +pulumi_kubernetes/node/v1beta1/RuntimeClassList.py pulumi_kubernetes/node/v1beta1/__init__.py -pulumi_kubernetes/node/v1beta1/runtime_class.py -pulumi_kubernetes/node/v1beta1/runtime_class_list.py pulumi_kubernetes/policy/__init__.py +pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py pulumi_kubernetes/policy/v1beta1/__init__.py -pulumi_kubernetes/policy/v1beta1/pod_disruption_budget.py -pulumi_kubernetes/policy/v1beta1/pod_disruption_budget_list.py -pulumi_kubernetes/policy/v1beta1/pod_security_policy.py -pulumi_kubernetes/policy/v1beta1/pod_security_policy_list.py pulumi_kubernetes/rbac/__init__.py +pulumi_kubernetes/rbac/v1/ClusterRole.py +pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +pulumi_kubernetes/rbac/v1/ClusterRoleList.py +pulumi_kubernetes/rbac/v1/Role.py +pulumi_kubernetes/rbac/v1/RoleBinding.py +pulumi_kubernetes/rbac/v1/RoleBindingList.py +pulumi_kubernetes/rbac/v1/RoleList.py pulumi_kubernetes/rbac/v1/__init__.py -pulumi_kubernetes/rbac/v1/cluster_role.py -pulumi_kubernetes/rbac/v1/cluster_role_binding.py -pulumi_kubernetes/rbac/v1/cluster_role_binding_list.py -pulumi_kubernetes/rbac/v1/cluster_role_list.py pulumi_kubernetes/rbac/v1/role.py -pulumi_kubernetes/rbac/v1/role_binding.py -pulumi_kubernetes/rbac/v1/role_binding_list.py -pulumi_kubernetes/rbac/v1/role_list.py +pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +pulumi_kubernetes/rbac/v1alpha1/Role.py +pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +pulumi_kubernetes/rbac/v1alpha1/RoleList.py pulumi_kubernetes/rbac/v1alpha1/__init__.py -pulumi_kubernetes/rbac/v1alpha1/cluster_role.py -pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding.py -pulumi_kubernetes/rbac/v1alpha1/cluster_role_binding_list.py -pulumi_kubernetes/rbac/v1alpha1/cluster_role_list.py pulumi_kubernetes/rbac/v1alpha1/role.py -pulumi_kubernetes/rbac/v1alpha1/role_binding.py -pulumi_kubernetes/rbac/v1alpha1/role_binding_list.py -pulumi_kubernetes/rbac/v1alpha1/role_list.py +pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +pulumi_kubernetes/rbac/v1beta1/Role.py +pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +pulumi_kubernetes/rbac/v1beta1/RoleList.py pulumi_kubernetes/rbac/v1beta1/__init__.py -pulumi_kubernetes/rbac/v1beta1/cluster_role.py -pulumi_kubernetes/rbac/v1beta1/cluster_role_binding.py -pulumi_kubernetes/rbac/v1beta1/cluster_role_binding_list.py -pulumi_kubernetes/rbac/v1beta1/cluster_role_list.py pulumi_kubernetes/rbac/v1beta1/role.py -pulumi_kubernetes/rbac/v1beta1/role_binding.py -pulumi_kubernetes/rbac/v1beta1/role_binding_list.py -pulumi_kubernetes/rbac/v1beta1/role_list.py pulumi_kubernetes/scheduling/__init__.py +pulumi_kubernetes/scheduling/v1/PriorityClass.py +pulumi_kubernetes/scheduling/v1/PriorityClassList.py pulumi_kubernetes/scheduling/v1/__init__.py -pulumi_kubernetes/scheduling/v1/priority_class.py -pulumi_kubernetes/scheduling/v1/priority_class_list.py +pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py pulumi_kubernetes/scheduling/v1alpha1/__init__.py -pulumi_kubernetes/scheduling/v1alpha1/priority_class.py -pulumi_kubernetes/scheduling/v1alpha1/priority_class_list.py +pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py pulumi_kubernetes/scheduling/v1beta1/__init__.py -pulumi_kubernetes/scheduling/v1beta1/priority_class.py -pulumi_kubernetes/scheduling/v1beta1/priority_class_list.py pulumi_kubernetes/settings/__init__.py +pulumi_kubernetes/settings/v1alpha1/PodPreset.py +pulumi_kubernetes/settings/v1alpha1/PodPresetList.py pulumi_kubernetes/settings/v1alpha1/__init__.py -pulumi_kubernetes/settings/v1alpha1/pod_preset.py -pulumi_kubernetes/settings/v1alpha1/pod_preset_list.py pulumi_kubernetes/storage/__init__.py +pulumi_kubernetes/storage/v1/CSIDriver.py +pulumi_kubernetes/storage/v1/CSIDriverList.py +pulumi_kubernetes/storage/v1/CSINode.py +pulumi_kubernetes/storage/v1/CSINodeList.py +pulumi_kubernetes/storage/v1/StorageClass.py +pulumi_kubernetes/storage/v1/StorageClassList.py +pulumi_kubernetes/storage/v1/VolumeAttachment.py +pulumi_kubernetes/storage/v1/VolumeAttachmentList.py pulumi_kubernetes/storage/v1/__init__.py -pulumi_kubernetes/storage/v1/csi_driver.py -pulumi_kubernetes/storage/v1/csi_driver_list.py -pulumi_kubernetes/storage/v1/csi_node.py -pulumi_kubernetes/storage/v1/csi_node_list.py -pulumi_kubernetes/storage/v1/storage_class.py -pulumi_kubernetes/storage/v1/storage_class_list.py -pulumi_kubernetes/storage/v1/volume_attachment.py -pulumi_kubernetes/storage/v1/volume_attachment_list.py +pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py pulumi_kubernetes/storage/v1alpha1/__init__.py -pulumi_kubernetes/storage/v1alpha1/volume_attachment.py -pulumi_kubernetes/storage/v1alpha1/volume_attachment_list.py -pulumi_kubernetes/storage/v1beta1/__init__.py -pulumi_kubernetes/storage/v1beta1/csi_driver.py -pulumi_kubernetes/storage/v1beta1/csi_driver_list.py -pulumi_kubernetes/storage/v1beta1/csi_node.py -pulumi_kubernetes/storage/v1beta1/csi_node_list.py -pulumi_kubernetes/storage/v1beta1/storage_class.py -pulumi_kubernetes/storage/v1beta1/storage_class_list.py -pulumi_kubernetes/storage/v1beta1/volume_attachment.py -pulumi_kubernetes/storage/v1beta1/volume_attachment_list.py \ No newline at end of file +pulumi_kubernetes/storage/v1beta1/CSIDriver.py +pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +pulumi_kubernetes/storage/v1beta1/CSINode.py +pulumi_kubernetes/storage/v1beta1/CSINodeList.py +pulumi_kubernetes/storage/v1beta1/StorageClass.py +pulumi_kubernetes/storage/v1beta1/StorageClassList.py +pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +pulumi_kubernetes/storage/v1beta1/__init__.py \ No newline at end of file diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py index 8ba28082b8..0a21ce6191 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py index 4081595777..0072497af1 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py index 87349534db..110392e17a 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py index e3060a06ee..112188e31c 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py index dabe074309..5771529ded 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py index 8949b4e97b..81128a2d37 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py index c7ff332e08..a75b6d984b 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py index 08fc93af4c..031a315846 100644 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py index 86d81d6137..faf5ca05ab 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py index b3c83c5596..289bea2855 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py index a80a815f7c..fbd38b6f93 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py index b000c8303e..d37dd4f14a 100644 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py index 587a280804..716f0b9be7 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py index 71d1536a59..136c42e026 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py index 30b7c0ea6e..35ff994898 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py index 08bb9e015f..a3926485fa 100644 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py index d4c0e721c6..efe64727c8 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py index b3e722999f..8a2bcf6cbe 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py index 9d5a67f8d3..362bbec654 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py index d9f76c709a..6be4cce517 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py index f0452ee490..2d11175df4 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py index 0bbfba12ca..59c13e6b47 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py index 4eefa1b616..fdb4199ba6 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py index b5dca41ff3..6205bf1510 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py index 3abe821688..254ce0eb3b 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py index b8c6122fc9..8bc75f1dde 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py index 3d157d5f4c..17aec2ad4c 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py index 31690b322d..3c4daaf4d1 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py index ddd6ab78ac..0597bc6a46 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py index 1220942044..2b1ce4b864 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py index effe9c04e4..ec20c889ff 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py index f42e8c8fae..5981d236ea 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py index 207c85e9d5..656cca6422 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py index fa39dea2f8..b212283e60 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py index 23fa382a48..3ffa4b2c3e 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py index a365422731..f79d6279e2 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py index a663c47fd0..d4d0a5f3c3 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py index 0150556744..f73122749e 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py index 0e6b878b5b..ff72c91865 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py index 75e2b86140..9c7b6cd9a1 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py index 9bee56bddd..e33f35402d 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py index 3329a4e28b..557e85bb81 100644 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py index dbaea019d9..90429a0a76 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py index 935722c2e2..5194f07321 100644 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py index a9f8f84a88..b5a4fbe070 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/TokenRequest.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py index 264dfba630..7bcbf4fe1c 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py index 2d82b013cd..586a9f0aad 100644 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py index 3d4723fe2c..82b4e53148 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py index b9cd5606e1..e2802bc292 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py index 3cbd4ba4d7..d86a53c307 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py index 86f7e14e98..db2befa771 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py index 50f0413ae8..dbf7d8bb91 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py index 3bd29d571d..d5e4a6db74 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py index 1c7cd584bd..1142a3a13d 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py index e0fe3789c8..a70afcfea0 100644 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py index bcce7eacb7..d30ffc544a 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py index f5283e326a..3aa18fc18d 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py index 4eb6d83829..e858c6f37a 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py index 5c28643f1f..4b5212796b 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py index bcca76ef69..c394b18ab8 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py index a6c8886421..5b2a63dfee 100644 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/batch/v1/Job.py b/sdk/python/pulumi_kubernetes/batch/v1/Job.py index 06faa018be..96c48cf565 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/Job.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/Job.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py index 727a52dcb8..9b21ef7350 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py index 560bc05f33..6796eac107 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py index d39d51c84a..2ad3dab18b 100644 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py index e91410c8bc..b014263e3a 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py index 4dcd89c96f..863db82b01 100644 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py index af00135f1d..bf6312376b 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py index 976a246d52..0072c0a5d4 100644 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py index d92d7af57d..02c0fe88f2 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py index e7697e0dab..4ef845093f 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py index a2d253324f..67d3855ea4 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py index d02f7cc3a5..275a890de6 100644 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/Binding.py b/sdk/python/pulumi_kubernetes/core/v1/Binding.py index 90726387e7..ef9f305414 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Binding.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Binding.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py index be39a3eb1d..dafc515a34 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py index dec69727ac..7fd227c5bc 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py index bfc50183c5..118b7b1727 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py index d0bc175c36..21d976943f 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py b/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py index e532563151..f415ba3097 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py index 308e8b5d31..4d354d2838 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/Event.py b/sdk/python/pulumi_kubernetes/core/v1/Event.py index 501ec25ee9..ff028e8316 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Event.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Event.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/EventList.py b/sdk/python/pulumi_kubernetes/core/v1/EventList.py index 521bd02bd6..2644305540 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/EventList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/EventList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py index 6b18ebb708..bd08b95ecf 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py +++ b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py index 60d56a6f8e..71d84a608b 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/Namespace.py b/sdk/python/pulumi_kubernetes/core/v1/Namespace.py index 427732cbc2..5cf1001a2a 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Namespace.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Namespace.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py index 6c609129ed..c2c2e15ac1 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/Node.py b/sdk/python/pulumi_kubernetes/core/v1/Node.py index 24cf106a83..88faa833fc 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Node.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Node.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py index 82de885baf..ffa7be3ce7 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py index a276f61d06..6bdf5abce7 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py index 005ea03fed..d4af36b978 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py index 8fa688edf7..541d1c0f8d 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py index ce780121fe..a5da4cf008 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/Pod.py b/sdk/python/pulumi_kubernetes/core/v1/Pod.py index e368f68488..e1616faade 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Pod.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Pod.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodList.py b/sdk/python/pulumi_kubernetes/core/v1/PodList.py index 8e318be7e0..4e75d2f94b 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py index 0984849455..33d4726ceb 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py index c0b5c846d2..dcb38a4192 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py index 94b6514311..92f77c1fb9 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py index 92bb1cfa1c..580569f4df 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py index fdfb247e7c..8b97882213 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py index b8b99f9d3e..1ee2c29d54 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/Secret.py b/sdk/python/pulumi_kubernetes/core/v1/Secret.py index 4b4a4ac4e4..4a747a6b6c 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Secret.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Secret.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py index 83c3aa5ab9..fa192c6e6d 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/Service.py b/sdk/python/pulumi_kubernetes/core/v1/Service.py index 226c2866d9..ac9d691755 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/Service.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Service.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py index 2da5b8e295..b1eb8e2267 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py index 231fe5d5d0..b1557072d2 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py index 9baee4e255..7f0b032511 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py index 28835b5783..ad5fdf4830 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py index 5ac8b3199e..4e2176abc6 100644 --- a/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +++ b/sdk/python/pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py b/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py index 8f24ac379c..dcba302eec 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py index ae8e33a427..71c5180e9b 100644 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py index ad81258f24..62420e20d5 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py index f9a2e6a8cc..08af6e39e6 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py index 36cbec5eb3..120b15a7b6 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py index 8fb637d3dc..34102be017 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py index c5989f9372..ee2faf7ec6 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py index 6f322702ab..509853facd 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py index b496c2894f..fd0e95bc7f 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py index 7e8745ac94..3eed1dcd94 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py index f9ed6228b9..6a3402ece8 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py index 769821dbeb..90281703e6 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py index 3c8288a491..83079ad73d 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py index afb2d6bbad..ddaec70a90 100644 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py index e322500ee7..b683346445 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py index 8a75a02248..1d017d9756 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py index 5aa86462f7..dfc19fddbc 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py index 03e73ecf6b..3bab50e594 100644 --- a/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/meta/v1/Status.py b/sdk/python/pulumi_kubernetes/meta/v1/Status.py index b8b3ec0cf2..afe2827fd3 100644 --- a/sdk/python/pulumi_kubernetes/meta/v1/Status.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/Status.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py index 4ebd5da677..50d35ca8e6 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py index 1e4be0abd4..860942c0f4 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py index 2ec17e184b..181f5eb893 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py index 479d141713..09c2b21817 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClass.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py index 7b3176da96..03fa062e63 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressClassList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py index f996912fd5..e63a456a60 100644 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py index 1b2b3a52ab..88a7ff0c61 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py index 00302265a2..1012ef57d9 100644 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py index 8ccb8d94b7..eaba89bca0 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py index 4403da6a6d..c14f2fc53b 100644 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py index 462c81f765..1918ce96ee 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py index 3a06311796..7ad96f7ec3 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py index 7aec18b162..6c1d6271ad 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py index 3b8749e3df..0153a7062e 100644 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py index 2d0e742d3f..c0e1b3e6d8 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py index 16e9d9ec8c..70242891ca 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py index ce9c7b5b04..a785379d6e 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py index cb44f6e954..9de4aef183 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1/Role.py index 22eca3ae77..fe514a3aca 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/Role.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py index 2ef3a11f1e..09d3a88802 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py index e80dcdc73e..9c524b2392 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py index 782d383d55..306c683472 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py index d6fcdc86a0..e132fa1e15 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py index 4559f9a01b..48fc331135 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py index d70c89578a..bf0d210d63 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py index 1e062467a8..2f5897aaad 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py index 4267f21831..bb93c4f58a 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py index 0db54ce08e..204681f3d5 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py index 5ef646170f..e8660c0e4b 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py index b7edcc10b8..28ef65100e 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py index 6cc4ab3734..cb4b42e4a2 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py index f11be2fbac..96db4363bc 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py index 34dc66aaba..5c55360092 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py index 2471d985a5..7b7843a04e 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py index a60355a204..7a69d6a720 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py index 02ead8d445..864d3cfeb4 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py index 4d667fb22b..ff39aa84b0 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py index 430ec71d28..f946fd3548 100644 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py index 70b01be4af..2851b3354c 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py index e092668fd4..790b690d2c 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py index 963366ab54..f7d9493758 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py index 0724f2b85d..c955417daf 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py index 3ed23631ed..646f4fa4e8 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py index f8ce6cf840..fdfdcbd3a8 100644 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py index 2a159a0399..4be13ef065 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py index 0c3361815b..f50790a432 100644 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py index 8b27bd047b..b30290cec1 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriver.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py index 42d8f4b5d7..1120a702f4 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSIDriverList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py index 20b513cd6a..f917519ca2 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSINode.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py index 128a51955f..28cd68509a 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/CSINodeList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py index 87986f28a9..271ad33ab9 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py index acd2729045..7f86e042f1 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py index 9f4a2d000f..7e4bfd46dc 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py index 977a95b40d..74b7f59fe3 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py index 6b9f74bae4..a139916781 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py index 3d24e2ad84..3ee7e4c005 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py index e5b1537b57..060e5383e4 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py index e7496f14fb..379e5471c9 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py index fdc0f3f2f2..d9fcadb533 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py index 6ca17bdaa8..56a9f96c17 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py index 1af2f64808..1f799fbf61 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py index af772a5d57..1531c4a8f7 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py index 66efb6ac36..e5723afc0a 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py index 34c9f71159..8c1fab4315 100644 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py @@ -2,7 +2,6 @@ # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** -import json import warnings import pulumi import pulumi.runtime diff --git a/tests/go.mod b/tests/go.mod index 13a2b85385..af616d1535 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -11,7 +11,7 @@ replace ( require ( github.com/pulumi/pulumi-kubernetes/provider/v2 v2.0.0-00010101000000-000000000000 github.com/pulumi/pulumi-kubernetes/sdk/v2 v2.0.0 - github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624205318-fa3000801ecd + github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200625185157-b35a94cac625 github.com/pulumi/pulumi/sdk/v2 v2.4.0 github.com/stretchr/testify v1.6.1 ) diff --git a/tests/go.sum b/tests/go.sum index d54caaa5c0..bb8a5086e8 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -498,8 +498,8 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624205318-fa3000801ecd h1:xA2aOtBCrrn0OF9XwXWv9gRWa+9nBI9t35ilf0Jf1vE= -github.com/pulumi/pulumi/pkg/v2 v2.4.1-0.20200624205318-fa3000801ecd/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= +github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200625185157-b35a94cac625 h1:XwQsR9LECyiq12eL4sbOHBnfgWp9nmy0d24Yee0O/1E= +github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200625185157-b35a94cac625/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= github.com/pulumi/pulumi/sdk/v2 v2.0.0 h1:3VMXbEo3bqeaU+YDt8ufVBLD0WhLYE3tG3t/nIZ3Iac= github.com/pulumi/pulumi/sdk/v2 v2.0.0/go.mod h1:W7k1UDYerc5o97mHnlHHp5iQZKEby+oQrQefWt+2RF4= github.com/pulumi/pulumi/sdk/v2 v2.2.2-0.20200514204320-e677c7d6dca3 h1:uCVadlcmLexcm6WHJv1EFB3E9PKqWQt/+zVuNC+WpjM= From 0a20202e49b802c74abf8555e7c9c0480904310e Mon Sep 17 00:00:00 2001 From: komal Date: Thu, 25 Jun 2020 12:24:49 -0700 Subject: [PATCH 24/25] Update tables.py --- sdk/python/pulumi_kubernetes/tables.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sdk/python/pulumi_kubernetes/tables.py b/sdk/python/pulumi_kubernetes/tables.py index 634022cc4b..0cf06c0b0e 100644 --- a/sdk/python/pulumi_kubernetes/tables.py +++ b/sdk/python/pulumi_kubernetes/tables.py @@ -75,7 +75,6 @@ "container_port": "containerPort", "container_runtime_version": "containerRuntimeVersion", "container_statuses": "containerStatuses", - "continue_": "continue", "controller_expand_secret_ref": "controllerExpandSecretRef", "controller_publish_secret_ref": "controllerPublishSecretRef", "conversion_review_versions": "conversionReviewVersions", @@ -128,10 +127,8 @@ "ephemeral_containers": "ephemeralContainers", "evaluation_error": "evaluationError", "event_time": "eventTime", - "except_": "except", "exclusive_maximum": "exclusiveMaximum", "exclusive_minimum": "exclusiveMinimum", - "exec_": "exec", "exit_code": "exitCode", "expected_pods": "expectedPods", "expiration_seconds": "expirationSeconds", @@ -152,7 +149,6 @@ "first_timestamp": "firstTimestamp", "flex_volume": "flexVolume", "forbidden_sysctls": "forbiddenSysctls", - "from_": "from", "fs_group": "fsGroup", "fs_group_change_policy": "fsGroupChangePolicy", "fs_type": "fsType", @@ -267,7 +263,6 @@ "non_resource_attributes": "nonResourceAttributes", "non_resource_rules": "nonResourceRules", "non_resource_ur_ls": "nonResourceURLs", - "not_": "not", "not_ready_addresses": "notReadyAddresses", "number_available": "numberAvailable", "number_misscheduled": "numberMisscheduled", @@ -535,7 +530,6 @@ "containerPort": "container_port", "containerRuntimeVersion": "container_runtime_version", "containerStatuses": "container_statuses", - "continue": "continue_", "controllerExpandSecretRef": "controller_expand_secret_ref", "controllerPublishSecretRef": "controller_publish_secret_ref", "conversionReviewVersions": "conversion_review_versions", @@ -588,10 +582,8 @@ "ephemeralContainers": "ephemeral_containers", "evaluationError": "evaluation_error", "eventTime": "event_time", - "except": "except_", "exclusiveMaximum": "exclusive_maximum", "exclusiveMinimum": "exclusive_minimum", - "exec": "exec_", "exitCode": "exit_code", "expectedPods": "expected_pods", "expirationSeconds": "expiration_seconds", @@ -612,7 +604,6 @@ "firstTimestamp": "first_timestamp", "flexVolume": "flex_volume", "forbiddenSysctls": "forbidden_sysctls", - "from": "from_", "fsGroup": "fs_group", "fsGroupChangePolicy": "fs_group_change_policy", "fsType": "fs_type", @@ -727,7 +718,6 @@ "nonResourceAttributes": "non_resource_attributes", "nonResourceRules": "non_resource_rules", "nonResourceURLs": "non_resource_ur_ls", - "not": "not_", "notReadyAddresses": "not_ready_addresses", "numberAvailable": "number_available", "numberMisscheduled": "number_misscheduled", From af4262774bd72d8d8367ca87e75cefe6005c0f71 Mon Sep 17 00:00:00 2001 From: komal Date: Fri, 26 Jun 2020 09:27:13 -0700 Subject: [PATCH 25/25] Update tables.py --- provider/go.mod | 2 +- provider/go.sum | 4 ++-- sdk/python/pulumi_kubernetes/tables.py | 4 ++-- tests/go.mod | 2 +- tests/go.sum | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/provider/go.mod b/provider/go.mod index 4a5aaa7bfe..8b300fe7e0 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -11,7 +11,7 @@ require ( github.com/imdario/mergo v0.3.8 github.com/mitchellh/go-wordwrap v1.0.0 github.com/pkg/errors v0.9.1 - github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200625185157-b35a94cac625 + github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200626160536-3eacf8bf90c0 github.com/pulumi/pulumi/sdk/v2 v2.4.0 github.com/stretchr/testify v1.6.1 google.golang.org/grpc v1.28.0 diff --git a/provider/go.sum b/provider/go.sum index 3994c9a3b4..9e73c4ca04 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -450,8 +450,8 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200625185157-b35a94cac625 h1:XwQsR9LECyiq12eL4sbOHBnfgWp9nmy0d24Yee0O/1E= -github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200625185157-b35a94cac625/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= +github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200626160536-3eacf8bf90c0 h1:TgfCBRjAOpkKBplKbdevj0Sj6uAI7imjC0xqai5DS9A= +github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200626160536-3eacf8bf90c0/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= github.com/pulumi/pulumi/sdk/v2 v2.0.0/go.mod h1:W7k1UDYerc5o97mHnlHHp5iQZKEby+oQrQefWt+2RF4= github.com/pulumi/pulumi/sdk/v2 v2.4.0 h1:1ef6JbCWG3RWCKNpeeFBezzI6HBdMPpdeZQAd+IGKvw= github.com/pulumi/pulumi/sdk/v2 v2.4.0/go.mod h1:llk6tmXss8kJrt3vEXAkwiwgZOuINEFmKIfMveVIwO8= diff --git a/sdk/python/pulumi_kubernetes/tables.py b/sdk/python/pulumi_kubernetes/tables.py index 0cf06c0b0e..c6b870a21b 100644 --- a/sdk/python/pulumi_kubernetes/tables.py +++ b/sdk/python/pulumi_kubernetes/tables.py @@ -194,7 +194,7 @@ "ip_family": "ipFamily", "iscsi_interface": "iscsiInterface", "job_template": "jobTemplate", - "json_path": "JSONPath", + "json_path": "jsonPath", "kernel_version": "kernelVersion", "kube_proxy_version": "kubeProxyVersion", "kubelet_config_key": "kubeletConfigKey", @@ -649,7 +649,7 @@ "ipFamily": "ip_family", "iscsiInterface": "iscsi_interface", "jobTemplate": "job_template", - "JSONPath": "json_path", + "jsonPath": "json_path", "kernelVersion": "kernel_version", "kubeProxyVersion": "kube_proxy_version", "kubeletConfigKey": "kubelet_config_key", diff --git a/tests/go.mod b/tests/go.mod index af616d1535..9af890cbb7 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -11,7 +11,7 @@ replace ( require ( github.com/pulumi/pulumi-kubernetes/provider/v2 v2.0.0-00010101000000-000000000000 github.com/pulumi/pulumi-kubernetes/sdk/v2 v2.0.0 - github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200625185157-b35a94cac625 + github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200626160536-3eacf8bf90c0 github.com/pulumi/pulumi/sdk/v2 v2.4.0 github.com/stretchr/testify v1.6.1 ) diff --git a/tests/go.sum b/tests/go.sum index bb8a5086e8..4db811cea5 100644 --- a/tests/go.sum +++ b/tests/go.sum @@ -498,8 +498,8 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200625185157-b35a94cac625 h1:XwQsR9LECyiq12eL4sbOHBnfgWp9nmy0d24Yee0O/1E= -github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200625185157-b35a94cac625/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= +github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200626160536-3eacf8bf90c0 h1:TgfCBRjAOpkKBplKbdevj0Sj6uAI7imjC0xqai5DS9A= +github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200626160536-3eacf8bf90c0/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= github.com/pulumi/pulumi/sdk/v2 v2.0.0 h1:3VMXbEo3bqeaU+YDt8ufVBLD0WhLYE3tG3t/nIZ3Iac= github.com/pulumi/pulumi/sdk/v2 v2.0.0/go.mod h1:W7k1UDYerc5o97mHnlHHp5iQZKEby+oQrQefWt+2RF4= github.com/pulumi/pulumi/sdk/v2 v2.2.2-0.20200514204320-e677c7d6dca3 h1:uCVadlcmLexcm6WHJv1EFB3E9PKqWQt/+zVuNC+WpjM=